From nobody Tue Jun 07 01:54:23 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 233EE1BEDEF2; Tue, 7 Jun 2022 01:54:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LHD1X46xLz4pHf; Tue, 7 Jun 2022 01:54:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654566864; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oyVuE2I83Ke+P/0H5wrxwZHNkYahef6osh17YXWlyBQ=; b=PGcEsNhkwFZcSPD5YmuNxPgOd4R2bFTcsxtpoe0l5/BlIviHV9LZCEoo5ro2U0N+BDMH0o CActbk68Guz7Qev0kTx1+Rci9s/GP35azqArAXeaIxNRlk9N7ENhwTvjtoBCed1hnQ6ls4 fY9m9UGj6C/5sSypsUlKZl4nz+PvMzs8oCRTHejcRZnhO5s0MiwbW5sYsT6lqaxCEr8e0V ZJkCgIsHEPDWn2p+J2Wcc5LnlYMEfOQLCST2P2ugkudeBLInuUC1irUfltDuq1t0zKwh/p NFz7XdRKe5B5DkIhUKWv3mS1/49ZN/u4DJjyKNDORdmi8dB7CwxXLpAiTsjUJQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4FFE111F3A; Tue, 7 Jun 2022 01:54:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2571sNFj004951; Tue, 7 Jun 2022 01:54:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2571sNTK004950; Tue, 7 Jun 2022 01:54:23 GMT (envelope-from git) Date: Tue, 7 Jun 2022 01:54:23 GMT Message-Id: <202206070154.2571sNTK004950@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 8cdb6b2dd787 - main - alc: force maximum payload size to 128 bytes for AR816X/AR817x List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8cdb6b2dd78793628d7c36198598c85741e44119 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654566864; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oyVuE2I83Ke+P/0H5wrxwZHNkYahef6osh17YXWlyBQ=; b=fnpVT54p1hfV5XeduuM3blzGWzuhGfcDWibV+gBttrHlmZT6+5zzy827vVjj5LmXzSJet3 Si5E18MtampOqc/MpFyWqBVu3ZFlwW6Qw0DahPqD+rctwcBbrflWsugGF1lIUwZdqNumUF YI6bjVa1pvaai4Vg4MamQqa74g9F4lYznYyN06zXnIFhM+H160lnp0yctVhd5I6CsujcJY lgX/oL0EV7c+DvxJmY8sewQ0Hbxso7tCkU/IHqyuwnpuNm4VTybh92xAleiY8Z+jNuMV/R fGL52Du06d3NrMt4k6X1CvYjhn3WSrerNbUp3+cZjKLMjyY7CO+NLFSx4ohKHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654566864; a=rsa-sha256; cv=none; b=KSx3JjHxtsRTInYti6M75g2MmLF5zvGc0vgrwBr0ZIoO8XwgutjFaFFFi2hBCV++IJw6VZ jEJ/tNkV92296gVtqFcJB9yEzdliVX7j78SUNDAymHiSTFHhRzu2249KWymzsXnIkeSHB3 jX7ILWNETpRabCuwpRygN39Vixfrt/aT81g7mkOLxu84wX1fwr83/EWTDTKXsZW9oXxENm jhciN5wvk2B3cX8p4Py2uoJrp+OLVRyA1v1dm8S0quH6RNFNof2rThG943ObetkEvGoyB1 G1jWnecaIdbxBEiuYK5wjrIBjtM4PTObcsXDL2W624EiQdWKvZmtNI2QMGxp3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=8cdb6b2dd78793628d7c36198598c85741e44119 commit 8cdb6b2dd78793628d7c36198598c85741e44119 Author: Kyle Evans AuthorDate: 2022-06-07 01:52:55 +0000 Commit: Kyle Evans CommitDate: 2022-06-07 01:52:55 +0000 alc: force maximum payload size to 128 bytes for AR816X/AR817x Otherwise, we'll trigger a DMA write error and render the device unusable. Obtained from: OpenBSD (via Haiku, waddlesplash) MFC after: 3 days --- sys/dev/alc/if_alc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/alc/if_alc.c b/sys/dev/alc/if_alc.c index 05254d462db0..128786f2bf0c 100644 --- a/sys/dev/alc/if_alc.c +++ b/sys/dev/alc/if_alc.c @@ -1493,10 +1493,11 @@ alc_attach(device_t dev) sc->alc_dma_wr_burst = 3; /* * Force maximum payload size to 128 bytes for - * E2200/E2400/E2500. + * E2200/E2400/E2500/AR8162/AR8171/AR8172. * Otherwise it triggers DMA write error. */ - if ((sc->alc_flags & ALC_FLAG_E2X00) != 0) + if ((sc->alc_flags & + (ALC_FLAG_E2X00 | ALC_FLAG_AR816X_FAMILY)) != 0) sc->alc_dma_wr_burst = 0; alc_init_pcie(sc); }