Skip to content

Commit

Permalink
drm/amdgpu: drm/amdgpu: Handle IOMMU enabled case
Browse files Browse the repository at this point in the history
Handle all DMA IOMMU group related dependencies before the
group is removed and we try to access it after free.

v2:
Move the actul handling function to TTM

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Andrey Grodzovsky authored and Alex Deucher committed Sep 29, 2021
1 parent 5039f52 commit 894c689
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -3872,6 +3872,8 @@ void amdgpu_device_fini_hw(struct amdgpu_device *adev)

amdgpu_device_ip_fini_early(adev);

ttm_device_clear_dma_mappings(&adev->mman.bdev);

amdgpu_gart_dummy_page_fini(adev);

amdgpu_device_unmap_mmio(adev);
Expand Down

0 comments on commit 894c689

Please sign in to comment.