From: Mario Limonciello <superm1@kernel.org>
To: 陳チェン <a18165943161@gmail.com>,
"Vijendar Mukunda" <Vijendar.Mukunda@amd.com>,
"Venkata Prasad Potturu" <venkataprasad.potturu@amd.com>,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Mark Brown" <broonie@kernel.org>,
"Jaroslav Kysela" <perex@perex.cz>,
"Takashi Iwai" <tiwai@suse.com>
Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/5] ASoC: amd: yc: do not bind the ACP when no DMIC is wired
Date: Wed, 2 Dec 2026 14:20:26 -0600 [thread overview]
Message-ID: <ce2dbd65-e3cd-4b22-a3b6-e0bee23341e4@kernel.org> (raw)
In-Reply-To: <CA+gYdc2MNSZT+W7X-_2X027U-vNP6B_xj6ShvJ4b6dup+MHUpQ@mail.gmail.com>
On 12/2/26 14:10, 陳チェン wrote:
> Link: https://gitlab.freedesktop.org/drm/amd/-/work_items/5529
>
> The ACP6x function is present on every Yellow Carp platform, including
> boards where nothing is wired behind it: no DMIC array, no I2S codec and
> no SoundWire peripheral. Firmware does not say so. The ACPI node
> carries no consumer description, and the _WOV method on some boards is a
> template that unconditionally returns 1, so the driver cannot tell
> "present" from "used".
>
> Binding the function on such a board has no upside and a real cost: the
> probe path runs acp6x_init() and the runtime suspend path then gates the
> audio clock (ACP_CLKMUX_SEL = 0) in acp6x_deinit(). The block shares
> that clock domain with the HDA controller on the same PCI segment, and
> HDA can end up with
>
> snd_hda_intel 0000:06:00.6: CORB reset timeout#2, CORBRP = 65535
>
> sometimes without recovering. This is the regression analysed in the
> work item linked above, which contains the amd-s2idle reports for
> df4148a5a3cf with and without the commit on this exact platform.
>
> This series makes the existing board list -- already maintained for the
> machine driver -- the signal for "a consumer is wired", and declines the
> device when neither the list nor the AcpDmicConnected property says so.
> Nothing is enabled, mapped or initialized and no register in the shared
> clock domain is written; the PCI core suspends the function after the
> failed probe. Boards in the list behave exactly as before.
>
> Patch 1 is an independent use-after-free fix in the teardown path and
> can be applied on its own.
>
> Patches 2 and 3 are refactoring only: the board list moves next to the
> driver that owns the device, and the decision is evaluated once and
> handed to the machine driver through platform data.
>
> Patch 4 makes the probe decline unlisted boards. Patch 5 adds a
> read-only module parameter for boards the list gets wrong; it can be
> dropped if it is not wanted.
>
> Tested on a MECHREVO JIAOLONG (rev 0x62), which has no DMIC consumer:
> two s2idle cycles, no CORB errors, onboard HDA and playback unaffected.
>
> MuXian Chen (5):
> ASoC: amd: yc: stop the shared IRQ before tearing down platform
> devices
> ASoC: amd: yc: share the ACP6x DMIC board list
> ASoC: amd: yc: ask the firmware once about the ACP DMIC path
> ASoC: amd: yc: refuse the ACP function when no DMIC is wired
> ASoC: amd: yc: allow forcing the ACP DMIC decision
>
> sound/soc/amd/yc/Makefile | 2 +-
> sound/soc/amd/yc/acp6x-mach.c | 958 +-------------------------------
> sound/soc/amd/yc/acp6x-quirks.c | 842 ++++++++++++++++++++++++++++
> sound/soc/amd/yc/acp6x.h | 1 +
> sound/soc/amd/yc/pci-acp6x.c | 28 +
> 5 files changed, 882 insertions(+), 949 deletions(-)
> create mode 100644 sound/soc/amd/yc/acp6x-quirks.c
>
Before going too far down this path, can you please see if
https://github.com/torvalds/linux/commit/f043083843cac1105206437d8c58e725b6412fad
helps? This helped a very simila rissue related to teh BAR handling.
next prev parent reply other threads:[~2026-12-02 20:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 20:10 [PATCH 0/5] ASoC: amd: yc: do not bind the ACP when no DMIC is wired 陳チェン
2026-12-02 20:20 ` Mario Limonciello [this message]
2026-12-02 20:23 ` 陳チェン
2026-12-02 20:27 ` Mario Limonciello
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ce2dbd65-e3cd-4b22-a3b6-e0bee23341e4@kernel.org \
--to=superm1@kernel.org \
--cc=Vijendar.Mukunda@amd.com \
--cc=a18165943161@gmail.com \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
--cc=venkataprasad.potturu@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox