Skip to content

Commit e4d0be1

Browse files
Asad Kamalalexdeucher
authored andcommitted
drm/amd/pm: Fill pcie error counters for gpu v1_4
Fill PCIE error counters & instantaneous bandwidth in gpu metrics v1_4 for smu v_13_0_6 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 786c355 commit e4d0be1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2095,6 +2095,14 @@ static ssize_t smu_v13_0_6_get_gpu_metrics(struct smu_context *smu, void **table
20952095
smu_v13_0_6_get_current_pcie_link_speed(smu);
20962096
gpu_metrics->pcie_bandwidth_acc =
20972097
SMUQ10_ROUND(metrics->PcieBandwidthAcc[0]);
2098+
gpu_metrics->pcie_bandwidth_inst =
2099+
SMUQ10_ROUND(metrics->PcieBandwidth[0]);
2100+
gpu_metrics->pcie_l0_to_recov_count_acc =
2101+
metrics->PCIeL0ToRecoveryCountAcc;
2102+
gpu_metrics->pcie_replay_count_acc =
2103+
metrics->PCIenReplayAAcc;
2104+
gpu_metrics->pcie_replay_rover_count_acc =
2105+
metrics->PCIenReplayARolloverCountAcc;
20982106
}
20992107

21002108
gpu_metrics->system_clock_counter = ktime_get_boottime_ns();

0 commit comments

Comments
 (0)