diff options
author | 2016-07-20 14:26:51 +1000 | |
---|---|---|
committer | 2016-07-21 20:21:06 +1000 | |
commit | 802a345183c0308aa64969cca62c23961bf86a44 (patch) | |
tree | 53c3c1eee60c1bc9cefea09a1587c121576dabb6 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | powerpc/mm: Add memory barrier in __hugepte_alloc() (diff) | |
download | linux-dev-802a345183c0308aa64969cca62c23961bf86a44.tar.xz linux-dev-802a345183c0308aa64969cca62c23961bf86a44.zip |
powerpc/powernv/ioda: Fix endianness when reading TCEs
The iommu_table_ops::exchange() callback writes new TCE to the table and
returns old value and permission mask. The old TCE value is correctly
converted from BE to CPU endian; however permission mask was calculated
from BE value and therefore always returned DMA_NONE which could cause
memory leak on LE systems using VFIO SPAPR TCE IOMMU v1 driver.
This fixes pnv_tce_xchg() to have @oldtce a CPU endian.
Fixes: 05c6cfb9dce0 ("powerpc/iommu/powernv: Release replaced TCE")
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions