[PATCH kernel v11 13/34] powerpc/powernv: Do not set "read" flag if direction==DMA_NONE

2015-05-29 Thread Alexey Kardashevskiy
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

[PATCH kernel v11 13/34] powerpc/powernv: Do not set read flag if direction==DMA_NONE

2015-05-29 Thread Alexey Kardashevskiy
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