Re: [PATCH v3] drm/amdgpu: Take IOMMU remapping into account for p2p checks

2024-08-14 Thread Felix Kuehling
On 2024-08-14 11:17, Alex Deucher wrote: On Wed, Aug 14, 2024 at 5:15 AM Rahul Jain wrote: when trying to enable p2p the amdgpu_device_is_peer_accessible() checks the condition where address_mask overlaps the aper_base and hence returns 0, due to which the p2p disables for this platform IOMM

Re: [PATCH v3] drm/amdgpu: Take IOMMU remapping into account for p2p checks

2024-08-14 Thread Alex Deucher
On Wed, Aug 14, 2024 at 5:15 AM Rahul Jain wrote: > > when trying to enable p2p the amdgpu_device_is_peer_accessible() > checks the condition where address_mask overlaps the aper_base > and hence returns 0, due to which the p2p disables for this platform > > IOMMU should remap the BAR addresses so

[PATCH v3] drm/amdgpu: Take IOMMU remapping into account for p2p checks

2024-08-14 Thread Rahul Jain
when trying to enable p2p the amdgpu_device_is_peer_accessible() checks the condition where address_mask overlaps the aper_base and hence returns 0, due to which the p2p disables for this platform IOMMU should remap the BAR addresses so the device can access them. Hence check if peer_adev is remap