Skip to content

Commit ff5ab42

Browse files
Asad Kamalalexdeucher
authored andcommitted
drm/amd/pm: Update metric table for jpeg/vcn data
Update pmfw metric table to include vcn & jpeg activity for smu_v_13_0_6 Signed-off-by: Asad Kamal <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Reviewed-by: Le Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 0cc9e95 commit ff5ab42

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
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 0x9
126+
#define SMU_METRICS_TABLE_VERSION 0xB
127127

128128
typedef struct __attribute__((packed, aligned(4))) {
129129
uint32_t AccumulationCounter;
@@ -219,6 +219,10 @@ typedef struct __attribute__((packed, aligned(4))) {
219219
uint32_t PCIenReplayARolloverCountAcc; // The Pcie counter itself is accumulated
220220
uint32_t PCIeNAKSentCountAcc; // The Pcie counter itself is accumulated
221221
uint32_t PCIeNAKReceivedCountAcc; // The Pcie counter itself is accumulated
222+
223+
// VCN/JPEG ACTIVITY
224+
uint32_t VcnBusy[4];
225+
uint32_t JpegBusy[32];
222226
} MetricsTableX_t;
223227

224228
typedef struct __attribute__((packed, aligned(4))) {
@@ -307,6 +311,10 @@ typedef struct __attribute__((packed, aligned(4))) {
307311
//XGMI Data tranfser size
308312
uint64_t XgmiReadDataSizeAcc[8];//in KByte
309313
uint64_t XgmiWriteDataSizeAcc[8];//in KByte
314+
315+
// VCN/JPEG ACTIVITY
316+
uint32_t VcnBusy[4];
317+
uint32_t JpegBusy[32];
310318
} MetricsTableA_t;
311319

312320
#define SMU_VF_METRICS_TABLE_VERSION 0x3

0 commit comments

Comments
 (0)