[PATCH] drm/amd/amdgpu: Add MEM_LOAD to amdgpu_pm_info debugfs file
Quan, Evan
Evan.Quan at amd.com
Fri May 3 10:03:23 UTC 2019
Reviewed-by: Evan Quan <evan.quan at amd.com>
> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of
> StDenis, Tom
> Sent: 2019年5月2日 22:23
> To: amd-gfx at lists.freedesktop.org
> Cc: StDenis, Tom <Tom.StDenis at amd.com>
> Subject: [PATCH] drm/amd/amdgpu: Add MEM_LOAD to amdgpu_pm_info
> debugfs file
>
> [CAUTION: External Email]
>
> Signed-off-by: Tom St Denis <tom.stdenis at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
> index 5e2d039e09ad..e0789f0f2670 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
> @@ -2955,6 +2955,10 @@ static int amdgpu_debugfs_pm_info_pp(struct
> seq_file *m, struct amdgpu_device *a
> /* GPU Load */
> if (!amdgpu_dpm_read_sensor(adev,
> AMDGPU_PP_SENSOR_GPU_LOAD, (void *)&value, &size))
> seq_printf(m, "GPU Load: %u %%\n", value);
> + /* MEM Load */
> + if (!amdgpu_dpm_read_sensor(adev,
> AMDGPU_PP_SENSOR_MEM_LOAD, (void *)&value, &size))
> + seq_printf(m, "MEM Load: %u %%\n", value);
> +
> seq_printf(m, "\n");
>
> /* SMC feature mask */
> --
> 2.20.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list