aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
diff options
context:
space:
mode:
authorXiaojian Du <[email protected]>2020-10-13 16:43:25 +0800
committerAlex Deucher <[email protected]>2020-10-30 00:58:18 -0400
commit800c53d6870a93111e25cd95c6fd1ab306122d27 (patch)
treeadfc99cd17e7fd02b8bb20e49e419827f390b5fb /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
parentea8ca1febd3cf6bd2284a02d8601f8d2ac1e91d0 (diff)
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 <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
0 files changed, 0 insertions, 0 deletions