diff options
author | 2016-09-06 04:35:54 -0700 | |
---|---|---|
committer | 2016-10-02 08:42:07 -0400 | |
commit | 60368186fd853899c1819bcefa47f85fe8d5e5ad (patch) | |
tree | 991c21483223261f8c8a8e04498c1ecd235245ed /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | IB/hfi1: Fix the count of user packets submitted to an SDMA engine (diff) | |
download | wireguard-linux-60368186fd853899c1819bcefa47f85fe8d5e5ad.tar.xz wireguard-linux-60368186fd853899c1819bcefa47f85fe8d5e5ad.zip |
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 <mitko.haralanov@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Tymoteusz Kielan <tymoteusz.kielan@intel.com>
Signed-off-by: Andrzej Kacprowski <andrzej.kacprowski@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions