From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by kanga.kvack.org (Postfix) with ESMTP id 60F918E0001 for ; Mon, 21 Jan 2019 09:38:48 -0500 (EST) Received: by mail-wr1-f71.google.com with SMTP id h11so11109618wrs.2 for ; Mon, 21 Jan 2019 06:38:48 -0800 (PST) Received: from mo6-p01-ob.smtp.rzone.de (mo6-p01-ob.smtp.rzone.de. [2a01:238:20a:202:5301::1]) by mx.google.com with ESMTPS id m185si32766572wmd.125.2019.01.21.06.38.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Jan 2019 06:38:45 -0800 (PST) Subject: Re: use generic DMA mapping code in powerpc V4 References: <871403f2-fa7d-de15-89eb-070432e15c69@xenosoft.de> <20190118112842.GA9115@lst.de> <20190118121810.GA13327@lst.de> <20190118125500.GA15657@lst.de> <20190119130222.GA24346@lst.de> <20190119140452.GA25198@lst.de> From: Christian Zigotzky Message-ID: Date: Mon, 21 Jan 2019 15:38:38 +0100 MIME-Version: 1.0 In-Reply-To: <20190119140452.GA25198@lst.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: de-DE Sender: owner-linux-mm@kvack.org List-ID: To: Christoph Hellwig Cc: linux-arch@vger.kernel.org, Darren Stevens , linux-kernel@vger.kernel.org, Julian Margetson , linux-mm@kvack.org, iommu@lists.linux-foundation.org, Paul Mackerras , Olof Johansson , linuxppc-dev@lists.ozlabs.org Hello Christoph, Thanks for your reply. I successfully compiled a kernel (uImage) for the X5000 from your Git 'powerpc-dma.6-debug' (both patches) today. It detects the SATA hard disk drive and boots without any problems. I will test the first patch in next days. Thanks for your help, Christian On 19 January 2019 at 3:04PM, Christoph Hellwig wrote: > On Sat, Jan 19, 2019 at 02:02:22PM +0100, Christoph Hellwig wrote: >> Interesting. This suggest it is related to the use of ZONE_DMA by >> the FSL SOCs that your board uses. Let me investigate this a bit more. > As a hack to check that theory I've pushed a new commit to the > powerpc-dma.6-debug branch to use old powerpc GFP_DMA selection > with the new dma direct code: > > http://git.infradead.org/users/hch/misc.git/commitdiff/5c532d07c2f3c3972104de505d06b8d85f403f06 > > And another one that drops the addressability checks that powerpc > never had: > > http://git.infradead.org/users/hch/misc.git/commitdiff/18e7629b38465ca98f8e7eed639123a13ac3b669 > > Can you first test with both patches, and then just with the first > in case that worked? > >