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=1796228164; b=cyMXa8T0ITzsOhz8gBLF+SuhwBk+xpziR1WzSqumO7x3dr/GU+4AxBuZMab0AwiDnEfg TfW9In13PlBJIGt/0VqA4w64ktRSK1uOHUItFMRd9h4rCiPv93WJKj2v0FtkeVmWAQ+PN jcesggqc+I5QXgpgH4kVybZFahR6Q2WI38YtuvG08sUjtZuHcQHt5lawgHz1e3X6NgVJw farUEcfEAllOqCsoclprF09E/GPzOlVtA9MzmKpPMuvLJf3F3X9iTIRMOo1OyLBqwmAut /0Af7A+gnIUmA9ZaJzsY+T/2h2QI3UDO2HPWofPIB1151fF0/qZt9gArrSvzRdEajbg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796228164; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=PIbZxVEtAUNWyxtc9VAqk6tW3fZ1OAe225SvtMf3VLg=; b=2EhK7YsgDoJjLM5WpFVJ+AgY9/kxRwazUz92XBZuvEYqGV1LfkDhnQnBEekGpbRY8b9y CaONtR9Mji4yzmA4WspXrbb6TpFKjjCPMkbG/KIr2QoDGMKakdY2MRL26lsWl1X3EsuWj pV/oontpkZl8QfR6gKVvLN/5uDEYlQV+lnDmqkD27ceOgRenSRkvqBHxB2YHvCu94a4K5 MK4twkYB9TtMJH11W5fbJpqfwcZOE0zcHU0Z2l8DDHhp6Nl+wvOARWLDpH/h/7O0dt5+7 SocBfZq5qcA8wiMg0NpZ55Qqtq9GrUdhISnXdVTObeLyW0tRSZLIkWYjYJLx+RIS0ag== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="0jANy0V/"; 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 34414606A31A for ; Wed, 2 Dec 2026 16:16:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=0jANy0V/ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50CB71F00932; Wed, 2 Dec 2026 16:16:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796228163; bh=PIbZxVEtAUNWyxtc9VAqk6tW3fZ1OAe225SvtMf3VLg=; h=Subject:To:Cc:From:Date; b=0jANy0V/Qbi/DLKMEV/PHnXBH+ztEYNYVYR3cZpLVC2KMMAIX45PTxAVvFXujrkHU zvzi6Qgz/4fQ4YAvG+3TuRSWdm+ATiTmky2lGI1EZyzlR2hNTjkooiPPQ9L1X++CB6 STTwR4B/dvSn94cZVe3IEzm7TZxBVw6ovSHZFgX4= Subject: FAILED: patch "[PATCH] ASoC: amd: acp: fix PDM ring buffer address on ACP7.x resume" failed to apply to 6.12-stable tree To: sdnick484@gmail.com,broonie@kernel.org Cc: From: Date: Wed, 02 Dec 2026 16:40:40 +0100 Message-ID: <2026120240-vanquish-ankle-9f08@gregkh> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.12-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.12.y git checkout FETCH_HEAD git cherry-pick -x a3d8527ed469a31aeeb02c5e52ed89de410e46e6 # git commit -s git send-email --to '' --in-reply-to '2026120240-vanquish-ankle-9f08@gregkh' --subject-prefix 'PATCH 6.12.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From a3d8527ed469a31aeeb02c5e52ed89de410e46e6 Mon Sep 17 00:00:00 2001 From: "Nicholas E. Andrade" Date: Mon, 9 Nov 2026 10:22:35 -0800 Subject: [PATCH] ASoC: amd: acp: fix PDM ring buffer address on ACP7.x resume On ACP7.x the DMIC ring buffer lives at ACP7x_DMIC_MEM_WINDOW_START, and acp_dmic_prepare() programs ACP_WOV_RX_RINGBUFADDR accordingly. The system resume path (acp70_pcm_resume() -> restore_acp_pdm_params() -> set_acp_pdm_ring_buffer()) however still uses the pre-ACP7.x calculation, stream->reg_offset + MEM_WINDOW_START (0x6080000). That window is not backed by the PTEs config_acp_dma() writes for the DMIC stream (scratch offset 0x6000, i.e. window 0x4C00000), so after resume the ATU translates DMIC DMA through uninitialised SRAM and the ACP writes to random IOVAs. With the IOMMU enabled, a capture stream held open across s2idle produces a continuous stream of faults until it is closed, and captures nothing useful: snd_acp_pci 0000:c4:00.5: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0018 address=0x1ddeee9942398e20 flags=0x0030] Commit 3ee257aba1d5 ("ASoC: amd: acp: Audio is not resuming after s0ix") fixed the same problem for the I2S restore path in set_acp_i2s_dma_fifo() but left the PDM path unchanged. Select the ACP7.x window there too, matching acp_dmic_prepare(). Tested on a Lenovo ThinkPad P14s Gen 6 AMD (ACP rev 0x71, kernel 7.3.1) by holding arecord -D hw:CARD=acppdmmach,DEV=0 -f S32_LE -r 48000 -c 2 open across s2idle: before the fix, IO_PAGE_FAULTs after every resume and no audio; after, no faults and audio captured correctly after resume. The bug was diagnosed and the fix drafted with the help of an AI coding assistant (Claude); the analysis, change and testing were reviewed and verified by the submitter on the hardware above. Fixes: f6f7d25b1103 ("ASoC: amd: acp: Add pte configuration for ACP7.0 platform") Cc: stable@vger.kernel.org Signed-off-by: Nicholas E. Andrade Link: https://patch.msgid.link/20261109-for-next-v1-1-54a06f391bda@gmail.com Signed-off-by: Mark Brown diff --git a/sound/soc/amd/acp/acp-legacy-common.c b/sound/soc/amd/acp/acp-legacy-common.c index 4e477c48d4bd..9c0528a7dfc0 100644 --- a/sound/soc/amd/acp/acp-legacy-common.c +++ b/sound/soc/amd/acp/acp-legacy-common.c @@ -154,7 +154,10 @@ static void set_acp_pdm_ring_buffer(struct snd_pcm_substream *substream, period_bytes = frames_to_bytes(runtime, runtime->period_size); pdm_size = frames_to_bytes(runtime, runtime->buffer_size); - physical_addr = stream->reg_offset + MEM_WINDOW_START; + if (chip->acp_rev >= ACP70_PCI_ID) + physical_addr = ACP7x_DMIC_MEM_WINDOW_START; + else + physical_addr = stream->reg_offset + MEM_WINDOW_START; /* Init ACP PDM Ring buffer */ writel(physical_addr, chip->base + ACP_WOV_RX_RINGBUFADDR);