summaryrefslogtreecommitdiff
path: root/scripts/Makefile.vmlinux
diff options
context:
space:
mode:
authorYang Wang <kevinyang.wang@amd.com>2026-01-27 11:07:07 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-06 16:57:35 +0100
commit546e62c3fb29ad56dc9320b1c7325fa80ac9c0fc (patch)
tree3fe99bd547f18783aa2114f872edda5854fd0c9d /scripts/Makefile.vmlinux
parent7bec90f605cfb138006f5ba575f2310593347110 (diff)
drm/amd/pm: fix race in power state check before mutex lock
[ Upstream commit ee8d07cd5730038e33bf5e551448190bbd480eb8 ] The power state check in amdgpu_dpm_set_powergating_by_smu() is done before acquiring the pm mutex, leading to a race condition where: 1. Thread A checks state and thinks no change is needed 2. Thread B acquires mutex and modifies the state 3. Thread A returns without updating state, causing inconsistency Fix this by moving the mutex lock before the power state check, ensuring atomicity of the state check and modification. Fixes: 6ee27ee27ba8 ("drm/amd/pm: avoid duplicate powergate/ungate setting") Signed-off-by: Yang Wang <kevinyang.wang@amd.com> Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 7a3fbdfd19ec5992c0fc2d0bd83888644f5f2f38) Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/Makefile.vmlinux')
0 files changed, 0 insertions, 0 deletions