From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796242828; b=MHZatHo9X6D/pOUjM1CUUeM13ykPP3ghoILTIRib+JmG9tfl8mpzKF1ies8gj3jblTo9 LkJUnFSOhQbf3Iq/wzH+6LqlABDbVfWViqxxYU7Y89WjNWRxBRR0tXR+Yzr9N5W3tuOkt L+uBwjOjJKTGEaKA8KWq+/0WyhNYeVt5Kw+gHw+daerPgR49YdEBOUNtkFDBv8aCZVdPy 4nnVZHk+txvOCqNEUWyTnN5wW3eLWTjlt1gXoFfox/c7VXoM7LhbRoov9791iv+cheLKr fwMQFGVeLD4z/+5O/hJeENCKWPEb8y3xMwpeA/05CGm7sWRL/v0ub7jVloZx68WlmRg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796242828; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:Content-Language:To:Cc:References:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=jyLreO/ZBv5vUP/zlymvUkyNogvaF695jqbvEteTHfI=; b=SkXM/Bzn6p3hhLWBbsKd0PCP2MwsQrMGibmU4NmitNokB+7JT34qS1Bz80MdTbHgXLt1 lxUaaEw8nUyUeEBt2gkWguLLFuDVNG9wdHkl3waXVgUKPLGfUQXBGRvBpVWJZu+Tr7eKM Os6/bF9LkGjNmkDxdTdhakBIwRDBvsS1Wj1vv3NvoZCcVo3sTie31MlOMsunExTSJCPgA 6IvtS8BqR92i+V7xzL0Ds7i60W3KfLZk8mC14i+QlVEK/wvs0P8zeecq2JlzAVKDNBvOo uyWk3NTokTAmdPz2CzYVIfl5MNzqMus9L+8Kw/kxgcn/JVoIwOYP+G9orR6w10QClmA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BUTIDPVl; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 59060606A32C; Wed, 2 Dec 2026 20:20:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BUTIDPVl Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C4731F000C1; Wed, 2 Dec 2026 20:20:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796242827; bh=jyLreO/ZBv5vUP/zlymvUkyNogvaF695jqbvEteTHfI=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=BUTIDPVlGQx7Gdu+S7I752S70G2r7ZYOBpSvrUyPUoVu8FmfayQ5HBsFflHMsFN+N YEDfAgRh9dmiUYTYIcXcW2ewpQ9E2bIT86Wtv8sr5I57WO0S6fUDXI4wSD4PC0qyWt SPOSOAVZyj/NG0YqAIh9MHzvroQfIoIhmylbGPNIHOKofhiL2Jr35wd/aR72dn4nPc 4YTzqDs1B76vUqh+iSxGKPr5mHcvQFTaGxYnLoYBxrc4ZARSmSCLGLHH2MnUBjqVzM LZqMDLzJ6aq+MR+IwM5WsyNHq2yO6yb18RIxeSydDrDUMdTFKMaceTEjdKkZz/gOwT bm9rZVrQ6QV2w== Message-ID: Date: Wed, 2 Dec 2026 14:20:26 -0600 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/5] ASoC: amd: yc: do not bind the ACP when no DMIC is wired Content-Language: en-US To: =?UTF-8?B?6Zmz44OB44Kn44Oz?= , Vijendar Mukunda , Venkata Prasad Potturu , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Mario Limonciello In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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.