Commit 23289a22 authored by Xiaojian Du's avatar Xiaojian Du Committed by Alex Deucher

drm/amd/pm: correct the sensor value of power for vangogh

This patch is to correct the sensor value of power for vangogh.
Signed-off-by: default avatarXiaojian Du <Xiaojian.Du@amd.com>
Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4f1431db
...@@ -256,7 +256,8 @@ static int vangogh_get_smu_metrics_data(struct smu_context *smu, ...@@ -256,7 +256,8 @@ static int vangogh_get_smu_metrics_data(struct smu_context *smu,
*value = metrics->UvdActivity; *value = metrics->UvdActivity;
break; break;
case METRICS_AVERAGE_SOCKETPOWER: case METRICS_AVERAGE_SOCKETPOWER:
*value = metrics->CurrentSocketPower; *value = (metrics->CurrentSocketPower << 8) /
1000 ;
break; break;
case METRICS_TEMPERATURE_EDGE: case METRICS_TEMPERATURE_EDGE:
*value = metrics->GfxTemperature / 100 * *value = metrics->GfxTemperature / 100 *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment