Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4515103imu; Tue, 15 Jan 2019 01:06:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN5NJumJMkz0im76ihJGkQbm/IxwDvYV/At+/7+XsE+hDM2es9liWaL6a8LhX53B/xwQywo3 X-Received: by 2002:a17:902:128c:: with SMTP id g12mr2926839pla.146.1547543195740; Tue, 15 Jan 2019 01:06:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547543195; cv=none; d=google.com; s=arc-20160816; b=BPyoy80U5hd0ChtV/rUfVJkhSolKSGQVM8thejV2JOnR9mDKXuMymaBlwhZ6NUV7MX +XrFWfo21S8rJSHbPGuJZyShtBa05VOSy3XdzJgQYRdrM4xSuRqcN4sD/pbrtT7kQdOE Wg1EMcPw8yTYMUbrEchVbeeSuRmYepDebQRor1PKMAZYU+Vf8KersMrpBTgB2X0/XsCg UgR71I2+owGbVBltyW0GVRxaE2edAcn7ZqXGXhPTRENFWN5h+Id33Y2YLqcXogaLBhZf n0qD1XesuUQeIIYREaoV98Tnf+swKxj4919ihzRatDCveBfQwQUr89G/d+DA4NfUyhcH igaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=zhLQ4U4mkyYe4kYcnyvArUE1WBCXU3qBTv78kXC8sb8=; b=QtkAMj3Qh5+V5YcGi+5P37eW+NE21QjcfX2j3PLvvA81+hzlyYlCVBOiWfAQ4JvRuY ePpOgBgzAA8xJz0/+pxVSD97RQ7aEzcSwjfwz+kzzI/o+aZGlDfJLfX3VXahXNpsLDCR Mm+uxKodag5Pblpnk2MTL5CUgjTL/GjV/F5tvvs+ISgszbkRpGhfhRL7koTPnVlAWj4E DiurosCaJplybNBP2EAWT69SrXeAQTT6WKltaGXry0mKsVttLyvovbbmIG8SJT9rIzyu zHQvL7hSzeSKgPiO58AbaBj4FE8qQOunx15uG/nIIjEniIZo6x9sZyYguks6hrKHQaXt hTWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@xenosoft.de header.s=strato-dkim-0002 header.b=jpZtNyHQ; 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 p5si2736186pfb.188.2019.01.15.01.06.14; Tue, 15 Jan 2019 01:06:35 -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; dkim=fail header.i=@xenosoft.de header.s=strato-dkim-0002 header.b=jpZtNyHQ; 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 S1728510AbfAOIt2 (ORCPT + 99 others); Tue, 15 Jan 2019 03:49:28 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([81.169.146.171]:27479 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbfAOIt1 (ORCPT ); Tue, 15 Jan 2019 03:49:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1547542164; s=strato-dkim-0002; d=xenosoft.de; h=In-Reply-To:Date:Message-ID:References:Cc:To:From:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=zhLQ4U4mkyYe4kYcnyvArUE1WBCXU3qBTv78kXC8sb8=; b=jpZtNyHQWHvCv/ZH7Xi5Gs7gHeMfM7QQ3Ib0Q9ZXhLHMgkj5RQq33uXYpTYS0WUrin 6B+0RQEAS9MfvsVl9BKlXDBmXp8QXbyKKsqeD8O3v2BklrIMo94t58IkCkhjs1fLhIOb lqKLJCT+4eU/tFd9v4miLKYJxbOEWUz8ihf+lpskXs0QYIK08wn9Hdkl4QdHWA0L8Sxt DG7wi0PIQegZbSgk1C8O3o+Q5q9cHRZyB5hap0OTtCDMwHBII3559yJv5k49H30D54Yq lNOvS9pmN1td+cMeRso/j30NmAoPcNzWSs15l7E1H1GM11tSFyLbFAX6Se3dvuUUlybH H16w== X-RZG-AUTH: ":L2QefEenb+UdBJSdRCXu93KJ1bmSGnhMdmOod1DhGM4l4Hio94KKxRySfLxnHfJ+Dkjp5G5MdirQj0WG7CkNi0C2kzEbDQg0vrQvOCYvo/qC" X-RZG-CLASS-ID: mo00 Received: from [IPv6:2a02:8109:a400:162c:25bb:7249:5b2a:1f0] by smtp.strato.de (RZmta 44.9 AUTH) with ESMTPSA id t0203dv0F8nMqTT (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 15 Jan 2019 09:49:22 +0100 (CET) Subject: Re: use generic DMA mapping code in powerpc V4 From: Christian Zigotzky 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 References: <2242B4B2-6311-492E-BFF9-6740E36EC6D4@xenosoft.de> <84558d7f-5a7f-5219-0c3a-045e6b4c494f@xenosoft.de> <20181213091021.GA2106@lst.de> <835bd119-081e-a5ea-1899-189d439c83d6@xenosoft.de> <76bc684a-b4d2-1d26-f18d-f5c9ba65978c@xenosoft.de> <20181213112511.GA4574@lst.de> <008c981e-bdd2-21a7-f5f7-c57e4850ae9a@xenosoft.de> <20190103073622.GA24323@lst.de> <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> Message-ID: <21f72a6a-9095-7034-f169-95e876228b2a@xenosoft.de> Date: Tue, 15 Jan 2019 09:49:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: de-DE Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Next step: 63a6e350e037a21e9a88c8b710129bea7049a80f (powerpc/dma: use the dma_direct mapping routines) git clone git://git.infradead.org/users/hch/misc.git -b powerpc-dma.6 a git checkout 63a6e350e037a21e9a88c8b710129bea7049a80f Error message: arch/powerpc/kernel/dma.o:(.data.rel.ro+0x0): undefined reference to `__dma_nommu_alloc_coherent' arch/powerpc/kernel/dma.o:(.data.rel.ro+0x8): undefined reference to `__dma_nommu_free_coherent' Makefile:1027: recipe for target 'vmlinux' failed make: *** [vmlinux] Error 1 -- Christian On 15 January 2019 at 09:07AM, Christian Zigotzky wrote: > Next step: 240d7ecd7f6fa62e074e8a835e620047954f0b28 (powerpc/dma: use > the dma-direct allocator for coherent platforms) > > git clone git://git.infradead.org/users/hch/misc.git -b powerpc-dma.6 a > > git checkout 240d7ecd7f6fa62e074e8a835e620047954f0b28 > > Link to the Git: > http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/powerpc-dma.6 > > env LANG=C make CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc zImage > > Error message: > > arch/powerpc/kernel/dma.o:(.data.rel.ro+0x0): undefined reference to > `__dma_nommu_alloc_coherent' > arch/powerpc/kernel/dma.o:(.data.rel.ro+0x8): undefined reference to > `__dma_nommu_free_coherent' > Makefile:1027: recipe for target 'vmlinux' failed > make: *** [vmlinux] Error 1 > > -- Christian > > > On 12 January 2019 at 7:14PM, Christian Zigotzky wrote: >> Next step: 4558b6e1ddf3dcf5a86d6a5d16c2ac1600c7df39 (swiotlb: remove >> swiotlb_dma_supported) >> >> git clone git://git.infradead.org/users/hch/misc.git -b powerpc-dma.6 a >> >> git checkout 4558b6e1ddf3dcf5a86d6a5d16c2ac1600c7df39 >> >> Output: >> >> You are in 'detached HEAD' state. You can look around, make experimental >> changes and commit them, and you can discard any commits you make in >> this >> state without impacting any branches by performing another checkout. >> >> If you want to create a new branch to retain commits you create, you may >> do so (now or later) by using -b with the checkout command again. >> Example: >> >>   git checkout -b >> >> HEAD is now at 4558b6e... swiotlb: remove swiotlb_dma_supported >> >> ---- >> >> Link to the Git: >> http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/powerpc-dma.6 >> >> Results: PASEMI onboard ethernet (X1000) works and the X5000 (P5020 >> board) boots. I also successfully tested sound, hardware 3D >> acceleration, Bluetooth, network, booting with a label etc. The >> uImages work also in a virtual e5500 quad-core QEMU machine. >> >> -- Christian >> >> >> On 11 January 2019 at 03:10AM, Christian Zigotzky wrote: >>> Next step: 891dcc1072f1fa27a83da920d88daff6ca08fc02 (powerpc/dma: >>> remove dma_nommu_dma_supported) >>> >>> git clone git://git.infradead.org/users/hch/misc.git -b powerpc-dma.6 a >>> >>> git checkout 891dcc1072f1fa27a83da920d88daff6ca08fc02 >>> >>> Output: >>> >>> Note: checking out '891dcc1072f1fa27a83da920d88daff6ca08fc02'. >>> >>> You are in 'detached HEAD' state. You can look around, make >>> experimental >>> changes and commit them, and you can discard any commits you make in >>> this >>> state without impacting any branches by performing another checkout. >>> >>> If you want to create a new branch to retain commits you create, you >>> may >>> do so (now or later) by using -b with the checkout command again. >>> Example: >>> >>> git checkout -b >>> >>> HEAD is now at 891dcc1... powerpc/dma: remove dma_nommu_dma_supported >>> >>> --- >>> >>> Link to the Git: >>> http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/powerpc-dma.6 >>> >>> Results: PASEMI onboard ethernet works and the X5000 (P5020 board) >>> boots. I also successfully tested sound, hardware 3D acceleration, >>> Bluetooth, network, booting with a label etc. The uImages work also >>> in a virtual e5500 quad-core QEMU machine. >>> >>> -- Christian >>> >>> >>> On 09 January 2019 at 10:31AM, Christian Zigotzky wrote: >>>> Next step: a64e18ba191ba9102fb174f27d707485ffd9389c (powerpc/dma: >>>> remove dma_nommu_get_required_mask) >>>> >>>> git clone git://git.infradead.org/users/hch/misc.git -b >>>> powerpc-dma.6 a >>>> >>>> git checkout a64e18ba191ba9102fb174f27d707485ffd9389c >>>> >>>> Link to the Git: >>>> http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/powerpc-dma.6 >>>> >>>> Results: PASEMI onboard ethernet works and the X5000 (P5020 board) >>>> boots. I also successfully tested sound, hardware 3D acceleration, >>>> Bluetooth, network, booting with a label etc. The uImages work also >>>> in a virtual e5500 quad-core QEMU machine. >>>> >>>> -- Christian >>>> >>>> >>>> On 05 January 2019 at 5:03PM, Christian Zigotzky wrote: >>>>> Next step: c446404b041130fbd9d1772d184f24715cf2362f (powerpc/dma: >>>>> remove dma_nommu_mmap_coherent) >>>>> >>>>> git clone git://git.infradead.org/users/hch/misc.git -b >>>>> powerpc-dma.6 a >>>>> >>>>> git checkout c446404b041130fbd9d1772d184f24715cf2362f >>>>> >>>>> Output: >>>>> >>>>> Note: checking out 'c446404b041130fbd9d1772d184f24715cf2362f'. >>>>> >>>>> You are in 'detached HEAD' state. You can look around, make >>>>> experimental >>>>> changes and commit them, and you can discard any commits you make >>>>> in this >>>>> state without impacting any branches by performing another checkout. >>>>> >>>>> If you want to create a new branch to retain commits you create, >>>>> you may >>>>> do so (now or later) by using -b with the checkout command again. >>>>> Example: >>>>> >>>>>   git checkout -b >>>>> >>>>> HEAD is now at c446404... powerpc/dma: remove dma_nommu_mmap_coherent >>>>> >>>>> ----- >>>>> >>>>> Link to the Git: >>>>> http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/powerpc-dma.6 >>>>> >>>>> Result: PASEMI onboard ethernet works and the X5000 (P5020 board) >>>>> boots. >>>>> >>>>> -- Christian >>>>> >>>> >>>> >>> >>> >> >> > >