]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sparc64/pci_sun4v: allow large DMA masks
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Feb 2019 08:30:28 +0000 (09:30 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 20 Feb 2019 14:29:10 +0000 (07:29 -0700)
commit24132a419c68f1d69eb8ecc91b3c80d730ecbb59
treee9bf0b2d4290cedc1884cfed177ed0587bd843a8
parent254ecb1601ebbdf0eeda4156f4c55254cb9addaf
sparc64/pci_sun4v: allow large DMA masks

We've been moving to a model where the device just sets the DMA mask
supported by it, instead of having to fallback to something it thinks
the platform might support.  Sparc64 is the remaining holdout forcing
drivers to supply a matching mask.  Change dma_4v_supported to just
check if the supplied dma mask is large enough. and adjust the mapping
code to check ATU presence in addition to the DMA mask to decide on
the mapping method.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/pci_sun4v.c