Skip to content

Commit 853fdb4

Browse files
Tim Huangalexdeucher
authored andcommitted
drm/amd/pm: update SMU IP v13.0.4 driver interface version
Update the SMU driver interface version to V7. Signed-off-by: Tim Huang <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected] # 6.0.x Signed-off-by: Alex Deucher <[email protected]>
1 parent 5fa9937 commit 853fdb4

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_4.h

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// *** IMPORTANT ***
2828
// SMU TEAM: Always increment the interface version if
2929
// any structure is changed in this file
30-
#define PMFW_DRIVER_IF_VERSION 5
30+
#define PMFW_DRIVER_IF_VERSION 7
3131

3232
typedef struct {
3333
int32_t value;
@@ -163,8 +163,8 @@ typedef struct {
163163
uint16_t DclkFrequency; //[MHz]
164164
uint16_t MemclkFrequency; //[MHz]
165165
uint16_t spare; //[centi]
166-
uint16_t UvdActivity; //[centi]
167166
uint16_t GfxActivity; //[centi]
167+
uint16_t UvdActivity; //[centi]
168168

169169
uint16_t Voltage[2]; //[mV] indices: VDDCR_VDD, VDDCR_SOC
170170
uint16_t Current[2]; //[mA] indices: VDDCR_VDD, VDDCR_SOC
@@ -199,6 +199,19 @@ typedef struct {
199199
uint16_t DeviceState;
200200
uint16_t CurTemp; //[centi-Celsius]
201201
uint16_t spare2;
202+
203+
uint16_t AverageGfxclkFrequency;
204+
uint16_t AverageFclkFrequency;
205+
uint16_t AverageGfxActivity;
206+
uint16_t AverageSocclkFrequency;
207+
uint16_t AverageVclkFrequency;
208+
uint16_t AverageVcnActivity;
209+
uint16_t AverageDRAMReads; //Filtered DF Bandwidth::DRAM Reads
210+
uint16_t AverageDRAMWrites; //Filtered DF Bandwidth::DRAM Writes
211+
uint16_t AverageSocketPower; //Filtered value of CurrentSocketPower
212+
uint16_t AverageCorePower; //Filtered of [sum of CorePower[8]])
213+
uint16_t AverageCoreC0Residency[8]; //Filtered of [average C0 residency % per core]
214+
uint32_t MetricsCounter; //Counts the # of metrics table parameter reads per update to the metrics table, i.e. if the metrics table update happens every 1 second, this value could be up to 1000 if the smu collected metrics data every cycle, or as low as 0 if the smu was asleep the whole time. Reset to 0 after writing.
202215
} SmuMetrics_t;
203216

204217
typedef struct {

0 commit comments

Comments
 (0)