drm/amdgpu/psp: start rlc autoload after psp received rlcg for navi14
authorXiaojie Yuan <xiaojie.yuan@amd.com>
Tue, 12 Feb 2019 03:12:31 +0000 (03:12 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:00 +0000 (14:18 -0500)
Update for navi14.

Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index 1f9105a6c0500593e7745429343571ec66a67aa4..409725f408023f92d8112e228ceda561fa06ebfa 100644 (file)
@@ -998,7 +998,9 @@ out:
                        return ret;
 
                /* Start rlc autoload after psp recieved all the gfx firmware */
-               if (ucode->ucode_id == AMDGPU_UCODE_ID_RLC_RESTORE_LIST_SRM_MEM) {
+               if (ucode->ucode_id == AMDGPU_UCODE_ID_RLC_RESTORE_LIST_SRM_MEM ||
+                   (adev->asic_type == CHIP_NAVI14 &&
+                    ucode->ucode_id == AMDGPU_UCODE_ID_RLC_G)) {
                        ret = psp_rlc_autoload(psp);
                        if (ret) {
                                DRM_ERROR("Failed to start rlc autoload\n");