From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BBC13C433F5 for ; Thu, 21 Apr 2022 10:41:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388490AbiDUKoD (ORCPT ); Thu, 21 Apr 2022 06:44:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231422AbiDUKoB (ORCPT ); Thu, 21 Apr 2022 06:44:01 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7DA3E2611E; Thu, 21 Apr 2022 03:41:12 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3B4941FB; Thu, 21 Apr 2022 03:41:12 -0700 (PDT) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 54ABA3F5A1; Thu, 21 Apr 2022 03:41:10 -0700 (PDT) Date: Thu, 21 Apr 2022 11:41:05 +0100 From: Andre Przywara To: Christoph Hellwig Cc: Russell King , Arnd Bergmann , Linus Walleij , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Greg Kroah-Hartman , Alan Stern , Laurentiu Tudor , Marek Szyprowski , Robin Murphy , iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: fully convert arm to use dma-direct Message-ID: <20220421114105.4bb06db7@donnerap.cambridge.arm.com> In-Reply-To: <20220421074204.1284072-1-hch@lst.de> References: <20220421074204.1284072-1-hch@lst.de> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Apr 2022 09:41:57 +0200 Christoph Hellwig wrote: Hi, > arm is the last platform not using the dma-direct code for directly > mapped DMA. With the dmaboune removal from Arnd we can easily switch > arm to always use dma-direct now (it already does for LPAE configs > and nommu). I'd love to merge this series through the dma-mapping tree > as it gives us the opportunity for additional core dma-mapping > improvements. > > Diffstat: > arch/arm/common/dmabounce.c | 582 ------------------- > arch/arm/include/asm/dma-mapping.h | 128 ---- > b/arch/arm/Kconfig | 5 > b/arch/arm/common/Kconfig | 6 > b/arch/arm/common/Makefile | 1 > b/arch/arm/common/sa1111.c | 64 -- > b/arch/arm/include/asm/device.h | 3 > b/arch/arm/include/asm/dma-direct.h | 49 - > b/arch/arm/include/asm/memory.h | 2 > b/arch/arm/mach-footbridge/Kconfig | 1 > b/arch/arm/mach-footbridge/common.c | 19 > b/arch/arm/mach-footbridge/include/mach/dma-direct.h | 8 > b/arch/arm/mach-footbridge/include/mach/memory.h | 4 > b/arch/arm/mach-highbank/highbank.c | 2 FWIW, I applied this on top of 5.18-rc3 and pushed my Midway (the Highbank successor) a bit with it (scp-ing GBs forth and back to a SATA SSD). Not a really conclusive test, but so far it looks all fine. So for the Highbank part: Acked-by: Andre Przywara Cheers, Andre > b/arch/arm/mach-mvebu/coherency.c | 2 > b/arch/arm/mm/dma-mapping.c | 381 ------------ > b/drivers/usb/core/hcd.c | 17 > b/drivers/usb/host/ohci-sa1111.c | 25 > 18 files changed, 84 insertions(+), 1215 deletions(-) From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BA040C433EF for ; Thu, 21 Apr 2022 10:41:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 3D312400BA; Thu, 21 Apr 2022 10:41:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MCAbSgzs0nxN; Thu, 21 Apr 2022 10:41:15 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp2.osuosl.org (Postfix) with ESMTPS id 2EC37408C3; Thu, 21 Apr 2022 10:41:15 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 09EEEC0033; Thu, 21 Apr 2022 10:41:15 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 65E06C002C for ; Thu, 21 Apr 2022 10:41:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 452868402E for ; Thu, 21 Apr 2022 10:41:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Key3Kc9FthBO for ; Thu, 21 Apr 2022 10:41:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp1.osuosl.org (Postfix) with ESMTP id 31C918401F for ; Thu, 21 Apr 2022 10:41:13 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3B4941FB; Thu, 21 Apr 2022 03:41:12 -0700 (PDT) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 54ABA3F5A1; Thu, 21 Apr 2022 03:41:10 -0700 (PDT) Date: Thu, 21 Apr 2022 11:41:05 +0100 From: Andre Przywara To: Christoph Hellwig Subject: Re: fully convert arm to use dma-direct Message-ID: <20220421114105.4bb06db7@donnerap.cambridge.arm.com> In-Reply-To: <20220421074204.1284072-1-hch@lst.de> References: <20220421074204.1284072-1-hch@lst.de> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Cc: Arnd Bergmann , Andrew Lunn , Greg Kroah-Hartman , Linus Walleij , linux-usb@vger.kernel.org, Russell King , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, Alan Stern , Robin Murphy , Gregory Clement , linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" On Thu, 21 Apr 2022 09:41:57 +0200 Christoph Hellwig wrote: Hi, > arm is the last platform not using the dma-direct code for directly > mapped DMA. With the dmaboune removal from Arnd we can easily switch > arm to always use dma-direct now (it already does for LPAE configs > and nommu). I'd love to merge this series through the dma-mapping tree > as it gives us the opportunity for additional core dma-mapping > improvements. > > Diffstat: > arch/arm/common/dmabounce.c | 582 ------------------- > arch/arm/include/asm/dma-mapping.h | 128 ---- > b/arch/arm/Kconfig | 5 > b/arch/arm/common/Kconfig | 6 > b/arch/arm/common/Makefile | 1 > b/arch/arm/common/sa1111.c | 64 -- > b/arch/arm/include/asm/device.h | 3 > b/arch/arm/include/asm/dma-direct.h | 49 - > b/arch/arm/include/asm/memory.h | 2 > b/arch/arm/mach-footbridge/Kconfig | 1 > b/arch/arm/mach-footbridge/common.c | 19 > b/arch/arm/mach-footbridge/include/mach/dma-direct.h | 8 > b/arch/arm/mach-footbridge/include/mach/memory.h | 4 > b/arch/arm/mach-highbank/highbank.c | 2 FWIW, I applied this on top of 5.18-rc3 and pushed my Midway (the Highbank successor) a bit with it (scp-ing GBs forth and back to a SATA SSD). Not a really conclusive test, but so far it looks all fine. So for the Highbank part: Acked-by: Andre Przywara Cheers, Andre > b/arch/arm/mach-mvebu/coherency.c | 2 > b/arch/arm/mm/dma-mapping.c | 381 ------------ > b/drivers/usb/core/hcd.c | 17 > b/drivers/usb/host/ohci-sa1111.c | 25 > 18 files changed, 84 insertions(+), 1215 deletions(-) _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AA3DDC433F5 for ; Thu, 21 Apr 2022 10:42:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HlY05gfBf1B4A4vJ2+7rIn02HRmm3EA8v2mF0rH2Slo=; b=wFjzpTnNg7MNah 89eiZj5pBagqMP0vtXWnLmz2GewNULiyyAjwmIyqqShs6DiaTitTiOhhk4g6OgYsw1PiQyncyOK71 05rZCDA2Vzs3v0Ogh7rFO3KwqNOkt4cIY+UsKLaCh2DMD+AQbmRHR2qEfGKPq+p2oIyE4OQZ/PTvh nFr7YQrhrBG+HIzFjWW0s/9RAr/cYj1SKnlpFT7gxkDAkylhlN5VQ6Z5sBj8DDQr7yCmp2RFsdznq VzQ/G8QzmRKDTkxX364ESkOpSSqVhWJY4MGn5Lr3M0xaCWvMp8koHOLt03kJc1AMso77vJ6fIOQdy sekVn5KitVzFMtr4S2tA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhUFR-00D3cH-5O; Thu, 21 Apr 2022 10:41:17 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhUFN-00D3au-R3 for linux-arm-kernel@lists.infradead.org; Thu, 21 Apr 2022 10:41:15 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3B4941FB; Thu, 21 Apr 2022 03:41:12 -0700 (PDT) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 54ABA3F5A1; Thu, 21 Apr 2022 03:41:10 -0700 (PDT) Date: Thu, 21 Apr 2022 11:41:05 +0100 From: Andre Przywara To: Christoph Hellwig Cc: Russell King , Arnd Bergmann , Linus Walleij , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Greg Kroah-Hartman , Alan Stern , Laurentiu Tudor , Marek Szyprowski , Robin Murphy , iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: fully convert arm to use dma-direct Message-ID: <20220421114105.4bb06db7@donnerap.cambridge.arm.com> In-Reply-To: <20220421074204.1284072-1-hch@lst.de> References: <20220421074204.1284072-1-hch@lst.de> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220421_034113_970896_5773A102 X-CRM114-Status: GOOD ( 15.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 21 Apr 2022 09:41:57 +0200 Christoph Hellwig wrote: Hi, > arm is the last platform not using the dma-direct code for directly > mapped DMA. With the dmaboune removal from Arnd we can easily switch > arm to always use dma-direct now (it already does for LPAE configs > and nommu). I'd love to merge this series through the dma-mapping tree > as it gives us the opportunity for additional core dma-mapping > improvements. > > Diffstat: > arch/arm/common/dmabounce.c | 582 ------------------- > arch/arm/include/asm/dma-mapping.h | 128 ---- > b/arch/arm/Kconfig | 5 > b/arch/arm/common/Kconfig | 6 > b/arch/arm/common/Makefile | 1 > b/arch/arm/common/sa1111.c | 64 -- > b/arch/arm/include/asm/device.h | 3 > b/arch/arm/include/asm/dma-direct.h | 49 - > b/arch/arm/include/asm/memory.h | 2 > b/arch/arm/mach-footbridge/Kconfig | 1 > b/arch/arm/mach-footbridge/common.c | 19 > b/arch/arm/mach-footbridge/include/mach/dma-direct.h | 8 > b/arch/arm/mach-footbridge/include/mach/memory.h | 4 > b/arch/arm/mach-highbank/highbank.c | 2 FWIW, I applied this on top of 5.18-rc3 and pushed my Midway (the Highbank successor) a bit with it (scp-ing GBs forth and back to a SATA SSD). Not a really conclusive test, but so far it looks all fine. So for the Highbank part: Acked-by: Andre Przywara Cheers, Andre > b/arch/arm/mach-mvebu/coherency.c | 2 > b/arch/arm/mm/dma-mapping.c | 381 ------------ > b/drivers/usb/core/hcd.c | 17 > b/drivers/usb/host/ohci-sa1111.c | 25 > 18 files changed, 84 insertions(+), 1215 deletions(-) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel