]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amd/pm: zero unused SMU argument registers
authorYang Wang <kevinyang.wang@amd.com>
Mon, 11 May 2026 08:33:37 +0000 (16:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jun 2026 18:51:59 +0000 (14:51 -0400)
commita169b326bab4a3617a9b1d34beddaaa6f798aa20
tree830000705ae19af4af4bbf6f521c53573a53c322
parentee193c5bbd5e2b56bbeb54ef554414b43a6fc896
drm/amd/pm: zero unused SMU argument registers

SMU messages may use fewer arguments than the available argument registers,
the previous code only wrote used registers and left the rest unchanged,
so stale values from a prior message could persist.

Write all argument registers for each message and zero the unused tail
to keep command arguments deterministic and avoid unintended carry-over.

Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit e03b635f61f77ebd5107ef82f48e3221cb695856)
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c