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)
commit4e28784024a0d87f6f04250e46e8c9ac4f30e361
treeab5cb3cb1768d5fafeb3021ad8ae1b6ae6d45017
parent79872e35469b6db1c5243abded7b24367bd0a353
powernv/iommu: disable IOMMU bypass with param iommu=nobypass

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