aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorTymoteusz Kielan <[email protected]>2016-09-06 04:35:54 -0700
committerDoug Ledford <[email protected]>2016-10-02 08:42:07 -0400
commit60368186fd853899c1819bcefa47f85fe8d5e5ad (patch)
tree991c21483223261f8c8a8e04498c1ecd235245ed /lib/mpi/mpiutil.c
parent0b115ef100a3734265a46e13707446d2de00df5c (diff)
IB/hfi1: Fix user-space buffers mapping with IOMMU enabled
The dma_XXX API functions return bus addresses which are physical addresses when IOMMU is disabled. Buffer mapping to user-space is done via remap_pfn_range() with PFN based on bus address instead of physical. This results in wrong pages being mapped to user-space when IOMMU is enabled. Reviewed-by: Mitko Haralanov <[email protected]> Reviewed-by: Dennis Dalessandro <[email protected]> Signed-off-by: Tymoteusz Kielan <[email protected]> Signed-off-by: Andrzej Kacprowski <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions