Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4967161imu; Tue, 15 Jan 2019 08:56:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN5BuGa7/+jzvIriFxfMflyZ5JQ4US37ZFE72M9JxPPKiIAS4aq9B0y4P+LLQSjRhgv3Vj7K X-Received: by 2002:a63:f515:: with SMTP id w21mr4577889pgh.220.1547571363316; Tue, 15 Jan 2019 08:56:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547571363; cv=none; d=google.com; s=arc-20160816; b=V63i7ythJEdRr+1k4oWDbq+Rw9C5dIuwwzlbdYsyCLUA3yIN4bWyXFqJjzGudnSXgH MZ4WZvCeQINE/nL7dZHnSKeIA/ikUSbANrKmT9ikFvHaJIquVK95ZKmmzyox1NZv9fMl aWn8ahbo3GelZiB7oEZp2puNEuFHeeVmYi1mANGvdW8h1P9/n5NXfaHZ9teVnLHVtz+F kc2N2U9rjCic0qG7qjD0XfCETigbtusOnM8rn16ollxxjPztc+IT+LzOCJ0nZqdfvjQR l8edf8zc8B81pjihhABrzWHZ6SmJBiTWhplEzcHRdz8qQvXuGjNfNYjfTxiMQh2ewobE f0iA== 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=7Hb2bOiVhKF4LXuz7vpQKBuminGd502VE0luzTXA9lM=; b=0B5TBtZfjL2lQ4h27q3vUdRxNhgwV5vDbkVvRJoT0wmJqbf1VcLYjBgpohBjHOi49P OcBpeIEazE6T/yjzmOXWKzL8OrLChMFH5M7zL9Bf8hww6xcLsbbNFWToW5leb+7okBF7 HgyirMXR0so/x8jAp0Cle+BAkdWIhcPGkRzR6oBblvLAMeJbcGmDpX9gwu6SPcrcyAGM JoyYlHiqDl5kfD70PfYIe+gRyUBIxe89RcfIZXj/6WKqz6IsXy6Yn5M87V1jrpjJvIQ5 ftfNXaKfCV4eFH2nKY46tICLgDSawUzd6YlRefCru3QGsUOqGG78HZnxfQ/wTVVK9Tct 70Og== 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 3si3841023plo.102.2019.01.15.08.55.45; Tue, 15 Jan 2019 08:56:03 -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 S1730721AbfAOPRe (ORCPT + 99 others); Tue, 15 Jan 2019 10:17:34 -0500 Received: from verein.lst.de ([213.95.11.211]:53633 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726077AbfAOPRe (ORCPT ); Tue, 15 Jan 2019 10:17:34 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id F03CA67358; Tue, 15 Jan 2019 16:17:32 +0100 (CET) Date: Tue, 15 Jan 2019 16:17:32 +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: <20190115151732.GA2325@lst.de> References: <71A251A5-FA06-4019-B324-7AED32F7B714@xenosoft.de> <1b0c5c21-2761-d3a3-651b-3687bb6ae694@xenosoft.de> <3504ee70-02de-049e-6402-2d530bf55a84@xenosoft.de> <23284859-bf0a-9cd5-a480-2a7fd7802056@xenosoft.de> <075f70e3-7a4a-732f-b501-05a1a8e3c853@xenosoft.de> <21f72a6a-9095-7034-f169-95e876228b2a@xenosoft.de> <27148ac2-2a92-5536-d886-2c0971ab43d9@xenosoft.de> <20190115133558.GA29225@lst.de> <685f0c06-af1b-0bec-ac03-f9bf1f7a2b35@xenosoft.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <685f0c06-af1b-0bec-ac03-f9bf1f7a2b35@xenosoft.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 Tue, Jan 15, 2019 at 02:56:34PM +0100, Christian Zigotzky wrote: > On 15 January 2019 at 2:35PM, Christoph Hellwig wrote: >> On Tue, Jan 15, 2019 at 11:55:25AM +0100, Christian Zigotzky wrote: >>> Next step: 21074ef03c0816ae158721a78cabe9035938dddd (powerpc/dma: use the >>> generic direct mapping bypass) >>> >>> git clone git://git.infradead.org/users/hch/misc.git -b powerpc-dma.6 a >>> >>> git checkout 21074ef03c0816ae158721a78cabe9035938dddd >>> >>> I was able to compile the kernel for the AmigaOne X1000 (Nemo board with PA >>> Semi PA6T-1682M SoC). It boots but the PA Semi onboard ethernet doesn't >>> work. >> Thanks. But we are exactly missing the steps that are relevant. I've >> pushed a fixed up powerpc-dma.6 tree, which will only change starting from >> the first commit that didn't link. >> >> The first commit that changed from the old one is this one: >> >> http://git.infradead.org/users/hch/misc.git/commitdiff/257002094bc5935dd63207a380d9698ab81f0775 >> >> which was that one that your compile failed on first. >> >> Thanks again for all your work! >> > Thank you! I tried the commit 240d7ecd7f6fa62e074e8a835e620047954f0b28 > (powerpc/dma: use the dma-direct allocator for coherent platforms) again. > > git clone git://git.infradead.org/users/hch/misc.git -b powerpc-dma.6 a > > git checkout 240d7ecd7f6fa62e074e8a835e620047954f0b28 > > I modified the 'dma.c' patch because of the undefined references to > '__dma_nommu_free_coherent' and '__dma_nommu_alloc_coherent': So 257002094bc5935dd63207a380d9698ab81f0775 above is the fixed version for the commit - this switched the ifdef in dma.c around that I had inverted. Can you try that one instead? And then move on with the commits after it in the updated powerpc-dma.6 branch - they are identical to the original branch except for carrying this fix forward.