]> asedeno.scripts.mit.edu Git - linux.git/commit
SPARC64: Fix sun4v DMA panic
authorTushar Dave <tushar.n.dave@oracle.com>
Tue, 11 Jul 2017 21:34:47 +0000 (14:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jul 2017 15:13:04 +0000 (08:13 -0700)
commit2ad67141f1e47dc063b202993835361a06239aaa
tree72e0552f4322006d4474f46637e8ff55cee2b1f3
parent3b06b1a7448ee4e8e51dae3938774735404e51fb
SPARC64: Fix sun4v DMA panic

64bit DMA only supported on sun4v equipped with ATU IOMMU HW.
'Commit b02c2b0bfd7ae ("sparc: remove arch specific dma_supported
implementations")' introduced a code that incorrectly allow
dma_supported() to succeed for 64bit dma mask even if system doesn't
have ATU IOMMU. This results into panic.

Fix it.

Reported-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: Tushar Dave <tushar.n.dave@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/pci_sun4v.c