Re: [PATCH] spi: spi-fsl-dspi: fix DMA mapping

2020-03-10 Thread Michael Walle
Am 2020-03-10 14:02, schrieb Vladimir Oltean: On Tue, 10 Mar 2020 at 10:12, Michael Walle wrote: Am 2020-03-10 08:40, schrieb Michael Walle: > Am 2020-03-10 08:33, schrieb Michael Walle: >> Use the correct device to request the DMA mapping. Otherwise the IOMMU >> doesn't get the mapping and it

Re: [PATCH] spi: spi-fsl-dspi: fix DMA mapping

2020-03-10 Thread Vladimir Oltean
On Tue, 10 Mar 2020 at 10:12, Michael Walle wrote: > > Am 2020-03-10 08:40, schrieb Michael Walle: > > Am 2020-03-10 08:33, schrieb Michael Walle: > >> Use the correct device to request the DMA mapping. Otherwise the IOMMU > >> doesn't get the mapping and it will generate a page fault. > >> > >> T

Re: [PATCH] spi: spi-fsl-dspi: fix DMA mapping

2020-03-10 Thread Vladimir Oltean
On Tue, 10 Mar 2020 at 19:14, Mark Brown wrote: > > On Tue, Mar 10, 2020 at 03:12:45PM +0100, Michael Walle wrote: > > Am 2020-03-10 14:02, schrieb Vladimir Oltean: > > > > I'm testing LS1028A with IOMMU_DEFAULT_PASSTHROUGH=y and I didn't have > > > time to change my setup now. I've also sent a v3

Re: [PATCH] spi: spi-fsl-dspi: fix DMA mapping

2020-03-10 Thread Mark Brown
On Tue, Mar 10, 2020 at 03:12:45PM +0100, Michael Walle wrote: > Am 2020-03-10 14:02, schrieb Vladimir Oltean: > > I'm testing LS1028A with IOMMU_DEFAULT_PASSTHROUGH=y and I didn't have > > time to change my setup now. I've also sent a v3 to my patch series > > which is going to conflict with this

Re: [PATCH] spi: spi-fsl-dspi: fix DMA mapping

2020-03-10 Thread Michael Walle
Am 2020-03-10 08:33, schrieb Michael Walle: Use the correct device to request the DMA mapping. Otherwise the IOMMU doesn't get the mapping and it will generate a page fault. The error messages look like: [3.008452] arm-smmu 500.iommu: Unhandled context fault: fsr=0x402, iova=0xf980,

Re: [PATCH] spi: spi-fsl-dspi: fix DMA mapping

2020-03-10 Thread Michael Walle
Am 2020-03-10 08:40, schrieb Michael Walle: Am 2020-03-10 08:33, schrieb Michael Walle: Use the correct device to request the DMA mapping. Otherwise the IOMMU doesn't get the mapping and it will generate a page fault. The error messages look like: [3.008452] arm-smmu 500.iommu: Unhandle