Re: [PATCH] amdgpu/pm/legacy: fix suspend/resume issues

From: Maciej S. Szmigiero
Date: Sun Feb 16 2025 - 16:06:32 EST


On 12.02.2025 17:11, Alex Deucher wrote:
From: "chr[]" <chris@xxxxxxxxxxx>

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

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/2524
Fixes: 3712e7a49459 ("drm/amd/pm: unified lock protections in amdgpu_dpm.c")
Signed-off-by: chr[] <chris@xxxxxxxxxxx>
Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
---

Tested-by: Maciej S. Szmigiero <mail@xxxxxxxxxxxxxxxxxxxxx> # on Oland PRO

Thanks,
Maciej