| To: | linux-mips@linux-mips.org, ralf@linux-mips.org |
|---|---|
| Subject: | [PATCH 3/8] MIPS: Octeon: Adjust top of DMA32 zone. |
| From: | David Daney <ddaney@caviumnetworks.com> |
| Date: | Fri, 1 Oct 2010 13:27:29 -0700 |
| Cc: | David Daney <ddaney@caviumnetworks.com> |
| In-reply-to: | <1285964854-28659-1-git-send-email-ddaney@caviumnetworks.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1285964854-28659-1-git-send-email-ddaney@caviumnetworks.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
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 <ddaney@caviumnetworks.com>
---
.../asm/mach-cavium-octeon/cpu-feature-overrides.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/mips/include/asm/mach-cavium-octeon/cpu-feature-overrides.h
b/arch/mips/include/asm/mach-cavium-octeon/cpu-feature-overrides.h
index b952fc7..c84ed74 100644
--- a/arch/mips/include/asm/mach-cavium-octeon/cpu-feature-overrides.h
+++ b/arch/mips/include/asm/mach-cavium-octeon/cpu-feature-overrides.h
@@ -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
--
1.7.2.2
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2/8] MIPS: Allow MAX_DMA32_PFN to be overridden., David Daney |
|---|---|
| Next by Date: | [PATCH 4/8] MIPS: Octeon: Select ZONE_DMA32, David Daney |
| Previous by Thread: | Re: [PATCH 2/8] MIPS: Allow MAX_DMA32_PFN to be overridden., Ralf Baechle |
| Next by Thread: | Re: [PATCH 3/8] MIPS: Octeon: Adjust top of DMA32 zone., Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |