Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2567756rdb; Mon, 4 Dec 2023 00:45:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGHtrQlwz/TCe+JikFnHxiNRgXUG9BGq7aTmDcQ3ucO1ubLSlUMz7UDm2uWSdRjmtE4JbsU X-Received: by 2002:a05:6870:2891:b0:1fb:75b:99ad with SMTP id gy17-20020a056870289100b001fb075b99admr6011197oab.92.1701679544942; Mon, 04 Dec 2023 00:45:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701679544; cv=none; d=google.com; s=arc-20160816; b=eB08xLqWVbT/f322bT2HktemnYoozGxNghm1WwkLA/jxztoxkYieGqbAeEGGp1cMr7 O0Kl0/yp3g3++tNjXxkP9EmsAtHPRIt26L+DkdA16fdT7KmD6Zg7KL1ewC6M/kB4LtEy 5hp7oMqLubUZKSEMGDc9ZNaqt/pw7rl7p/P8m74+lIFG0nv05qU0lrSw4OSpAaMgHorm txaa9IhF8bxNIrZTzWN0POl1FkyHyoGV1ZX+KgVc+SqubSpQ3RDMz9Rp7H9nYfn0hGHO yv25rCBnuq/ly0qRur91ysHSKUzxupuxxqc04STuxFEfK133XLXWkRH3ujTR9lkIc4Xu kiAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=T7eRmO0HFGim13gBatNqNT74MvCp3imVG4FGLjxwhDU=; fh=k+Y+hYbwCj+SMhnXdWlTmDv6XUyjE+rcX7eFD7WNXSQ=; b=nNZRGMBYc2P+HZ2poCMtS+sei0MeTXcUtXDJ8mv9YzHuBov0tWheCa5YhhvKoR35fv NVAaepmXW5jiVU/G2IYpO3+AWIQe9sDDahm2V22gs9HVPb9XkeVGKd94ew8QxAYCLqjI unVMx2rNyJvY0FgMzc4Mx9q4X0gngzmTBpFL4AofzW1rOMxPbdKu7u5cuzkw2JgCnfR6 VqGD/hEk/h0uNRu/dgrofa4WaSaVimagviOC0mByK70lyEHaXCV3hLNapg5NOi57COhV PMldHWvgSYxKUt36jHw70Skhxj5GO0pg5E3IUf8Cu2xwi2fEXexPTDRi+habwuWezIhI T3pw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id s69-20020a632c48000000b005c6607044easi3502110pgs.738.2023.12.04.00.45.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 00:45:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id C3CF88075DD1; Mon, 4 Dec 2023 00:45:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229526AbjLDIp0 (ORCPT + 99 others); Mon, 4 Dec 2023 03:45:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235340AbjLDIpH (ORCPT ); Mon, 4 Dec 2023 03:45:07 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4467D184; Mon, 4 Dec 2023 00:44:44 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id E167F68AFE; Mon, 4 Dec 2023 09:44:40 +0100 (CET) Date: Mon, 4 Dec 2023 09:44:40 +0100 From: Christoph Hellwig To: Robin Murphy Cc: Joerg Roedel , Christoph Hellwig , Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Paul Walmsley , Palmer Dabbelt , Albert Ou , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Suravee Suthikulpanit , David Woodhouse , Lu Baolu , Niklas Schnelle , Matthew Rosato , Gerald Schaefer , Jean-Philippe Brucker , Rob Herring , Frank Rowand , Marek Szyprowski , Jason Gunthorpe , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, iommu@lists.linux.dev, devicetree@vger.kernel.org Subject: Re: [PATCH 7/7] dma-mapping: Simplify arch_setup_dma_ops() Message-ID: <20231204084440.GB919@lst.de> References: <590a4a1b7d10fb9bb1c42ca6cd438e98e6cc94a7.1701268753.git.robin.murphy@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <590a4a1b7d10fb9bb1c42ca6cd438e98e6cc94a7.1701268753.git.robin.murphy@arm.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 04 Dec 2023 00:45:43 -0800 (PST) On Wed, Nov 29, 2023 at 05:43:04PM +0000, Robin Murphy wrote: > The dma_base, size and iommu arguments are only used by ARM, and can > now easily be deduced from the device itself, so there's no need to pass > them through the callchain as well. This looks even better than the patch form Jason that only removed the iommu argument: Reviewed-by: Christoph Hellwig I wonder if it makes sense to also remove the coherent argument by setting up dev->dma_coherent in the caller. That would require a pretty careful audit as we're doing a few weird things in that area, though.