Skip to content

Implement SMU message register protection

Matt Coffin amd-gfx 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 3 repliesIn review
  2. v23 patches 0 repliesSuperseded
  3. v12 patches 4 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/amdgpu/powerplay: Refactor SMU message handling for safetydrivers/gpu/drm/amd/powerplay/amdgpu_smu.c drivers/gpu/drm/amd/powerplay/arcturus_ppt.c drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h +8 more+211 -2050 replies
2/3drm/amdgpu/powerplay: Remove deprecated smc_read_argdrivers/gpu/drm/amd/powerplay/arcturus_ppt.c drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h +7 more+2 -130 replies
3/3drm/amdgpu/smu: Add message sending lockdrivers/gpu/drm/amd/powerplay/amdgpu_smu.c drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h drivers/gpu/drm/amd/powerplay/smu_v11_0.c +1 more+15 -90 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/3] Implement SMU message register protection

Sorry for the extra email, but the mutex_init got lost when I was rebasing. Oops.

This patchset adds a message lock to lock access to the SMU message communication registers to prevent concurrent access.

v2: Separate navi10 change out into a separate patch, and remove mutex definition from first patch

v3: Re-add mutex_init to amdgpu_smu.c. It got lost in the rebase

For Alex's concerns, I omitted one of them, though I can re-submit if it's still desired. since smu_send_smc_msg was previously around, and is used in lots of places, I left it alone rather than replace every occurance as it still makes sense to be able to safely send messages without arguments, without knowing that the default argument should be zero.

Matt Coffin (3):
drm/amdgpu/powerplay: Refactor SMU message handling for safety drm/amdgpu/powerplay: Remove deprecated smc_read_arg drm/amdgpu/smu: Add message sending lock

 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c    |  47 ++-----
 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c  |  30 +++--
 .../gpu/drm/amd/powerplay/inc/amdgpu_smu.h    |   4 +-
 drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h |   5 +-
 drivers/gpu/drm/amd/powerplay/inc/smu_v12_0.h |   5 +-
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c    |  35 ++---
 drivers/gpu/drm/amd/powerplay/renoir_ppt.c    |  26 ++--
 drivers/gpu/drm/amd/powerplay/smu_internal.h  |  11 +-
 drivers/gpu/drm/amd/powerplay/smu_v11_0.c     | 120 +++++++++---------
 drivers/gpu/drm/amd/powerplay/smu_v12_0.c     |  87 +++++++------
 drivers/gpu/drm/amd/powerplay/vega20_ppt.c    |  69 ++++++----
 11 files changed, 220 insertions(+), 219 deletions(-)
Signature · 6 lines
2.25.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx