[PATCH 2/2] arm64/dma-mapping: validate dma_masks against IORT defined limits

Arnd Bergmann arnd at arndb.de
Wed Feb 1 07:34:27 PST 2017


On Wed, Feb 1, 2017 at 4:27 PM, Robin Murphy <robin.murphy at arm.com> wrote:

>
> Essentially, all that needs to be done is to ensure that the initial
> masks set by acpi_dma_configure() truly reflect the maximum hardware
> capability; everything else will then just fall out of that. The
> aforementioned thing on the DT side is that of_dma_configure() currently
> has a bug which prevents masks larger than 32 bits actually being
> assigned from "dma-ranges" - I need to split out a proper patch from the
> "git commit -am 'hacks'" that I have on this local branch :)

Do you mean you want to change the initial DMA mask to the maximum allowed
mask? I don't think we can do that, as that would break all devices that support
only 32-bit DMA but happen to sit on a bus that has 64-bit DMA support.

    Arnd



More information about the linux-arm-kernel mailing list