| To: | linux-mips@linux-mips.org, ralf@linux-mips.org |
|---|---|
| Subject: | [PATCH 2/8] MIPS: Allow MAX_DMA32_PFN to be overridden. |
| From: | David Daney <ddaney@caviumnetworks.com> |
| Date: | Fri, 1 Oct 2010 13:27:28 -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 |
DMA mapping may reduce the usable physical address range usable for 32-bit DMA. Signed-off-by: David Daney <ddaney@caviumnetworks.com> --- arch/mips/include/asm/dma.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/mips/include/asm/dma.h b/arch/mips/include/asm/dma.h index 1353c81..2d47da6 100644 --- a/arch/mips/include/asm/dma.h +++ b/arch/mips/include/asm/dma.h @@ -91,7 +91,10 @@ #define MAX_DMA_ADDRESS (PAGE_OFFSET + 0x01000000) #endif #define MAX_DMA_PFN PFN_DOWN(virt_to_phys((void *)MAX_DMA_ADDRESS)) + +#ifndef MAX_DMA32_PFN #define MAX_DMA32_PFN (1UL << (32 - PAGE_SHIFT)) +#endif /* 8237 DMA controllers */ #define IO_DMA1_BASE 0x00 /* 8 bit slave DMA, channels 0..3 */ -- 1.7.2.2 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 1/8] MIPS: Octeon: Set dma_masks for octeon_mgmt device., David Daney |
|---|---|
| Next by Date: | [PATCH 3/8] MIPS: Octeon: Adjust top of DMA32 zone., David Daney |
| Previous by Thread: | Re: [PATCH 1/8] MIPS: Octeon: Set dma_masks for octeon_mgmt device., Ralf Baechle |
| Next by Thread: | Re: [PATCH 2/8] MIPS: Allow MAX_DMA32_PFN to be overridden., Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |