Commit f2206741 authored by Aaron Liu's avatar Aaron Liu Committed by Alex Deucher
Browse files

drm/amdgpu: skip kfd-iommu suspend/resume for S0ix



GFX is in gfxoff mode during s0ix so we shouldn't need to
actually execute kfd_iommu_suspend/kfd_iommu_resume operation.

Signed-off-by: default avatarAaron Liu <aaron.liu@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7c0f7ee0
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -3305,9 +3305,11 @@ static int amdgpu_device_ip_resume(struct amdgpu_device *adev)
{
	int r;

	if (!adev->in_s0ix) {
		r = amdgpu_amdkfd_resume_iommu(adev);
		if (r)
			return r;
	}

	r = amdgpu_device_ip_resume_phase1(adev);
	if (r)