]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: Zero out power data in AMDGPU_PP_SENSOR_GPU_POWER readout
authorTom St Denis <tom.stdenis@amd.com>
Tue, 6 Feb 2018 19:00:01 +0000 (14:00 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:38 +0000 (14:19 -0500)
commit2d81b905cc6bf9c5247497b3c92af7e4359bba78
tree7ae7016381a9d2fc3ca9b1a25bdc679a9c47333e
parentb355c8cfaec485a3cfeab678d89ee6bc4c3248d7
drm/amd/powerplay:  Zero out power data in AMDGPU_PP_SENSOR_GPU_POWER readout

Since 12 of the 16 bytes are not initialized with anything let's ensure they're
sensibly zeroed out otherwise debugfs callers will read back garbage
(because they assume debugfs wrote sensible data back...)

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c