]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: Intel: avs: Fix deadlock when the failing IPC is SET_D0IX
authorCezary Rojewski <cezary.rojewski@intel.com>
Fri, 30 May 2025 14:10:18 +0000 (16:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:18 +0000 (11:07 +0100)
commitcc0bf249323f5450cb2b6a65778ed50a5fc56355
tree2066a3a0d53a380469eff10377828c49fa238be1
parentbea96d68fc739e1de414be4c4fbab24163907b6b
ASoC: Intel: avs: Fix deadlock when the failing IPC is SET_D0IX

[ Upstream commit 9ad1f3cd0d60444c69948854c7e50d2a61b63755 ]

The procedure handling IPC timeouts and EXCEPTION_CAUGHT notification
shall cancel any D0IX work before proceeding with DSP recovery. If
SET_D0IX called from delayed_work is the failing IPC the procedure will
deadlock. Conditionally skip cancelling the work to fix that.

Fixes: 335c4cbd201d ("ASoC: Intel: avs: D0ix power state support")
Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20250530141025.2942936-3-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/intel/avs/ipc.c