aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2025-03-11 20:30:58 +0000
committerAlex Deucher <[email protected]>2025-03-14 03:11:32 +0000
commit2bc016737a115469eb19a9a2d5d8d60ed38f6f82 (patch)
treeba22237aa52102bf68c323da10bc5e858a3fb52e /drivers/gpu
parentdrm/amdgpu/pm: wire up hwmon fan speed for smu 14.0.2 (diff)
downloadkernel-2bc016737a115469eb19a9a2d5d8d60ed38f6f82.tar.gz
kernel-2bc016737a115469eb19a9a2d5d8d60ed38f6f82.zip
drm/amdgpu/pm: add VCN activity for renoir
Wire up the query. Reviewed-by: Lijo Lazar <[email protected]> Reviewed-by: Kenneth Feng <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
index 37d82a71a2d7..9481f897432d 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
@@ -1285,6 +1285,12 @@ static int renoir_read_sensor(struct smu_context *smu,
(uint32_t *)data);
*size = 4;
break;
+ case AMDGPU_PP_SENSOR_VCN_LOAD:
+ ret = renoir_get_smu_metrics_data(smu,
+ METRICS_AVERAGE_VCNACTIVITY,
+ (uint32_t *)data);
+ *size = 4;
+ break;
case AMDGPU_PP_SENSOR_EDGE_TEMP:
ret = renoir_get_smu_metrics_data(smu,
METRICS_TEMPERATURE_EDGE,