drm/amd/powerplay: move maximum sustainable clock retrieving to .hw_init
authorEvan Quan <evan.quan@amd.com>
Mon, 8 Jun 2020 10:04:42 +0000 (18:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:18 +0000 (01:59 -0400)
commit10eafd3e56fde46869d8f46d19c2dc80bdd23bba
treeef34f0b5923d6ded4a728c7c8bbe7c5d161d5507
parent549db52682cb1282b5ac230626fddfeb4b74b409
drm/amd/powerplay: move maximum sustainable clock retrieving to .hw_init

Since DAL settings come between .hw_init and .late_init of SMU. And
DAL needs to know the maximum sustainable clocks.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reported-and-Tested-by: Flora Cui <flora.cui@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c