Skip to contentSkip to conversation

MIPS: Octeon: Put restrictions on DMA descriptors.

PATCH New Steven J. Hill 1 participant 1 message Jul 26, 2016 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Octeon: Put restrictions on DMA descriptors.

Set the DMA mask such that all descriptors stay in the lower 4GB of memory.

---
 arch/mips/cavium-octeon/octeon-platform.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
arch/mips/cavium-octeon/octeon-platform.c +5 -1
index 7aeafed..c9359fd 100644
@@ -311,7 +311,11 @@ static struct usb_ehci_pdata octeon_ehci_pdata = {
 #ifdef __BIG_ENDIAN
 	.big_endian_mmio	= 1,
 #endif
-	.dma_mask_64	= 1,
+	/*
+	 * We can DMA from anywhere. But the descriptors must be in
+	 * the lower 4GB.
+	 */
+	.dma_mask_64	= 0,
 	.power_on	= octeon_ehci_power_on,
 	.power_off	= octeon_ehci_power_off,
 };
Signature · 1 line
1.9.1