diff options
| author | Alexey Kardashevskiy <[email protected]> | 2015-06-05 06:35:05 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2015-06-11 05:14:56 +0000 |
| commit | 10b35b2b7485c342334a48cf199063eed8b8748e (patch) | |
| tree | c609824799ab76a33d1dad1c6a9a254cb8baad99 /arch/powerpc/sysdev/dart_iommu.c | |
| parent | vfio: powerpc/spapr: Rework groups attaching (diff) | |
| download | kernel-10b35b2b7485c342334a48cf199063eed8b8748e.tar.gz kernel-10b35b2b7485c342334a48cf199063eed8b8748e.zip | |
powerpc/powernv: Do not set "read" flag if direction==DMA_NONE
Normally a bitmap from the iommu_table is used to track what TCE entry
is in use. Since we are going to use iommu_table without its locks and
do xchg() instead, it becomes essential not to put bits which are not
implied in the direction flag as the old TCE value (more precisely -
the permission bits) will be used to decide whether to put the page or not.
This adds iommu_direction_to_tce_perm() (its counterpart is there already)
and uses it for powernv's pnv_tce_build().
Signed-off-by: Alexey Kardashevskiy <[email protected]>
Reviewed-by: David Gibson <[email protected]>
Reviewed-by: Gavin Shan <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'arch/powerpc/sysdev/dart_iommu.c')
0 files changed, 0 insertions, 0 deletions
