diff options
author | Rahul Jain <[email protected]> | 2024-08-13 13:41:11 +0530 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2024-08-23 10:53:05 -0400 |
commit | 75f0efbc4b3b088cca20864d055b3854a51b5af0 (patch) | |
tree | 584d10ab925b0eb32eda550a96c431a61a6a545b /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 01bfabc2d1d8aaffe5268f8df0843a6d916dcbaa (diff) |
drm/amdgpu: Take IOMMU remapping into account for p2p checks
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 remapping DMA
v5: (Felix, Alex)
- fixing comment as per Alex feedback
- refactor code as per Felix
v4: (Alex)
- fix the comment and description
v3:
- remove iommu_remap variable
v2: (Alex)
- Fix as per review comments
- add new function amdgpu_device_check_iommu_remap to check if iommu
remap
Signed-off-by: Rahul Jain <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions