From: Alex Deucher Date: Mon, 20 Mar 2023 17:22:44 +0000 (-0400) Subject: drm/amdgpu/gfx11: check the CP FW version CP GFX shadow support X-Git-Tag: v6.6.7~2401^2~12^2~768 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b418e7193965a5f064a0e422ccf25e6203f265b5;p=platform%2Fkernel%2Flinux-starfive.git drm/amdgpu/gfx11: check the CP FW version CP GFX shadow support Only set the supported flag if we have new enough CP FW. v2: update to the final firmware versions Acked-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c index f1ad6bd..2b63380 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c @@ -469,6 +469,11 @@ static void gfx_v11_0_check_fw_cp_gfx_shadow(struct amdgpu_device *adev) case IP_VERSION(11, 0, 0): case IP_VERSION(11, 0, 2): case IP_VERSION(11, 0, 3): + if ((adev->gfx.me_fw_version >= 1505) && + (adev->gfx.pfp_fw_version >= 1600) && + (adev->gfx.mec_fw_version >= 512)) + adev->gfx.cp_gfx_shadow = true; + break; default: adev->gfx.cp_gfx_shadow = false; break;