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=1796292489; b=lQBXi8gxVW1sfnRDaf/IkidcIs3lmRg2RdGFetbzf97r53Js83xsOprs4aCmEIdenMH8 Q/OHjkgbCj11wbyQf4LZ9TERtkgjyE0TblOSZJhKhjpEkOiyQZIjad9d+ThtySy0ORhnE gAAqwiH1WB2ytOxXn0r+SrPUA33tin+D9vQjzBGz5nYXKL3Xn2aNHcBb1BA00BBSfGOB+ cckIvlic26f8Aldn46W96PqFpfPY/AJdxhnQIvL3/vSIcNV/gEUJAa+RycA7+o9Zow6ce kpSB03ns9i6xVcVW0NtdQ7wzMKISieMtP1wqPu0xh46DBvZNg8YkT5d+vaIkzOikFnQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796292489; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=wr6nbVAAjDEROBwoLvPsn6kIgzVtyfDXjYmKvI5Uvqg=; b=VcGnj6NGIOtM4uA0s9VBoTwdVYDrjeIc7JPZRpWnRvNLQ70aiYHH0CFweH8ddOSPVbAK lCkES0stDe0UnKfgj9X99DN4yVrVBCTYazqFc6uk5Jk5uNnORTxQyNO1vpUhGExbUat6g yrXKZahyHcg6m63ATRGuFqkBLtadIyUHHowQIsY5Y2AWRCDuBN3UiSPn9wDXUmvdGXEdL QxYc0rvUmqJZvLOR2FBdQ9PWoiSCoeQUpuVzNI1Aqdq+ZmJtLOH367Al5IUR3V1bZOwBZ fREVtU2up1KgQ8F1thKg0/QW8vWvJdRVkrbr3hVDz2gnHUGxr78v3RZKReQJPKIMdeg== 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=iMyHXBVK; 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 3E79A606A322 for ; Thu, 3 Dec 2026 10:08:08 +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=iMyHXBVK Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBEBB1F000C1; Thu, 3 Dec 2026 10:08:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796292488; bh=wr6nbVAAjDEROBwoLvPsn6kIgzVtyfDXjYmKvI5Uvqg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=iMyHXBVKwmo37qHXJKROzdAWoLlSbzmG1q/xb3OUUEZ7cHTxQhPI3iR9eMax/aYl/ d27OB4+vCrhj0ljh1ApfZbbSKasWk+nK8VZaB/DOkBWkcs+u+ZHWs8A9pydSZaKSOx RxMOx61fphHolAFdGXa0CDzlNaZW8eNz2ifOHnvEj5UrUux1uJ1qgrM3fMJxQ4voP6 9lT3k+ycMQ3v5YhBJkQ7PgUJom2CreJryjkhgBLMuwImU74rtFcoP4dnMYc4uD4ewj dc0qwErHngyDjrRF6u9PJPMgntps5s+Eo6t1NGbLXh9/7r1yZzwA5KBKNCOqrCipZZ +W/7jTVmFCECg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 4/5] ASoC: amd: vangogh: Use devm_pm_runtime_enable() Reply-To: sashiko-reviews@lists.linux.dev To: phucduc.bui@gmail.com Cc: linux-sound@vger.kernel.org In-Reply-To: <20261203094558.26423-5-phucduc.bui@gmail.com> References: <20261203094558.26423-1-phucduc.bui@gmail.com> <20261203094558.26423-5-phucduc.bui@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 10:08:08 +0000 X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] ASoC: amd: vangogh: re-probe leaves ACP interrupts disabled with RPM_ACTIVE -- commit 983886aff15c90cac7f01cfc098a5c66f698ca06 Author: bui duc phuc ASoC: amd: vangogh: Use devm_pm_runtime_enable() This commit replaces manual pm_runtime_enable() and pm_runtime_disable() calls in the ACP5x PCM DMA driver with devm_pm_runtime_enable(), allowing acp5x_audio_remove() to be dropped. > diff --git a/sound/soc/amd/vangogh/acp5x-pcm-dma.c b/sound/soc/amd/vangog= h/acp5x-pcm-dma.c > index 8b09e66610b52..c52288c4c9a86 100644 > --- a/sound/soc/amd/vangogh/acp5x-pcm-dma.c > +++ b/sound/soc/amd/vangogh/acp5x-pcm-dma.c > @@ -417,13 +417,8 @@ static int acp5x_audio_probe(struct platform_device = *pdev) > pm_runtime_use_autosuspend(&pdev->dev); > pm_runtime_mark_last_busy(&pdev->dev); > pm_runtime_set_active(&pdev->dev); > - pm_runtime_enable(&pdev->dev); > - return 0; > -} > =20 > -static void acp5x_audio_remove(struct platform_device *pdev) > -{ > - pm_runtime_disable(&pdev->dev); > + return devm_pm_runtime_enable(&pdev->dev); > } [Severity: Medium] Can switching to devm_pm_runtime_enable() leave ACP_EXTERNAL_INTR_ENB disabled while runtime PM reports RPM_ACTIVE on re-probe? Unlike acp5x_audio_remove(), devm_pm_runtime_enable() registers pm_runtime_disable_action(), which calls pm_runtime_dont_use_autosuspend() before pm_runtime_disable(). On unbind or re-probe under CONFIG_DEBUG_TEST_DRIVER_REMOVE=3Dy while the device is RPM_ACTIVE with usage_count =3D=3D 0, disabling autosuspend synchronously runs acp5x_pcm_suspend() and writes 0 to ACP_EXTERNAL_INTR_ENB. If the driver re-probes while the parent pci-acp5x stays active, acp5x_audio_probe() marks the device RPM_ACTIVE without re-enabling ACP_EXTERNAL_INTR_ENB. A PCM stream opened before autosuspend runs (or with power/control=3Don) then skips resume and stalls with no DMA IRQs. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203094558.2642= 3-1-phucduc.bui@gmail.com?part=3D4