linux/drivers/gpu/drm/amd/pm
chr[] c52d6aaf8e amdgpu/pm/legacy: fix suspend/resume issues
commit 91dcc66b34 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: 3712e7a494 ("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 ee3dc9e204)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-03-07 16:45:49 +01:00
..
inc drm/amdgpu: open brace '{' following struct go on the same line 2023-07-25 13:44:00 -04:00
legacy-dpm amdgpu/pm/legacy: fix suspend/resume issues 2025-03-07 16:45:49 +01:00
powerplay drm/amdgpu: Fix potential NULL pointer dereference in atomctrl_get_smc_sclk_range_table 2025-02-08 09:51:45 +01:00
swsmu drm/amdgpu: avoid buffer overflow attach in smu_sys_set_pp_table() 2025-02-21 13:57:13 +01:00
amdgpu_dpm.c drm/amd/pm: avoid potential UBSAN issue on legacy asics 2023-06-09 09:36:34 -04:00
amdgpu_dpm_internal.c drm/amd/pm: add missing prototypes to amdgpu_dpm_internal 2022-02-07 18:03:50 -05:00
amdgpu_pm.c drm/amd/pm: fix error flow in sensor fetching 2024-08-29 17:33:22 +02:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00