]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: setup APU dpm clock table in SMU HW initialization
authorEvan Quan <evan.quan@amd.com>
Wed, 30 Sep 2020 03:54:01 +0000 (11:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Oct 2020 19:14:36 +0000 (15:14 -0400)
commit4150a65c1b2febd6ba05ca7f539d34af931c6396
treed27e0f28c66b0c523c4ac5daa18a66ca45ff1181
parent547010dca75a8b16148c886c987be599908267ab
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: b2353316e4c0 ("drm/amd/powerplay: postpone operations not required for hw setup to late_init")
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reported-by: Dirk Gouders <dirk@gouders.net>
Acked-by: Nirmoy Das <nirmoy.das@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c