mirror_ubuntu-kernels/drivers/gpu/drm/amd/pm
Xiaojian Du 800c53d687 drm/amd/pm: set the initial value of pm info to zero
This patch is to set the initial value of pm info to zero.
The "value64" is ported to the hwmon and debugfs node, it is a uint64 type.
When it is used for NV10/VEGA10/VEGA20, its word size is appropriate,
because NV10/VEGA10/VEGA20 has a 64bit smu feature mask, which is separated to high 32bit and low 32bit.
But some asic has only 32bit smu feature mask,and this 32bit mask will fill the low 32bit of "value64".
So if this "value64" is not initialized to zero, the high 32bit will be
filled by a meaningless value, when the whole "value64" is ported to the
"SMC Feature Mask" in the "amdgpu_pm_info" on some specific asic, it
will be a wrong value.

Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-10-30 00:58:18 -04:00
..
inc drm/amd/pm: update the smu v11.5 driver interface header for vangogh 2020-10-30 00:58:12 -04:00
powerplay drm/amd/pm: drop redundant display setting 2020-10-27 12:00:52 -04:00
swsmu drm/amd/pm: add UMD Pstate Msg Parameters for vangogh temporarily 2020-10-30 00:58:06 -04:00
amdgpu_dpm.c drm/amdgpu: Get DRM dev from adev by inline-f 2020-08-24 13:06:06 -04:00
amdgpu_pm.c drm/amd/pm: set the initial value of pm info to zero 2020-10-30 00:58:18 -04:00
Makefile