Skip to content

Commit 8560915

Browse files
Asad Kamalalexdeucher
authored andcommitted
drm/amd/pm: Update SMUv13.0.6 PMFW headers
Update PMFW interface headers for updated metrics table and critical temperature message Signed-off-by: Asad Kamal <asad.kamal@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 46b55e2 commit 8560915

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ typedef enum {
123123
VOLTAGE_GUARDBAND_COUNT
124124
} GFX_GUARDBAND_e;
125125

126-
#define SMU_METRICS_TABLE_VERSION 0x5
126+
#define SMU_METRICS_TABLE_VERSION 0x7
127127

128128
typedef struct __attribute__((packed, aligned(4))) {
129129
uint32_t AccumulationCounter;
@@ -198,7 +198,7 @@ typedef struct __attribute__((packed, aligned(4))) {
198198
uint32_t SocketThmResidencyAcc;
199199
uint32_t VrThmResidencyAcc;
200200
uint32_t HbmThmResidencyAcc;
201-
uint32_t spare;
201+
uint32_t GfxLockXCDMak;
202202

203203
// New Items at end to maintain driver compatibility
204204
uint32_t GfxclkFrequency[8];

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,27 @@
8383
#define PPSMC_MSG_GetMinGfxDpmFreq 0x32
8484
#define PPSMC_MSG_GetMaxGfxDpmFreq 0x33
8585
#define PPSMC_MSG_PrepareForDriverUnload 0x34
86-
#define PPSMC_Message_Count 0x35
86+
#define PPSMC_MSG_ReadThrottlerLimit 0x35
87+
#define PPSMC_MSG_QueryValidMcaCount 0x36
88+
#define PPSMC_MSG_McaBankDumpDW 0x37
89+
#define PPSMC_MSG_GetCTFLimit 0x38
90+
#define PPSMC_Message_Count 0x39
8791

8892
//PPSMC Reset Types for driver msg argument
8993
#define PPSMC_RESET_TYPE_DRIVER_MODE_1_RESET 0x1
9094
#define PPSMC_RESET_TYPE_DRIVER_MODE_2_RESET 0x2
9195
#define PPSMC_RESET_TYPE_DRIVER_MODE_3_RESET 0x3
9296

97+
//PPSMC Reset Types for driver msg argument
98+
#define PPSMC_THROTTLING_LIMIT_TYPE_SOCKET 0x1
99+
#define PPSMC_THROTTLING_LIMIT_TYPE_HBM 0x2
100+
101+
//CTF/Throttle Limit types
102+
#define PPSMC_AID_THM_TYPE 0x1
103+
#define PPSMC_CCD_THM_TYPE 0x2
104+
#define PPSMC_XCD_THM_TYPE 0x3
105+
#define PPSMC_HBM_THM_TYPE 0x4
106+
93107
typedef uint32_t PPSMC_Result;
94108
typedef uint32_t PPSMC_MSG;
95109

0 commit comments

Comments
 (0)