Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57575b5c authored by David Daney's avatar David Daney Committed by Ralf Baechle
Browse files

MIPS: Octeon: Adjust top of DMA32 zone.



On OCTEON, we reserve the last 256MB of 32-bit PCI address space, mapping
the RAM in this region at a high DMA address.  This makes memory in this
region unavailable for 32-bit DMA.

Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Patchwork: http://patchwork.linux-mips.org/patch/1634/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent cfd57099
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -81,4 +81,10 @@ static inline int octeon_has_saa(void)
	return id >= 0x000d0300;
}

/*
 * The last 256MB are reserved for device to device mappings and the
 * BAR1 hole.
 */
#define MAX_DMA32_PFN (((1ULL << 32) - (1ULL << 28)) >> PAGE_SHIFT)

#endif