Re: [PATCH] virtio: Try to untangle DMA coherency

2017-02-02 Thread Robin Murphy
On 02/02/17 11:26, Will Deacon wrote: > On Wed, Feb 01, 2017 at 09:19:22PM +0200, Michael S. Tsirkin wrote: >> On Wed, Feb 01, 2017 at 06:27:09PM +, Will Deacon wrote: >>> On Wed, Feb 01, 2017 at 08:09:21PM +0200, Michael S. Tsirkin wrote: I'd like to do that instead. It's fastboot doing

[PATCH] virtio: Try to untangle DMA coherency

2017-02-01 Thread Robin Murphy
citly call this out in the virtio-mmio DT binding in the hope of heading off any further workarounds for future firmware mishaps. Fixes: c7070619f340 ("vring: Force use of DMA API for ARM-based systems with legacy devices") Signed-off-by: Robin Murphy <robin.mur...@arm.com> ---

[PATCH v2 1/2] virtio_mmio: Set DMA masks appropriately

2017-01-10 Thread Robin Murphy
: b42111382f0e ("virtio_mmio: Use the DMA API if enabled") Signed-off-by: Robin Murphy <robin.mur...@arm.com> --- drivers/virtio/virtio_mmio.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/vi

[PATCH v2 2/2] vring: Force use of DMA API for ARM-based systems

2017-01-10 Thread Robin Murphy
From: Will Deacon Booting Linux on an ARM fastmodel containing an SMMU emulation results in an unexpected I/O page fault from the legacy virtio-blk PCI device: [1.211721] arm-smmu-v3 2b40.smmu: event 0x10 received: [1.211800] arm-smmu-v3 2b40.smmu:

Re: [PATCH] virtio_mmio: Set DMA masks appropriately

2017-01-10 Thread Robin Murphy
On 10/01/17 14:54, Michael S. Tsirkin wrote: > On Tue, Jan 10, 2017 at 12:26:01PM +0000, Robin Murphy wrote: >> Once DMA API usage is enabled, it becomes apparent that virtio-mmio is >> inadvertently relying on the default 32-bit DMA mask, which leads to >> problems like rapid

Re: [PATCH] virtio_mmio: Set DMA masks appropriately

2017-01-10 Thread Robin Murphy
On 10/01/17 13:15, Arnd Bergmann wrote: > On Tuesday, January 10, 2017 12:26:01 PM CET Robin Murphy wrote: >> @@ -548,6 +550,14 @@ static int virtio_mmio_probe(struct platform_device >> *pdev) >> if (vm_dev->version == 1) >>

[PATCH] virtio_mmio: Set DMA masks appropriately

2017-01-10 Thread Robin Murphy
suitably limited for the legacy vring as per a0be1db4304f ("virtio_pci: Limit DMA mask to 44 bits for legacy virtio devices"). Reported-by: Jean-Philippe Brucker <jean-philippe.bruc...@arm.com> Fixes: b42111382f0e ("virtio_mmio: Use the DMA API if enabled") Signed-off-b

Re: [RFC PATCH] vring: Force use of DMA API for ARM-based systems

2017-01-10 Thread Robin Murphy
On 06/01/17 21:51, Andy Lutomirski wrote: > On Fri, Jan 6, 2017 at 10:32 AM, Robin Murphy <robin.mur...@arm.com> wrote: >> On 06/01/17 17:48, Jean-Philippe Brucker wrote: >>> Hi Will, >>> >>> On 20/12/16 15:14, Will Deacon wrote: >>>> Booting

Re: [RFC PATCH] vring: Force use of DMA API for ARM-based systems

2017-01-06 Thread Robin Murphy
On 06/01/17 17:48, Jean-Philippe Brucker wrote: > Hi Will, > > On 20/12/16 15:14, Will Deacon wrote: >> Booting Linux on an ARM fastmodel containing an SMMU emulation results >> in an unexpected I/O page fault from the legacy virtio-blk PCI device: >> >> [1.211721] arm-smmu-v3 2b40.smmu:

<    1   2