Re: [PATCH resend] powernv/iommu: disable IOMMU bypass with param iommu=nobypass

2015-01-22 Thread Michael Ellerman
On Wed, 2015-01-21 at 13:23 -0200, Thadeu Lima de Souza Cascardo wrote: > diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c > b/arch/powerpc/platforms/powernv/pci-ioda.c > index fac88ed..f942a19 100644 > --- a/arch/powerpc/platforms/powernv/pci-ioda.c > +++ b/arch/powerpc/platforms/powernv/pc

Re: [PATCH resend] powernv/iommu: disable IOMMU bypass with param iommu=nobypass

2015-01-22 Thread cascardo
On Thu, Jan 22, 2015 at 12:05:31PM +1100, Michael Ellerman wrote: > On Wed, 2015-01-21 at 13:23 -0200, Thadeu Lima de Souza Cascardo wrote: > > 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 mem

Re: [PATCH resend] powernv/iommu: disable IOMMU bypass with param iommu=nobypass

2015-01-21 Thread Michael Ellerman
On Wed, 2015-01-21 at 13:23 -0200, Thadeu Lima de Souza Cascardo wrote: > 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 wr

[PATCH resend] powernv/iommu: disable IOMMU bypass with param iommu=nobypass

2015-01-21 Thread Thadeu Lima de Souza Cascardo
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