drm/amdgpu: correct RLC firmwares loading sequence
authorEvan Quan <evan.quan@amd.com>
Mon, 23 Dec 2019 08:13:48 +0000 (16:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jan 2020 14:26:09 +0000 (09:26 -0500)
commit969e11529221a6a2a787cb3b63ccf9402f8d2e37
tree061b3f16bbe99aaf7405877108a6874999792712
parente0c63812352298efbce2a71483c1dab627d0c288
drm/amdgpu: correct RLC firmwares loading sequence

Per confirmation with RLC firmware team, the RLC should
be unhalted after all RLC related firmwares uploaded.
However, in fact the RLC is unhalted immediately after
RLCG firmware uploaded. And that may causes unexpected
PSP hang on loading the succeeding RLC save restore
list related firmwares.
So, we correct the firmware loading sequence to load
RLC save restore list related firmwares before RLCG
ucode. That will help to get around this issue.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h