]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/psp: perform tmr_init and asd_init after loading sysdrv/sos
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 12 Nov 2018 08:33:08 +0000 (16:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 02:46:50 +0000 (21:46 -0500)
commitc1f3eab1bb5e5f3392e7ceaa4b4a9d62ffdc1c59
tree6977fecc73e7c3d886e46391f3bef3c993a96545
parent0889cff179efca4bdb1c13204fe2375474ca8fb9
drm/amdgpu/psp: perform tmr_init and asd_init after loading sysdrv/sos

Since from navi10, the tmr_size should be decided by psp sos according to
toc header. Driver should issue LOAD_TOC to psp sos to get the tmr_size needed.
The allocation of tmr_size then should be done only when sos/sysdrv loading
completed

Accordingly, asd_init also move to psp_hw_start after sos fw loading to make
calling sequence consistent.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c