Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu/pm: add VCN activity for SMU 14.0.2

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>

+10
+10
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
··· 756 756 case METRICS_AVERAGE_MEMACTIVITY: 757 757 *value = metrics->AverageUclkActivity; 758 758 break; 759 + case METRICS_AVERAGE_VCNACTIVITY: 760 + *value = max(metrics->AverageVcn0ActivityPercentage, 761 + metrics->Vcn1ActivityPercentage); 762 + break; 759 763 case METRICS_AVERAGE_SOCKETPOWER: 760 764 *value = metrics->AverageSocketPower << 8; 761 765 break; ··· 883 879 case AMDGPU_PP_SENSOR_GPU_LOAD: 884 880 ret = smu_v14_0_2_get_smu_metrics_data(smu, 885 881 METRICS_AVERAGE_GFXACTIVITY, 882 + (uint32_t *)data); 883 + *size = 4; 884 + break; 885 + case AMDGPU_PP_SENSOR_VCN_LOAD: 886 + ret = smu_v14_0_2_get_smu_metrics_data(smu, 887 + METRICS_AVERAGE_VCNACTIVITY, 886 888 (uint32_t *)data); 887 889 *size = 4; 888 890 break;