Reviewed-by: Evan Quan <evan.quan@xxxxxxx> > -----Original Message----- > From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of > StDenis, Tom > Sent: 2019年5月2日 22:23 > To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx > Cc: StDenis, Tom <Tom.StDenis@xxxxxxx> > 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@xxxxxxx> > --- > 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@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/amd-gfx _______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx