[kernel, v2] powerpc/ioda: Set "read" permission when "write" is set

Michael Ellerman mpe at ellerman.id.au
Fri Feb 19 23:13:28 AEDT 2016


On Wed, 2016-17-02 at 07:26:31 UTC, Alexey Kardashevskiy wrote:
> Quite often drivers set only "write" permission assuming that this
> includes "read" permission as well and this works on plenty platforms.
> However IODA2 is strict about this and produces an EEH when "read"
> permission is not and reading happens.
> 
> This adds a workaround in IODA code to always add the "read" bit when
> the "write" bit is set.
> 
> This fixes breakage introduced in
> 10b35b2b74 powerpc/powernv: Do not set "read" flag if direction==DMA_NONE
> 
> Cc: stable at vger.kernel.org # 4.2+
> Cc: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> Signed-off-by: Alexey Kardashevskiy <aik at ozlabs.ru>
> Tested-by: Douglas Miller <dougmill at linux.vnet.ibm.com>

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/6ecad912a0073c768db1491c27

cheers


More information about the Linuxppc-dev mailing list