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: https://gitlab.freedesktop.org/drm/amd/-/issues/2524 Fixes: 3712e7a4 ("drm/amd/pm: unified lock protections in amdgpu_dpm.c") Reviewed-by:Lijo Lazar <lijo.lazar@amd.com> Tested-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name> # on Oland PRO Signed-off-by:
chr[] <chris@rudorff.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit ee3dc9e2) Cc: stable@vger.kernel.org
Loading
Please sign in to comment