Skip to content

Commit beae798

Browse files
Asad Kamalalexdeucher
authored andcommitted
drm/amd/pm: Update pmfw headers for smu_v13_0_12
Update pmfw headers for smu_v13_0_12 to include node power limit Signed-off-by: Asad Kamal <asad.kamal@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Yang Wang <kevinyang.wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent e09a4fd commit beae798

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ typedef enum {
191191

192192
#define SMU_METRICS_TABLE_VERSION 0x14
193193

194-
#define SMU_SYSTEM_METRICS_TABLE_VERSION 0x0
194+
#define SMU_SYSTEM_METRICS_TABLE_VERSION 0x1
195195

196196
typedef struct __attribute__((packed, aligned(4))) {
197197
uint64_t AccumulationCounter;
@@ -304,7 +304,12 @@ typedef struct {
304304
int16_t SystemTemperatures[SYSTEM_TEMP_MAX_ENTRIES]; // Signed integer temperature value in Celsius, unused fields are set to 0xFFFF
305305
int16_t NodeTemperatures[NODE_TEMP_MAX_TEMP_ENTRIES]; // Signed integer temperature value in Celsius, unused fields are set to 0xFFFF
306306
int16_t VrTemperatures[SVI_MAX_TEMP_ENTRIES]; // Signed integer temperature value in Celsius
307-
int16_t spare[3];
307+
int16_t spare[7];
308+
309+
//NPM: NODE POWER MANAGEMENT
310+
uint32_t NodePowerLimit;
311+
uint32_t NodePower;
312+
uint32_t GlobalPPTResidencyAcc;
308313
} SystemMetricsTable_t;
309314
#pragma pack(pop)
310315

@@ -359,6 +364,9 @@ typedef struct {
359364

360365
// General info
361366
uint32_t pldmVersion[2];
367+
368+
//Node Power Limit
369+
uint32_t MaxNodePowerLimit;
362370
} StaticMetricsTable_t;
363371
#pragma pack(pop)
364372

0 commit comments

Comments
 (0)