]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: Followup fixes to mc_reg_address
authorErnst Sjöstrand <ernstp@gmail.com>
Sun, 19 Nov 2017 17:52:46 +0000 (18:52 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:48:00 +0000 (12:48 -0500)
commit563d9734921478b5268753b4944a12dcae039ce1
treecb4b476b41cf3ecc48a092ba78ced093fe692a9b
parent820f81f0013aea82feda0226113749abec8c484b
drm/amd/powerplay: Followup fixes to mc_reg_address

This is a followup to:
drm/amd/powerplay: Fix buffer overflows with mc_reg_address

Rework *_set_mc_special_registers for the other architectures to
use the same logic as the first patch. This allows the last entry
of the array to be filled without an error message for example.
This doesn't fix any known problems, perhaps avoided by luck.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Ernst Sjöstrand <ernstp@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/si_dpm.c
drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c