Re: [RFC PATCH 0/4] Stop losing firmware-set DMA masks

2018-07-11 Thread Robin Murphy
On 11/07/18 15:40, Rob Herring wrote: On Tue, Jul 10, 2018 at 12:43 PM Robin Murphy wrote: Whilst the common firmware code invoked by dma_configure() initialises devices' DMA masks according to limitations described by the respective properties ("dma-ranges" for OF and _DMA/IORT for ACPI), the

Re: [RFC PATCH 0/4] Stop losing firmware-set DMA masks

2018-07-11 Thread Rob Herring
On Tue, Jul 10, 2018 at 12:43 PM Robin Murphy wrote: > > Whilst the common firmware code invoked by dma_configure() initialises > devices' DMA masks according to limitations described by the respective > properties ("dma-ranges" for OF and _DMA/IORT for ACPI), the nature of > the dma_set_mask() AP

Re: [RFC PATCH 0/4] Stop losing firmware-set DMA masks

2018-07-10 Thread Atish Patra
On 7/10/18 11:01 AM, Christoph Hellwig wrote: These patches attempt to deal with this in the simplest way possible by generalising the specific quirk for 32-bit bridges into an arbitrary mask which can then also be plumbed into the firmware code. In the interest of being minimally invasive, I've

Re: [RFC PATCH 0/4] Stop losing firmware-set DMA masks

2018-07-10 Thread Robin Murphy
On 10/07/18 19:02, Christoph Hellwig wrote: These patches attempt to deal with this in the simplest way possible by generalising the specific quirk for 32-bit bridges into an arbitrary mask which can then also be plumbed into the firmware code. In the interest of being minimally invasive, I've on

Re: [RFC PATCH 0/4] Stop losing firmware-set DMA masks

2018-07-10 Thread Christoph Hellwig
> These patches attempt to deal with this in the simplest way possible by > generalising the specific quirk for 32-bit bridges into an arbitrary > mask which can then also be plumbed into the firmware code. In the > interest of being minimally invasive, I've only included a point fix > for the IOMM

[RFC PATCH 0/4] Stop losing firmware-set DMA masks

2018-07-10 Thread Robin Murphy
Whilst the common firmware code invoked by dma_configure() initialises devices' DMA masks according to limitations described by the respective properties ("dma-ranges" for OF and _DMA/IORT for ACPI), the nature of the dma_set_mask() API leads to that information getting lost when well-behaved drive