Thread (2 messages) 2 messages, 2 authors, 2016-06-02

[PATCH 06/32] arm64: Fix physical to DMA mappings.

flat view

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2016-06-02 17:20:12
Also in: lkml

On Wed, Jun 01, 2016 at 11:43:15PM +0200, Gerd Hoffmann wrote:
From: mzoran <redacted>

Gets USB and networking to work on Raspberry Pi 3 in 64 bit.

created by mzoran at crowfest.net

[ kraxel: some cleanups ]

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 arch/arm64/include/asm/dma-mapping.h | 73 ++++++++++++++++++++++++++++++++++--
 arch/arm64/include/asm/memory.h      |  8 ++++
We had a similar patch already here:

http://article.gmane.org/gmane.linux.ports.arm.kernel/500565

Maybe you need some alignment with other contributing RPi3 patches.
quoted hunk ↗ jump to hunk
diff --git a/arch/arm64/include/asm/memory.h b/arch/arm64/include/asm/memory.h
index 72a3025..ab4c65e 100644
--- a/arch/arm64/include/asm/memory.h
+++ b/arch/arm64/include/asm/memory.h
@@ -226,6 +226,14 @@ static inline void *phys_to_virt(phys_addr_t x)
 #endif
 #endif
 
+#ifndef __virt_to_bus
+#define __virt_to_bus	__virt_to_phys
+#define __bus_to_virt	__phys_to_virt
+#define __pfn_to_bus(x)	__pfn_to_phys(x)
+#define __bus_to_pfn(x)	__phys_to_pfn(x)
+#endif
Do you really need these macros? What's with the #ifndef, anything going
to override them?

-- 
Catalin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help