mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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: David Daney <[email protected]> Patchwork: http://patchwork.linux-mips.org/patch/1634/ Signed-off-by: Ralf Baechle <[email protected]>
This commit is contained in:
parent
cfd570990f
commit
57575b5c81
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue