OSDN Git Service

drm/amd/pm: setup APU dpm clock table in SMU HW initialization
authorEvan Quan <evan.quan@amd.com>
Wed, 30 Sep 2020 04:07:56 +0000 (12:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Sep 2020 13:29:00 +0000 (09:29 -0400)
commitb195152536237acf65962b703394614d9c4d307b
tree59e13a17feb9a3134f2ff50fe841664af05bab8a
parent548c7ba7dc9e9dacb43bd2af00b586da48015d04
drm/amd/pm: setup APU dpm clock table in SMU HW initialization

As the dpm clock table is needed during DC HW initialization.
And that (DC HW initialization) comes before smu_late_init()
where current APU dpm clock table setup is performed. So, NULL
pointer dereference will be triggered. By moving APU dpm clock
table setup to smu_hw_init(), this can be avoided.

Fixes: 02cf91c113ea ("drm/amd/powerplay: postpone operations not required for hw setup to late_init")
Acked-by: Nirmoy Das <nirmoy.das@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reported-by: Dirk Gouders <dirk@gouders.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c