Re: [PATCH 1/2] drm/amdgpu: Detect if amdgpu in IOMMU isolation mode

2021-12-09 Thread philip yang
On 2021-12-07 5:16 p.m., Alex Deucher wrote: On Tue, Dec 7, 2021 at 4:59 PM Felix Kuehling wrote: On 2021-12-07 9:59 a.m., Philip Yang wrote: If host and amdgpu IOMMU is not enabled or IOMMU is pass through mode, dma_map_

Re: [PATCH 1/2] drm/amdgpu: Detect if amdgpu in IOMMU isolation mode

2021-12-07 Thread Alex Deucher
On Tue, Dec 7, 2021 at 4:59 PM Felix Kuehling wrote: > > On 2021-12-07 9:59 a.m., Philip Yang wrote: > > If host and amdgpu IOMMU is not enabled or IOMMU is pass through mode, > > dma_map_page return address is equal to page physical address, use this > > to set adev->iommu_isolation flag which wi

Re: [PATCH 1/2] drm/amdgpu: Detect if amdgpu in IOMMU isolation mode

2021-12-07 Thread Felix Kuehling
On 2021-12-07 9:59 a.m., Philip Yang wrote: If host and amdgpu IOMMU is not enabled or IOMMU is pass through mode, dma_map_page return address is equal to page physical address, use this to set adev->iommu_isolation flag which will be used to optimize memory usage for multi GPU mappings. Signed-

[PATCH 1/2] drm/amdgpu: Detect if amdgpu in IOMMU isolation mode

2021-12-07 Thread Philip Yang
If host and amdgpu IOMMU is not enabled or IOMMU is pass through mode, dma_map_page return address is equal to page physical address, use this to set adev->iommu_isolation flag which will be used to optimize memory usage for multi GPU mappings. Signed-off-by: Philip Yang --- drivers/gpu/drm/amd/