[PATCH 06/32] arm64: Fix physical to DMA mappings.
Catalin Marinas
catalin.marinas at arm.com
Thu Jun 2 10:20:06 PDT 2016
On Wed, Jun 01, 2016 at 11:43:15PM +0200, Gerd Hoffmann wrote:
> From: mzoran <mzoran at crowfest.net>
>
> 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 at 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.
> 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
More information about the linux-arm-kernel
mailing list