[PATCH] drm/amd/pm: update driver-if interface

Alex Deucher alexander.deucher at amd.com
Fri May 17 20:44:11 UTC 2024


From: Kenneth Feng <kenneth.feng at amd.com>

update driver-if interface for smu 14.0.2/3

Signed-off-by: Kenneth Feng <kenneth.feng at amd.com>
Reviewed-by: Yang Wang <kevinyang.wang at amd.com>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 .../swsmu/inc/pmfw_if/smu14_driver_if_v14_0.h | 21 +++++++++++++++++--
 drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h  |  2 +-
 2 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu14_driver_if_v14_0.h b/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu14_driver_if_v14_0.h
index 97a29b80fb133..ee457a6f08130 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu14_driver_if_v14_0.h
+++ b/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu14_driver_if_v14_0.h
@@ -1641,6 +1641,23 @@ typedef struct {
   uint16_t dGPU_W_MAX             ;
   uint16_t padding                ;
 
+  uint16_t MovingAverageGfxclkFrequencyTarget;
+  uint16_t MovingAverageGfxclkFrequencyPreDs;
+  uint16_t MovingAverageGfxclkFrequencyPostDs;
+  uint16_t MovingAverageFclkFrequencyPreDs;
+  uint16_t MovingAverageFclkFrequencyPostDs;
+  uint16_t MovingAverageMemclkFrequencyPreDs;
+  uint16_t MovingAverageMemclkFrequencyPostDs;
+  uint16_t MovingAverageVclk0Frequency;
+  uint16_t MovingAverageDclk0Frequency;
+  uint16_t MovingAverageGfxActivity;
+  uint16_t MovingAverageUclkActivity;
+  uint16_t MovingAverageVcn0ActivityPercentage;
+  uint16_t MovingAveragePCIeBusy;
+  uint16_t MovingAverageUclkActivity_MAX;
+  uint16_t MovingAverageSocketPower;
+  uint16_t MovingAveragePadding;
+
   uint32_t MetricsCounter         ;
 
   uint16_t AvgVoltage[SVI_PLANE_COUNT];
@@ -1653,7 +1670,7 @@ typedef struct {
 
   uint32_t EnergyAccumulator;
   uint16_t AverageSocketPower;
-  uint16_t AverageTotalBoardPower;
+  uint16_t MovingAverageTotalBoardPower;
 
   uint16_t AvgTemperature[TEMP_COUNT];
   uint16_t AvgTemperatureFanIntake;
@@ -1676,7 +1693,7 @@ typedef struct {
 
   uint16_t ApuSTAPMSmartShiftLimit;
   uint16_t ApuSTAPMLimit;
-  uint16_t AvgApuSocketPower;
+  uint16_t MovingAvgApuSocketPower;
 
   uint16_t AverageUclkActivity_MAX;
 
diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h
index 3d34b3869df69..e6531c30c3ebd 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h
+++ b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h
@@ -28,7 +28,7 @@
 #define SMU14_DRIVER_IF_VERSION_INV 0xFFFFFFFF
 #define SMU14_DRIVER_IF_VERSION_SMU_V14_0_0 0x7
 #define SMU14_DRIVER_IF_VERSION_SMU_V14_0_1 0x6
-#define SMU14_DRIVER_IF_VERSION_SMU_V14_0_2 0x25
+#define SMU14_DRIVER_IF_VERSION_SMU_V14_0_2 0x26
 
 #define FEATURE_MASK(feature) (1ULL << feature)
 
-- 
2.45.0



More information about the amd-gfx mailing list