Skip to content

drm/amd/pm: add and use the SMU multi-msgs helper

Yang Wang amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/amd/pm: add SMU multi-msgs helpersdrivers/gpu/drm/amd/pm/swsmu/smu_cmn.c drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h+88 -300 replies
2/4drm/amd/pm: use the SMU multi-msgs helper in smu_v15_0drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c+21 -260 replies
3/4drm/amd/pm: use the SMU multi-msgs helper in smu_v15_0_0drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c+15 -230 replies
4/4drm/amd/pm: use the SMU multi-msgs helper in smu_v15_0_8drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c+6 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] drm/amd/pm: add and use the SMU multi-msgs helper

SMU15 introduced driver messages that 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 switch the first SMU15 users over to them. This keeps multi-parameter messages and multi-return queries on one helper path while leaving the older single-parameter interface unchanged.

Patch 1 adds the common helpers and updates the shared path. Patch 2 converts the SMU15 base table address messages. Patch 3 converts the SMU15.0.0 table transfer and enabled-feature query.
Patch 4 converts the SMU15.0.8 enabled-feature query.

No functional change intended.

Yang Wang (4):
drm/amd/pm: add SMU multi-msgs helpers drm/amd/pm: use the SMU multi-msgs helper in smu_v15_0 drm/amd/pm: use the SMU multi-msgs helper in smu_v15_0_0 drm/amd/pm: use the SMU multi-msgs helper in smu_v15_0_8

 .../gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c    | 47 ++++-----
 .../drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c  | 38 +++-----
 .../drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c  | 14 ++-
 drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c        | 96 +++++++++++++------
 drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h        | 22 +++++
 5 files changed, 130 insertions(+), 87 deletions(-)
Signature · 1 line
2.47.3