Skip to content

Commit 2bc0167

Browse files
committed
drm/amdgpu/pm: add VCN activity for renoir
Wire up the query. Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 90df6db commit 2bc0167

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,6 +1285,12 @@ static int renoir_read_sensor(struct smu_context *smu,
12851285
(uint32_t *)data);
12861286
*size = 4;
12871287
break;
1288+
case AMDGPU_PP_SENSOR_VCN_LOAD:
1289+
ret = renoir_get_smu_metrics_data(smu,
1290+
METRICS_AVERAGE_VCNACTIVITY,
1291+
(uint32_t *)data);
1292+
*size = 4;
1293+
break;
12881294
case AMDGPU_PP_SENSOR_EDGE_TEMP:
12891295
ret = renoir_get_smu_metrics_data(smu,
12901296
METRICS_TEMPERATURE_EDGE,

0 commit comments

Comments
 (0)