drm/amd/pp: Allocate ucode bo in request_smu_load_fw
authorRex Zhu <Rex.Zhu@amd.com>
Sat, 29 Sep 2018 07:42:52 +0000 (15:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Oct 2018 22:08:04 +0000 (17:08 -0500)
commit744a522794bdc64391039177153ef973cbff1297
tree0487345f1d078f080d61929da2335f305ea1e83a
parent07da6aa47f84150ec6476e670b48e3e7158a4b15
drm/amd/pp: Allocate ucode bo in request_smu_load_fw

ucode bo is needed by request_smu_load_fw,
the request_smu_load_fw maybe called by gfx/sdma
before smu hw init.
so move amdgpu_ucode_bo_init to request_smu_lowd_fw
from smu hw init.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amd_powerplay.c
drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c