From nobody Sun Sep 18 06:27:14 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 4MVdBp5Tsnz4c33Q; Sun, 18 Sep 2022 06:27:14 +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 4MVdBp3f08z3Ykb; Sun, 18 Sep 2022 06:27:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663482434; 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=00PpkgSOCplytegumS1orEuju7ZsUH9JpYmlfaFqA/E=; b=LP/tQdcuMqAy6t78bDLiCxSGr9Tm5CgzPUdoMwzj2yLZeAsUbFkPo437ViQoRq2Dn9URQP 8vUVsFC9r2zsYognbGRUNke6DHqujWQV+5pytZ64nIzYy0TdMVeTLpG6n3tvN+dTfnW9p2 OFRSRkdJih2G1L9ZUJmtEaQIluQaTp2sP1z9sEXWnViXWXoG+hy0El2yKv67ZuqvsCIUFz +fOVzgftB+vbXpY2hEV6BOf3lwUiIifaF6i7Yk3tWpzps3ZWNbiJNoaiNP+FhDWYQdnRjs uJdvxvpR7h+cHaXtvNuzeEMfWpUna0yyM40OOwrkVgrvalB7tVcV2e+UBPLj8Q== 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 4MVdBp2mJszxgw; Sun, 18 Sep 2022 06:27:14 +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 28I6RER2068190; Sun, 18 Sep 2022 06:27:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28I6REEu068189; Sun, 18 Sep 2022 06:27:14 GMT (envelope-from git) Date: Sun, 18 Sep 2022 06:27:14 GMT Message-Id: <202209180627.28I6REEu068189@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: 94f51bb57834 - stable/12 - 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/stable/12 X-Git-Reftype: branch X-Git-Commit: 94f51bb57834b98d551712700e87172374d5ce37 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663482434; 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=00PpkgSOCplytegumS1orEuju7ZsUH9JpYmlfaFqA/E=; b=pcglViJfVRQ0VXE79/TrTweAFEQhNHIAfe0A0crz8gTWqtTX51i/qbCBlz4bCdemvhsPn3 ULKM4slBCOflY0iAUhy9onCzG9RbXx5cq9j1DjW4BG/4+lAEn/pAdo0JbaAVcxc3PvhY6J SWzGAuEMecvxTRD999W0sZCqlSA73y9n+Iv6YgWs5nPoqZSUAocvjk9AoizoY3syAn74ym bo2EjC/rUGZt2ZMZxsVoh16lwWPV0gf6TMKq2BnjajZ8CdJMbcxpLMzlmabDIM4jXSb6JP /PKfb2mYrORFSwJHEJS5tgXHhZh54tN/FH3V0WYNBWcFZWMqEQ5vNCrYuBevwg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663482434; a=rsa-sha256; cv=none; b=flrWaE0iujVhaUXKdXe7Y+Raeox6+S9t/opvfIJULVyV2erjSRtWrsm4vVKVOzYEO5d1zD LFXryBYpcVE+xFIP++bJHRCWK3dj/OXz1eHVDXXNIztKqThRkFbZM0z1b5XJKLxu5dO0lc py0jtt+fR7hMMKeFm3X7Yygi919MB0QPFPyfxPvzRMGd4LvbAaHfUk28ftOCbOKOdz2zSN 4UFAp1/px4p/2BH2qRMEms1SJH6Cwc9fU1aQllvDQPK4xTc7wPpaxGmF9zQURK3nVofNvE TG+iC50KXjN7tN7R6NYZLkKrI3PQ1g611wElJrjyQV9tJ+b4hIai6b7aw1/dMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=94f51bb57834b98d551712700e87172374d5ce37 commit 94f51bb57834b98d551712700e87172374d5ce37 Author: Kyle Evans AuthorDate: 2022-06-07 01:52:55 +0000 Commit: Kyle Evans CommitDate: 2022-09-17 19:29:50 +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) (cherry picked from commit 8cdb6b2dd78793628d7c36198598c85741e44119) --- 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 e063e906bf3d..dd41c740be85 100644 --- a/sys/dev/alc/if_alc.c +++ b/sys/dev/alc/if_alc.c @@ -1495,10 +1495,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); }