Re: use generic DMA mapping code in powerpc V4

From: Christian Zigotzky
Date: Thu Dec 13 2018 - 12:48:47 EST


On 13 December 2018 at 2:34PM, Christian Zigotzky wrote:
On 13 December 2018 at 12:25PM, Christoph Hellwig wrote:
On Thu, Dec 13, 2018 at 12:19:26PM +0100, Christian Zigotzky wrote:
I tried it again but I get the following error message:

MODPOST vmlinux.o
arch/powerpc/kernel/dma-iommu.o: In function `.dma_iommu_get_required_mask':
(.text+0x274): undefined reference to `.dma_direct_get_required_mask'
make: *** [vmlinux] Error 1
Sorry, you need this one liner before all the patches posted last time:

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index d8819e3a1eb1..7e78c2798f2f 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -154,6 +154,7 @@ config PPC
ÂÂÂÂÂ select CLONE_BACKWARDS
ÂÂÂÂÂ select DCACHE_WORD_ACCESSÂÂÂÂÂÂÂ if PPC64 && CPU_LITTLE_ENDIAN
ÂÂÂÂÂ select DYNAMIC_FTRACEÂÂÂÂÂÂÂÂÂÂÂ if FUNCTION_TRACER
+ÂÂÂ select DMA_DIRECT_OPS
ÂÂÂÂÂ select EDAC_ATOMIC_SCRUB
ÂÂÂÂÂ select EDAC_SUPPORT
ÂÂÂÂÂ select GENERIC_ATOMIC64ÂÂÂÂÂÂÂÂÂÂÂ if PPC32

Thanks. Result: PASEMI onboard ethernet works and the X5000 (P5020 board) boots with the patch '0001-get_required_mask.patch'.

-- Christian


Next patch: '0002-swiotlb-dma_supported.patch' for the last good commit (977706f9755d2d697aa6f45b4f9f0e07516efeda).

The PASEMI onboard ethernet works and the X5000 (P5020 board) boots.

-- Christian