]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/amdxdna: Fix incorrect DPM level after suspend/resume
authorLizhi Hou <lizhi.hou@amd.com>
Wed, 4 Feb 2026 17:10:48 +0000 (09:10 -0800)
committerLizhi Hou <lizhi.hou@amd.com>
Wed, 4 Feb 2026 21:08:35 +0000 (13:08 -0800)
commitd19d963d2a4acb5bbf03e25733ba565a7f6e1422
tree2a791d7485642edfcfe76e2ca8b1e9894cccbb81
parentd19512f5abb198daf29da877f6a02c667a95c03d
accel/amdxdna: Fix incorrect DPM level after suspend/resume

The suspend routine sets the DPM level to 0, which unintentionally
overwrites the previously saved DPM level. As a result, the device always
resumes with DPM level 0 instead of restoring the original value.

Fix this by ensuring the suspend path does not overwrite the saved DPM
level, allowing the correct DPM level to be restored during resume.

Fixes: f4d7b8a6bc8c ("accel/amdxdna: Enhance power management settings")
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260204171048.3165580-1-lizhi.hou@amd.com
drivers/accel/amdxdna/aie2_pm.c
drivers/accel/amdxdna/aie2_smu.c