linux-parisc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] parisc: remove 32-bit DMA enforcement from sba_iommu
@ 2019-09-24 15:01 Sven Schnelle
  2019-09-26  7:58 ` Sven Schnelle
  0 siblings, 1 reply; 2+ messages in thread
From: Sven Schnelle @ 2019-09-24 15:01 UTC (permalink / raw)
  To: Helge Deller; +Cc: linux-parisc, Sven Schnelle

This breaks booting from sata_sil24 with the recent DMA
change. According to James Bottomley this was in to improve
performance. Remove it for now to make DMA working again.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
---
 drivers/parisc/sba_iommu.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/parisc/sba_iommu.c b/drivers/parisc/sba_iommu.c
index 296668caf7e5..6ac9500f2752 100644
--- a/drivers/parisc/sba_iommu.c
+++ b/drivers/parisc/sba_iommu.c
@@ -678,14 +678,6 @@ static int sba_dma_supported( struct device *dev, u64 mask)
 		return(0);
 	}
 
-	/* Documentation/DMA-API-HOWTO.txt tells drivers to try 64-bit
-	 * first, then fall back to 32-bit if that fails.
-	 * We are just "encouraging" 32-bit DMA masks here since we can
-	 * never allow IOMMU bypass unless we add special support for ZX1.
-	 */
-	if (mask > ~0U)
-		return 0;
-
 	ioc = GET_IOC(dev);
 	if (!ioc)
 		return 0;
-- 
2.23.0.rc1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-26  7:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-24 15:01 [PATCH] parisc: remove 32-bit DMA enforcement from sba_iommu Sven Schnelle
2019-09-26  7:58 ` Sven Schnelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).