Skip to content

Commit 786c355

Browse files
Asad Kamalalexdeucher
authored andcommitted
drm/amd/pm: Update metric table for smu v13_0_6
Update pmfw metric table to include pcie instantaneous bandwidth & pcie error counters Signed-off-by: Asad Kamal <asad.kamal@amd.com> Reviewed-by: Le Ma <le.ma@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 50d5137 commit 786c355

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

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 0x8
126+
#define SMU_METRICS_TABLE_VERSION 0x9
127127

128128
typedef struct __attribute__((packed, aligned(4))) {
129129
uint32_t AccumulationCounter;
@@ -211,6 +211,14 @@ typedef struct __attribute__((packed, aligned(4))) {
211211
//XGMI Data tranfser size
212212
uint64_t XgmiReadDataSizeAcc[8];//in KByte
213213
uint64_t XgmiWriteDataSizeAcc[8];//in KByte
214+
215+
//PCIE BW Data and error count
216+
uint32_t PcieBandwidth[4];
217+
uint32_t PCIeL0ToRecoveryCountAcc; // The Pcie counter itself is accumulated
218+
uint32_t PCIenReplayAAcc; // The Pcie counter itself is accumulated
219+
uint32_t PCIenReplayARolloverCountAcc; // The Pcie counter itself is accumulated
220+
uint32_t PCIeNAKSentCountAcc; // The Pcie counter itself is accumulated
221+
uint32_t PCIeNAKReceivedCountAcc; // The Pcie counter itself is accumulated
214222
} MetricsTable_t;
215223

216224
#define SMU_VF_METRICS_TABLE_VERSION 0x3

0 commit comments

Comments
 (0)