From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id DB6911A1043 for ; Wed, 9 Dec 2015 10:39:11 +1100 (AEDT) Message-ID: <1449617926.21036.42.camel@kernel.crashing.org> Subject: Re: [P.A. Semi] Does the ethernet interface work on your Electra, Chitra, Nemo, and Athena board? From: Benjamin Herrenschmidt To: Christian Zigotzky , Michael Ellerman , Gabriel Paubert , netdev@vger.kernel.org, Denis Kirjanov , linuxppc-dev@lists.ozlabs.org Date: Wed, 09 Dec 2015 10:38:46 +1100 In-Reply-To: <566593B8.3070904@xenosoft.de> References: <565AF986.9060106@xenosoft.de> <565C1B55.4020207@xenosoft.de> <565C8287.7090209@xenosoft.de> <20151130181217.GA15921@visitor2.iram.es> <565DB2FE.1010706@xenosoft.de> <565E7A9E.4000909@xenosoft.de> <1449044072.24750.3.camel@ellerman.id.au> <565F5E7C.9040207@xenosoft.de> <56603787.3000802@xenosoft.de> <566576E8.2060300@xenosoft.de> <566593B8.3070904@xenosoft.de> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2015-12-07 at 15:12 +0100, Christian Zigotzky wrote: > Hi all, > > I have some good news for you. I was able to fix the issue with the > P.A. > Semi Ethernet. It was a problem with the new DMA handling. The patch > ' > [RFC/PATCH,v2] powerpc/iommu: Support "hybrid" iommu/direct DMA ops > for > coherent_mask < dma_mask (https://patchwork.ozlabs.org/patch/472535/) > ' > is the problem. Send me your .config and the full dmesg output. I can't seem to reproduce here. Cheers, Ben. > I had patched the following files before I compiled a kernel. > > arch/powerpc/Kconfig > arch/powerpc/include/asm/device.h > arch/powerpc/include/asm/dma-mapping.h > arch/powerpc/include/asm/iommu.h > arch/powerpc/kernel/dma-iommu.c > arch/powerpc/kernel/dma-swiotlb.c > arch/powerpc/kernel/dma.c > arch/powerpc/platforms/powernv/pci-ioda.c > arch/powerpc/platforms/pseries/iommu.c > arch/powerpc/sysdev/dart_iommu.c > include/asm-generic/dma-mapping-common.h > > The P.A. Semi Ethernet works again with the patched kernel. > > I am happy. :-) > > Please fix the issue in the kernel source code. > > Thanks in advance, > > Christian > > > _______________________________________________ > Linuxppc-dev mailing list > Linuxppc-dev@lists.ozlabs.org > https://lists.ozlabs.org/listinfo/linuxppc-dev