Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp971181pxb; Fri, 22 Apr 2022 15:38:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJym7d5LIqMPDgZzWVv8TDwV8grDTniH2p8KatNFs98FXgyZ4y6ELG0oRcUsfx6TxuR0MRPW X-Received: by 2002:a17:90b:4ad1:b0:1d1:41f9:6125 with SMTP id mh17-20020a17090b4ad100b001d141f96125mr18607165pjb.137.1650667137338; Fri, 22 Apr 2022 15:38:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650667137; cv=none; d=google.com; s=arc-20160816; b=S2s77qdzxsmVOpL2CWvbZy+YYsZocMWABROHoyZQzgru++gR6L5MSySCdUVj9mVckX XyTzUv6ukUdAlItMzGM3+ivZy/LTsqgt1kmvDLaAg47IkIcRbxEoNcG0kyEfBuDFcI+p OpreKhD7jUSuRFuuDZuOZzLjA+Ndveg9a2MoQAQcCQRMtFiXMMxm1Pi3UDb3HSIMlsP9 fDqViPwXiVXsLkhvFzCMFswJiqN2AJrrtx8JoBmXSYSvlmC13FWQzSd3+T7nFfN9wR2j KzHtnY2k7xDR8RX9kishUbI6Coyb7XY3I5cdpK69Bd5eZPKez91/fMEg1z9gBcw4guIb tt7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=FLlWtA8cv/3vRynfzU62vd2lIaWdp7+zQvLCcC3m4VA=; b=pDac+oJePYlEC2lKqE0nVPnyeH0TfwtJUqNVV2kQWAUAF4MWfaHBskYHoMHNCZykwS qhsOkn4nf3EYaqFJiMhuyvzj6GXmDWhip+5CG7cBJ81g4U9tbRRWuyJ/Fk0e4DY6BUc/ nNX9llTWdFeddzLx5tKlEmmC9s67JN2khJyTJ2aJJehfGb57eQ4bsiEw8cetTWeZS5zG 9SG2voPm54glvm6X5Uh9P8YkXkMoGcYuNG+B9qydYr0bka8B1QO3eq/si4Rxn9BpoNUu LsiLqK27IW+DN6oKWpCx0AxxdIoPsV5f5iIfoK96EOOLHveKv2gQi4k2wtOojKbZ7G7g OWuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o21-20020a056a0015d500b00508372bac17si10235282pfu.305.2022.04.22.15.38.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:38:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BC64615047C; Fri, 22 Apr 2022 13:26:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388487AbiDUKoC (ORCPT + 99 others); Thu, 21 Apr 2022 06:44:02 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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(-)