Re: [sparc-next] SPARC64: Fix sun4v DMA panic

From: David Miller
Date: Wed Jul 12 2017 - 11:13:30 EST


From: Tushar Dave <tushar.n.dave@xxxxxxxxxx>
Date: Tue, 11 Jul 2017 14:34:47 -0700

> 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@xxxxxxxx>
> Signed-off-by: Tushar Dave <tushar.n.dave@xxxxxxxxxx>

Applied to the 'sparc' tree, thanks.