drm/amdgpu: fix resume failures due to psp fw loading sequence change (v3)
authorHawking Zhang <Hawking.Zhang@amd.com>
Fri, 6 Dec 2019 10:09:19 +0000 (18:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Dec 2019 22:03:38 +0000 (17:03 -0500)
commit0d6f39bb77109b1837dc863e08c739039b753ce4
tree92676e9be1ce61f8c4f85e52c424417f97eed04d
parentd515959125f24767d02e82587a11e444eeba0e7b
drm/amdgpu: fix resume failures due to psp fw loading sequence change (v3)

this fix the regression caused by asd/ta loading sequence
adjustment recently. asd/ta loading was move out from
hw_start and should also be applied to psp_resume.
otherwise those fw loading will be ignored in resume phase.

v2: add the mutex unlock for asd loading failure case
v3: merge the error handling to failed tag

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Le Ma <Le.Ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c