Skip to content

Commit 62c1ed0

Browse files
Asad Kamalalexdeucher
authored andcommitted
drm/amd/pm: Remove unnecessay UQ10 to UINT conversion
Few of the metrics data for smu_v13_0_12 has not been reported in Q10 format, remove UQ10 to UINT conversion for those Signed-off-by: Asad Kamal <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 0156d2b commit 62c1ed0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,8 @@ ssize_t smu_v13_0_12_get_gpu_metrics(struct smu_context *smu, void **table)
478478
}
479479
}
480480

481-
gpu_metrics->xgmi_link_width = SMUQ10_ROUND(metrics->XgmiWidth);
482-
gpu_metrics->xgmi_link_speed = SMUQ10_ROUND(metrics->XgmiBitrate);
481+
gpu_metrics->xgmi_link_width = metrics->XgmiWidth;
482+
gpu_metrics->xgmi_link_speed = metrics->XgmiBitrate;
483483

484484
gpu_metrics->firmware_timestamp = metrics->Timestamp;
485485

0 commit comments

Comments
 (0)