Skip to content
Commit 2a29e9f6 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

sparc64/pci_sun4v: fix ATU checks for large DMA masks



Now that we allow drivers to always need to set larger than required
DMA masks we need to be a little more careful in the sun4v PCI iommu
driver to chose when to select the ATU support - a larger DMA mask
can be set even when the platform does not support ATU, so we always
have to check if it is avaiable before using it.  Add a little helper
for that and use it in all the places where we make ATU usage decisions
based on the DMA mask.

Fixes: 24132a41 ("sparc64/pci_sun4v: allow large DMA masks")
Reported-by: default avatarMeelis Roos <mroos@linux.ee>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarMeelis Roos <mroos@linux.ee>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 15ade5d2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment