Christoph Hellwig 2a29e9f6b9 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: 24132a419c68 ("sparc64/pci_sun4v: allow large DMA masks")
Reported-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Meelis Roos <mroos@linux.ee>
Acked-by: David S. Miller <davem@davemloft.net>
2019-04-10 21:42:04 +02:00
..
2017-06-01 09:42:46 -07:00
2016-08-07 23:55:43 -04:00
2018-01-22 08:17:15 -08:00
2018-01-22 08:17:15 -08:00
2019-02-20 07:28:58 -07:00
2019-02-20 07:28:53 -07:00
2018-05-09 06:54:27 +02:00
2018-10-31 08:54:16 -07:00
2018-06-12 16:19:22 -07:00
2019-02-20 07:28:53 -07:00
2015-03-19 18:54:49 -07:00
2013-06-13 22:12:14 +01:00
2017-11-15 14:21:03 +09:00
2018-10-07 22:42:00 -07:00