diff options
author | 2023-03-20 13:22:44 -0400 | |
---|---|---|
committer | 2023-04-24 18:16:10 -0400 | |
commit | b418e7193965a5f064a0e422ccf25e6203f265b5 (patch) | |
tree | 0145584749c8a1a1010b8b9e264e4dc90c465d94 /drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | |
parent | drm/amdgpu: fix memory leak in mes self test (diff) | |
download | linux-b418e7193965a5f064a0e422ccf25e6203f265b5.tar.gz linux-b418e7193965a5f064a0e422ccf25e6203f265b5.tar.bz2 linux-b418e7193965a5f064a0e422ccf25e6203f265b5.zip |
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 <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c index f1ad6bd1eda8..2b63380ec75a 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; |