| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH] [MIPS]: fix CAC_ADDR/UNCAC_ADDR |
| From: | peter fuerst <post@pfrst.de> |
| Date: | Thu, 7 Feb 2008 13:41:29 +0100 (CET) |
| Cc: | linux-mips@linux-mips.org |
| In-reply-to: | <Pine.LNX.4.64.0801222042100.5722@fbirervta.pbzchgretzou.qr> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <54038cd4f87a03884e4f59f8f3697889dfb63c54.1201030614.git.jengelh@computergmbh.de> <Pine.LNX.4.64.0801222042100.5722@fbirervta.pbzchgretzou.qr> |
| Reply-to: | post@pfrst.de |
| Sender: | linux-mips-bounce@linux-mips.org |
With commit db38501511a7513ec4f0ae9922d847c135cf3c78 PAGE_OFFSET was
redefined as CAC_BASE+PHYS_OFFSET, but [UN]CAC_ADDR - which are used
in dma_alloc_coherent() and dma_free_coherent() respectively, and in
drivers/video/au1100fb.c - were not adjusted accordingly.
with kind regards
Signed-off-by: peter fuerst <post@pfrst.de>
--- a/linux-2.6.24/include/asm-mips/page.h Fri Jan 25 12:23:51 2008
+++ b/linux-2.6.24/include/asm-mips/page.h Wed Feb 6 23:26:31 2008
@@ -184,8 +184,8 @@
#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
-#define UNCAC_ADDR(addr) ((addr) - PAGE_OFFSET + UNCAC_BASE)
-#define CAC_ADDR(addr) ((addr) - UNCAC_BASE + PAGE_OFFSET)
+#define UNCAC_ADDR(addr) ((addr) - PAGE_OFFSET + PHYS_OFFSET +
UNCAC_BASE)
+#define CAC_ADDR(addr) ((addr) - UNCAC_BASE + PAGE_OFFSET -
PHYS_OFFSET)
#include <asm-generic/memory_model.h>
#include <asm-generic/page.h>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Tester with IP27/IP30 needed, Kumba |
|---|---|
| Next by Date: | [PATCH][2/5][MIPS] remove lasat unused definitions, Yoichi Yuasa |
| Previous by Thread: | [PATCH] [MIPS] Add platform MTD support for the WGT634U machine, Aurelien Jarno |
| Next by Thread: | [PATCH][1/5][MIPS] remove lasat unused struct, Yoichi Yuasa |
| Indexes: | [Date] [Thread] [Top] [All Lists] |