drm/amdgpu: skip mec2 jump table loading for renoir
authorHuang Rui <ray.huang@amd.com>
Sun, 21 Jul 2019 14:27:50 +0000 (22:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 12 Aug 2019 17:47:51 +0000 (12:47 -0500)
Renoir need not load mec2 jump table with psp.

Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Aaron Liu <aaron.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index ab38877..8466f70 100644 (file)
@@ -1023,6 +1023,10 @@ out:
                     ucode->ucode_id == AMDGPU_UCODE_ID_CP_MEC2_JT))
                        /* skip mec JT when autoload is enabled */
                        continue;
+               /* Renoir only needs to load mec jump table one time */
+               if (adev->asic_type == CHIP_RENOIR &&
+                   ucode->ucode_id == AMDGPU_UCODE_ID_CP_MEC2_JT)
+                       continue;
 
                ret = psp_execute_np_fw_load(psp, ucode);
                if (ret)