Skip to content
Snippets Groups Projects
Commit ee3dc9e2 authored by chr[]'s avatar chr[] Committed by Alex Deucher
Browse files

amdgpu/pm/legacy: fix suspend/resume issues

resume and irq handler happily races in set_power_state()

* amdgpu_legacy_dpm_compute_clocks() needs lock
* protect irq work handler
* fix dpm_enabled usage

v2: fix clang build, integrate Lijo's comments (Alex)

Closes: drm/amd#2524


Fixes: 3712e7a4 ("drm/amd/pm: unified lock protections in amdgpu_dpm.c")
Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Tested-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name> # on Oland PRO
Signed-off-by: default avatarchr[] <chris@rudorff.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7dc34054
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment