MIPS: Octeon: Put restrictions on DMA descriptors.
authorSteven J. Hill <steven.hill@cavium.com>
Tue, 26 Jul 2016 15:26:23 +0000 (10:26 -0500)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 28 Jul 2016 10:01:34 +0000 (12:01 +0200)
Set the DMA mask such that all descriptors stay in the
lower 4GB of memory.

Signed-off-by: Steven J. Hill <steven.hill@cavium.com>
Acked-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13830/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/octeon-platform.c

index 7aeafedff94edce4bd38017eb31e8432abe233fb..c9359fdae44b36c97cc626b49bbf5415f3ae675b 100644 (file)
@@ -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,
 };