[PATCH v2 7/7] drm/amdgpu: add VCN sensor value for SMU 14.0.0

Alex Deucher alexdeucher at gmail.com
Fri Mar 8 14:33:29 UTC 2024


Series is:
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

On Fri, Mar 8, 2024 at 4:13 AM Xiaojian Du <Xiaojian.Du at amd.com> wrote:
>
> This will add VCN sensor value for SMU 14.0.0.
>
> Signed-off-by: Xiaojian Du <Xiaojian.Du at amd.com>
> ---
>  drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
> index 47fdbae4adfc..1d6630d20402 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
> @@ -352,6 +352,12 @@ static int smu_v14_0_0_read_sensor(struct smu_context *smu,
>                                                        (uint32_t *)data);
>                 *size = 4;
>                 break;
> +       case AMDGPU_PP_SENSOR_VCN_LOAD:
> +               ret = smu_v14_0_0_get_smu_metrics_data(smu,
> +                                                       METRICS_AVERAGE_VCNACTIVITY,
> +                                                       (uint32_t *)data);
> +               *size = 4;
> +               break;
>         case AMDGPU_PP_SENSOR_GPU_AVG_POWER:
>                 ret = smu_v14_0_0_get_smu_metrics_data(smu,
>                                                        METRICS_AVERAGE_SOCKETPOWER,
> --
> 2.34.1
>


More information about the amd-gfx mailing list