Loading
amdgpu/pm/legacy: fix suspend/resume issues
stable inclusion from stable-v6.6.81 commit c52d6aaf8ee8acab146fc8c851f339ec8e94cf3b category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBYZED Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c52d6aaf8ee8acab146fc8c851f339ec8e94cf3b -------------------------------- commit 91dcc66b34beb72dde8412421bdc1b4cd40e4fb8 upstream. 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 ee3dc9e204d271c9c7a8d4d38a0bce4745d33e71) Cc: stable@vger.kernel.org Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit c52d6aaf8ee8acab146fc8c851f339ec8e94cf3b) Signed-off-by:
Wentao Guan <guanwentao@uniontech.com>