Skip to content

Commit 0156d2b

Browse files
Asad Kamalalexdeucher
authored andcommitted
drm/amd/pm: Remove unnecessay UQ10 to UINT conversion
Few of the metrics data for smu_v13_0_6 has not been reported in Q10 format, remove UQ10 to UINT conversion for those v2: Move smu_v13_0_12 changes to separate patch(Kevin) 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 6ec04e3 commit 0156d2b

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_6_ppt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2682,8 +2682,8 @@ static ssize_t smu_v13_0_6_get_gpu_metrics(struct smu_context *smu, void **table
26822682
}
26832683
}
26842684

2685-
gpu_metrics->xgmi_link_width = SMUQ10_ROUND(GET_METRIC_FIELD(XgmiWidth, version));
2686-
gpu_metrics->xgmi_link_speed = SMUQ10_ROUND(GET_METRIC_FIELD(XgmiBitrate, version));
2685+
gpu_metrics->xgmi_link_width = GET_METRIC_FIELD(XgmiWidth, version);
2686+
gpu_metrics->xgmi_link_speed = GET_METRIC_FIELD(XgmiBitrate, version);
26872687

26882688
gpu_metrics->firmware_timestamp = GET_METRIC_FIELD(Timestamp, version);
26892689

0 commit comments

Comments
 (0)