powernv/iommu: disable IOMMU bypass with param iommu=nobypass
authorThadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Thu, 23 Oct 2014 21:19:35 +0000 (19:19 -0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 23 Jan 2015 03:02:46 +0000 (14:02 +1100)
When IOMMU bypass is enabled, a PCI device can read and write memory
that was not mapped by the driver without causing an EEH. That might
cause memory corruption, for example.

When we disable bypass, DMA reads and writes to addresses not mapped by
the IOMMU will cause an EEH, allowing us to debug such issues.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Documentation/kernel-parameters.txt
arch/powerpc/platforms/powernv/pci-ioda.c

Simple merge