From: Huang Rui Date: Sun, 21 Jul 2019 14:27:50 +0000 (+0800) Subject: drm/amdgpu: skip mec2 jump table loading for renoir X-Git-Tag: v5.15~5407^2~9^2~203 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c9d0ca8528b334e87f9edf08623a2623bfb99a8c;p=platform%2Fkernel%2Flinux-starfive.git drm/amdgpu: skip mec2 jump table loading for renoir Renoir need not load mec2 jump table with psp. Acked-by: Huang Rui Signed-off-by: Huang Rui Reviewed-by: Aaron Liu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index ab38877..8466f70 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -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)