]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/pm: add SMU multi-msgs helpers
authorYang Wang <kevinyang.wang@amd.com>
Mon, 27 Apr 2026 07:09:37 +0000 (15:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 May 2026 20:06:16 +0000 (16:06 -0400)
commite426674e908ec0ca600e4a41284cf267fd6b077b
tree99dfa9516b5e7c55a578f4ce85b72b4ec700bfd1
parentfcd5f065eab46993af43442fd77ee8d9eb9c5bdf
drm/amd/pm: add SMU multi-msgs helpers

SMU15 driver messages can carry multiple input parameters and return
values, but callers still have to build struct smu_msg_args directly.

Add common SMU multi-msgs helpers in smu_cmn and reuse them in the
single-parameter wrapper and the shared table transfer path.

Keep smu_cmn_send_smc_msg() semantics unchanged for older callers.

No functional change intended.

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>
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h