aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
diff options
context:
space:
mode:
authorLukas Wunner <[email protected]>2018-02-11 09:38:28 +0000
committerLukas Wunner <[email protected]>2018-02-16 21:40:23 +0000
commitaa0aad57909eb321746325951d66af88a83bc956 (patch)
tree45a20e39488e683cddf0aa23939717dacf3851f4 /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
parentdrm/radeon: Fix deadlock on runtime suspend (diff)
downloadkernel-aa0aad57909eb321746325951d66af88a83bc956.tar.gz
kernel-aa0aad57909eb321746325951d66af88a83bc956.zip
drm/amdgpu: Fix deadlock on runtime suspend
amdgpu's ->runtime_suspend hook calls drm_kms_helper_poll_disable(), which waits for the output poll worker to finish if it's running. The output poll worker meanwhile calls pm_runtime_get_sync() in amdgpu's ->detect hooks, which waits for the ongoing suspend to finish, causing a deadlock. Fix by not acquiring a runtime PM ref if the ->detect hooks are called in the output poll worker's context. This is safe because the poll worker is only enabled while runtime active and we know that ->runtime_suspend waits for it to finish. Fixes: d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)") Cc: [email protected] # v4.2+: 27d4ee03078a: workqueue: Allow retrieval of current task's work struct Cc: [email protected] # v4.2+: 25c058ccaf2e: drm: Allow determining if current task is output poll worker Cc: Alex Deucher <[email protected]> Tested-by: Mike Lothian <[email protected]> Reviewed-by: Lyude Paul <[email protected]> Signed-off-by: Lukas Wunner <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/4c9bf72aacae1eef062bd134cd112e0770a7f121.1518338789.git.lukas@wunner.de
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions