Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp135096rwb; Fri, 2 Sep 2022 11:24:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR5yfeyQ/lhLYm4n5/GlBBNRzJNfmFIUWUxzR7vUWZta0QrvCKIUu+/5dhftuFy4addnlJkR X-Received: by 2002:a63:4b65:0:b0:42a:a707:17a5 with SMTP id k37-20020a634b65000000b0042aa70717a5mr32409333pgl.137.1662143071716; Fri, 02 Sep 2022 11:24:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662143071; cv=none; d=google.com; s=arc-20160816; b=bBP8RYfCqjV2y3cx69b9UVBpHpg0TP5V9Zkb2Hdg0ecfWhTwACO6xG7EMwjxPcJglA mrcGFkB0TX3QntMH0M4j7oDhan24XOIDaSsPylWFo4DIVVrQ3jTWrtaqMxynTeYvii2h pFphgsqms60PQ3vwXhU5xHNdN//1VbScu1nOwaeJFV3XyH8Bp81zezyrGmovEGf0JyTR IpLpGd98PSygKjr+N2qJuXlvw4oj+SyXyUDyiGKpvialxRzMVuxsxFghFjdJhbjL7xVF 6wVPPFvmVgMmjsizSRAUQTNTN0nkg7s/s7MWNz0U3wVakIa60BSrh6+IcDCXdLg5LVRQ MuYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Sqnedl4lS0NfYpFa5wvcxp2Jj1xqCjS8JAGmYKVoAeU=; b=HozICD1FeYgl1D9jumjmwWTw7zp4E6vfT+q/8NTHaez6IUCzrmqgqW+3p6q6I1lW7u fSildX2gbTmXSl/hSwCVd30srPenbhvjBaaAgbF30OQWweWVgpzXngO2wEEYsrB5SFqZ 0TIahGpUdNmYkmZ2a1l7ihmSKYxYYAxPynb6IDS/6UIAUE46K/8v8AmkcnGqIxBr8+lt qg3rcuzdhL6LIY3EYrdU+Le227irgZAB4XVjEOANB6t9PrrELI/Z5wy//RjLW9+N6xBL UUrs7R/1ED6VUMk6q47eqJuMr/a5FZJAO7S/3ZFECj1uPkgGPgmu9aXkBUuekqXww/T5 6KLA== 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:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i6-20020a654d06000000b00429d576a813si2515499pgt.661.2022.09.02.11.24.16; Fri, 02 Sep 2022 11:24:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229609AbiIBSP2 (ORCPT + 99 others); Fri, 2 Sep 2022 14:15:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbiIBSP1 (ORCPT ); Fri, 2 Sep 2022 14:15:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 158452A439; Fri, 2 Sep 2022 11:15:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B004A6222B; Fri, 2 Sep 2022 18:15:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18B8EC433C1; Fri, 2 Sep 2022 18:15:21 +0000 (UTC) Date: Fri, 2 Sep 2022 19:15:17 +0100 From: Catalin Marinas To: Robin Murphy Cc: joro@8bytes.org, will@kernel.org, jean-philippe@linaro.org, inki.dae@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, tglx@linutronix.de, maz@kernel.org, alex.williamson@redhat.com, cohuck@redhat.com, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH 1/3] iommu/dma: Clean up Kconfig Message-ID: References: <2e33c8bc2b1bb478157b7964bfed976cb7466139.1660668998.git.robin.murphy@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2e33c8bc2b1bb478157b7964bfed976cb7466139.1660668998.git.robin.murphy@arm.com> X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Tue, Aug 16, 2022 at 06:28:03PM +0100, Robin Murphy wrote: > Although iommu-dma is a per-architecture chonce, that is currently > implemented in a rather haphazard way. Selecting from the arch Kconfig > was the original logical approach, but is complicated by having to > manage dependencies; conversely, selecting from drivers ends up hiding > the architecture dependency *too* well. Instead, let's just have it > enable itself automatically when IOMMU API support is enabled for the > relevant architectures. It can't get much clearer than that. > > Signed-off-by: Robin Murphy > --- > arch/arm64/Kconfig | 1 - For this change: Acked-by: Catalin Marinas