Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e993ca4f authored by Daniel Wang's avatar Daniel Wang Committed by Alex Deucher
Browse files

drm/amdgpu/psp: skip loading SDMA/RLCG under SRIOV VF



Now GPU hypervisor will load SDMA and RLCG ucode, so skip it
in guest.

Signed-off-by: default avatarDaniel Wang <Daniel.Wang2@amd.com>
Signed-off-by: default avatarXiangliang Yu <Xiangliang.Yu@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 51687759
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -289,6 +289,12 @@ static int psp_np_fw_load(struct psp_context *psp)
		if (ucode->ucode_id == AMDGPU_UCODE_ID_SMC &&
		    psp_smu_reload_quirk(psp))
			continue;
		if (amdgpu_sriov_vf(adev) &&
		   (ucode->ucode_id == AMDGPU_UCODE_ID_SDMA0
		    || ucode->ucode_id == AMDGPU_UCODE_ID_SDMA1
		    || ucode->ucode_id == AMDGPU_UCODE_ID_RLC_G))
			/*skip ucode loading in SRIOV VF */
			continue;

		ret = psp_prep_cmd_buf(ucode, psp->cmd);
		if (ret)