]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/amd/pm: Remove unnecessay UQ10 to UINT conversion
authorAsad Kamal <asad.kamal@amd.com>
Wed, 19 Mar 2025 11:18:43 +0000 (19:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Mar 2025 16:16:35 +0000 (12:16 -0400)
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 <asad.kamal@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

index 1e1d8989c77aa370c0acda9238f8359c6a2118db..f2837dadd8975dd6c23aaaf4da4a2e2b567e918a 100644 (file)
@@ -2682,8 +2682,8 @@ static ssize_t smu_v13_0_6_get_gpu_metrics(struct smu_context *smu, void **table
                }
        }
 
-       gpu_metrics->xgmi_link_width = SMUQ10_ROUND(GET_METRIC_FIELD(XgmiWidth, version));
-       gpu_metrics->xgmi_link_speed = SMUQ10_ROUND(GET_METRIC_FIELD(XgmiBitrate, version));
+       gpu_metrics->xgmi_link_width = GET_METRIC_FIELD(XgmiWidth, version);
+       gpu_metrics->xgmi_link_speed = GET_METRIC_FIELD(XgmiBitrate, version);
 
        gpu_metrics->firmware_timestamp = GET_METRIC_FIELD(Timestamp, version);