Skip to content

Commit

Permalink
drm/amdgpu: skip kfd-iommu suspend/resume for S0ix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aaron Liu authored and Alex Deucher committed Apr 14, 2023
1 parent 7c0f7ee commit f220674
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -3305,9 +3305,11 @@ static int amdgpu_device_ip_resume(struct amdgpu_device *adev)
{
int r;

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

r = amdgpu_device_ip_resume_phase1(adev);
if (r)
Expand Down

0 comments on commit f220674

Please sign in to comment.