diff options
| author | 2026-02-11 12:46:44 -0800 | |
|---|---|---|
| committer | 2026-02-23 09:24:17 -0800 | |
| commit | 1aa82181a3c285c7351523d587f7981ae4c015c8 (patch) | |
| tree | 0f6e3d78dc171e87be8927cd4bafa12d456cb4f3 /include/linux/bcma/ssh:/git@git.zx2c4.com | |
| parent | accel/amdxdna: Reduce log noise during process termination (diff) | |
accel/amdxdna: Fix dead lock for suspend and resume
When an application issues a query IOCTL while auto suspend is running,
a deadlock can occur. The query path holds dev_lock and then calls
pm_runtime_resume_and_get(), which waits for the ongoing suspend to
complete. Meanwhile, the suspend callback attempts to acquire dev_lock
and blocks, resulting in a deadlock.
Fix this by releasing dev_lock before calling pm_runtime_resume_and_get()
and reacquiring it after the call completes. Also acquire dev_lock in the
resume callback to keep the locking consistent.
Fixes: 063db451832b ("accel/amdxdna: Enhance runtime power management")
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260211204644.722758-1-lizhi.hou@amd.com
Diffstat (limited to 'include/linux/bcma/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
