From nobody Sun Sep 18 06:27:04 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 4MVdBd11Vsz4c2vl; Sun, 18 Sep 2022 06:27:05 +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 4MVdBd0SLxz3Y5m; Sun, 18 Sep 2022 06:27:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663482425; 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=FeC1lhky/Z9PsSVplIH0fll4dTWpDvfQMBQ0Bm5xhwU=; b=yrgvIj7KCUqs6GvY2vl1Pa6Z52MnP25CpJwUISu5Xa9P6yxX6YiRlVSGPfKWyDo9CJM8V9 Dq+i4IpcAPFMYaWCyVVV5PQ8VibtPuRLIwddhjkeGmI++iat+Gkfe+1V3UNGUGQmVQcY7i bW7s+74HFnWsTcIcGiwP/bVjA645ZViOvmSRtVoNlpg+orlhH1aPT41s986EFssXJjbZY0 mEcDPpZVcr0K04Z+HkJCvxgZOobw2IIWhojvgkKEft0bW5fIao5eQrUybci7XH/8bH9k6N eqZ1A3RwB//CfMcG8JY82nsdVCRDdiJcqYgXLWIBpjZRvi350BcMjygdcj+15g== 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 4MVdBc6ZB6zxWF; Sun, 18 Sep 2022 06:27:04 +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 28I6R4Lq067792; Sun, 18 Sep 2022 06:27:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28I6R4LI067791; Sun, 18 Sep 2022 06:27:04 GMT (envelope-from git) Date: Sun, 18 Sep 2022 06:27:04 GMT Message-Id: <202209180627.28I6R4LI067791@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: f248e70fc1a4 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: f248e70fc1a419dc596023f47fea3ffa829eba3e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663482425; 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=FeC1lhky/Z9PsSVplIH0fll4dTWpDvfQMBQ0Bm5xhwU=; b=fqrdbwXPJTM1XKqkQxo+vC8dp4XsnVc2stz5ccIczOT38+v27cysp0NuQQ4OSJNHTEJvoV eN8GzhWe/nd3dv2F751Ns1zJFeyKMETKF4IeAeqlZHDDBvZDQykwgwzcJVKIprm7j/J78k Nn3AJum4GGCk+uYQnbLjMHVodAu6/pmoyMaxqVbbHHaWHEwWvJPJiCBJYHmSQ44xx1Jx2D VtthdZaqQzYZiJX3eZ82O6fcLMho1C9HcTeaMxyTEvpuVr7vkHsy/A+NaTvD00f4mRTpVZ 3B90oiNkJqy3iOgNLzDI9n2mzR5Q62XDomUFN/G5sHTD98JlRjT8+xvJRbKfDw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663482425; a=rsa-sha256; cv=none; b=f4SMs6t87wbpt2B6iukXW6EBsfqiapefqlp9B/DYLAdyt+e9jXuBi0TYY07Q5r72MkPuCZ ClSaMEFgWnXEAdWeoqt3n5XoozcgYqlFWJnQMXLFOh7yuXQRFq+lXCEySWVG7QOu0vZ7IV st2qzC0akSohAwKb6NXHNMnN0QMrQ4uobrfpBZovNqZZA/OzBPlVk7lZ7Gg6RKXhtIaW1t yUk9vZK39/PCSlNcAOziGRmY0PcQEd/NOL2u/hGGa/YiKYU4d7be0pWR/IowDfpfuf9/0G YX4PqW4sfXFkTDjuqQsQFo6fUPu8DyrS6qeEtxkYDJgnYYktVY6oghOTM/g/LA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=f248e70fc1a419dc596023f47fea3ffa829eba3e commit f248e70fc1a419dc596023f47fea3ffa829eba3e Author: Kyle Evans AuthorDate: 2022-06-07 01:52:55 +0000 Commit: Kyle Evans CommitDate: 2022-09-18 06:26:39 +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 f0d756b3e865..c6928db3885c 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); }