Skip to content

Commit f220674

Browse files
Aaron Liualexdeucher
authored andcommitted
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: Aaron Liu <aaron.liu@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 7c0f7ee commit f220674

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3305,9 +3305,11 @@ static int amdgpu_device_ip_resume(struct amdgpu_device *adev)
33053305
{
33063306
int r;
33073307

3308-
r = amdgpu_amdkfd_resume_iommu(adev);
3309-
if (r)
3310-
return r;
3308+
if (!adev->in_s0ix) {
3309+
r = amdgpu_amdkfd_resume_iommu(adev);
3310+
if (r)
3311+
return r;
3312+
}
33113313

33123314
r = amdgpu_device_ip_resume_phase1(adev);
33133315
if (r)

0 commit comments

Comments
 (0)