Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4278784imu; Sat, 19 Jan 2019 06:11:13 -0800 (PST) X-Google-Smtp-Source: ALg8bN62zIkzJNG27SfdJEgW+feV6BtWl6ibXeOecEUUkLPFyzremOUns9OWCxiTcx/WBQKFmgra X-Received: by 2002:a17:902:c5:: with SMTP id a63mr23415659pla.267.1547907073012; Sat, 19 Jan 2019 06:11:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547907072; cv=none; d=google.com; s=arc-20160816; b=E6yRwwVJqbvQh0LLJNNbtCvfPcBJw79HlH4d6QqpG+M+C9cCHbPpK+fMOj747GuDxI AajLUSvkW0njZb1UbhlAxwvX6ZvUiR+GiNoFLA/+7tTqJ7Nwzo2oB7Eq4mdFM8LPNCuS 2gtzllpK3J577Wu+uo5q8ns3XfuXGoAiBQklkV9G9livJlR8jgkxWT6rh67/S/I7HuUV TfotSM3POTAdZ0lz7mJ7i71AndWuoj1WOX+rAtlMTgHrudXnqGLyBkMFatGV/0ZnDzzR z2aA3VVMb+pbII4vVOSNgXZfgIvUXvONBlUzmcbE8eLEvX9FCAWDNVcKIITiTQQ+qmio wqQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bHp1q8ECBObrp3s9hxeCXMQnMhHcSGYjludrRLkffKg=; b=KfZXqq+bjCmedMu25eb+t87HCrlcjPZVGV32kmT1OZVkEJm/FKGP6B/BuHCXZEzh2Q 7CNOhUnBDe9fPI7plNOCGRTwKtQ1OwoR8O6Ila3FPsevaEy6i9VldbbvLftwvShBDoYO s9FjHPcgB35HPDGJrl9kRSQn9K8T/E6OdJtlTHKRCTGRv80BBxZOzqwFf1L3E7cT4ZuM ge2oQ3qrjMJXbCxzRm2Fuco/77VlgNOarHocap1/2ikKvejjIyleuZeJNjpP1EGUaKTj n4+bBTV1XY4D+kF39U+vELXx1DvAHw6h/z71qzpxsUQPb4d+jUcKiBYwo1UklGw6HPYS 93YA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si6365145pgc.354.2019.01.19.06.10.25; Sat, 19 Jan 2019 06:11:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728164AbfASOEy (ORCPT + 99 others); Sat, 19 Jan 2019 09:04:54 -0500 Received: from verein.lst.de ([213.95.11.211]:49272 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728125AbfASOEy (ORCPT ); Sat, 19 Jan 2019 09:04:54 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 8D51168D93; Sat, 19 Jan 2019 15:04:52 +0100 (CET) Date: Sat, 19 Jan 2019 15:04:52 +0100 From: Christoph Hellwig To: Christian Zigotzky Cc: Christoph Hellwig , 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 Subject: Re: use generic DMA mapping code in powerpc V4 Message-ID: <20190119140452.GA25198@lst.de> References: <871403f2-fa7d-de15-89eb-070432e15c69@xenosoft.de> <20190118112842.GA9115@lst.de> <20190118121810.GA13327@lst.de> <20190118125500.GA15657@lst.de> <20190119130222.GA24346@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190119130222.GA24346@lst.de> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?