Skip to content

Commit 81af325

Browse files
committed
drm/amdgpu/gfx11: only enable CP GFX shadowing on SR-IOV
This is only required for SR-IOV world switches, but it adds additional latency leading to reduced performance in some benchmarks. Disable for now on bare metal. Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent ec8e59c commit 81af325

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,12 @@ static void gfx_v11_0_check_fw_cp_gfx_shadow(struct amdgpu_device *adev)
471471
case IP_VERSION(11, 0, 3):
472472
if ((adev->gfx.me_fw_version >= 1505) &&
473473
(adev->gfx.pfp_fw_version >= 1600) &&
474-
(adev->gfx.mec_fw_version >= 512))
475-
adev->gfx.cp_gfx_shadow = true;
474+
(adev->gfx.mec_fw_version >= 512)) {
475+
if (amdgpu_sriov_vf(adev))
476+
adev->gfx.cp_gfx_shadow = true;
477+
else
478+
adev->gfx.cp_gfx_shadow = false;
479+
}
476480
break;
477481
default:
478482
adev->gfx.cp_gfx_shadow = false;

0 commit comments

Comments
 (0)