Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp544341pxt; Thu, 12 Aug 2021 04:29:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbUtbLOpLPbicWP5VKuh9ADaz3igNeR1j4kmT1SAjYO/zxQGiTHf9Ujw1ctlc0SAvcUL4b X-Received: by 2002:a17:907:3e0d:: with SMTP id hp13mr3128760ejc.372.1628767769789; Thu, 12 Aug 2021 04:29:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628767769; cv=none; d=google.com; s=arc-20160816; b=AVmFigboPeAZtkzk6RaA2lHYEdPTDzO69vKe11Eg+WrZOcTnKGtQ0TaGizfyz7nZxC WLowwwJkY+z2mp0zCRpZC2rClItW+Zino/YYrIjYalymrhgc3tsWKwJ6sV8UcIE7I9hK HHJLMjhJ2OEqQx7pBeY8F7Ip/pf5DSzEEcVlx3hcsq54CvMWtQgRkZkD9xxy3TFo2CZX 5q0L03LhPBzkenmzKbop7+/DYrMOmyVgScaYNc+MU/gZKtrCz4dxvf/ZP1798giPAqh9 /IWioybq88BizoKsWzBIF0YVCm0M0QuN//OUXkkRWkR1xk/PxKEkW6lddqdDvqyaZ/xe SS6w== 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=IOE2gR/4qf6OYcgJpI9YbhKll9jSwfJuW4t3/FW/Kyc=; b=Cgq98KoZOMrdBEobeZ08xXGdcvSA3lm1ViLvDi7XtnhfEwjmKYBppdjE36N7u8siJt pj2c6hCQOaEbw2qYXE9dKi1cE1DcKTFt9J8Dj7gMZggpwgPTxlpqWuCgopd1RduOn2am edVpr7icKEB18686f95UlnrWZtyy8UY2bw0dcyPR0MjBsoG2N/PIFkwLZ8WTjsWqq82u v/Iah2hX45WJvg3RLAbm7/7Qm1rmg8YVDlSUpqJusqiyaPPKpXX9SlN6CskDW7a1BLX1 zP1QbXy4rnpQTRvya6BizFg4F3sAC1zjDmT5dAwAbH0voNN85iGGzVL644EfWQBJHq9g +iJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s6si2555773edq.246.2021.08.12.04.29.05; Thu, 12 Aug 2021 04:29:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236766AbhHLL1i (ORCPT + 99 others); Thu, 12 Aug 2021 07:27:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232025AbhHLL1g (ORCPT ); Thu, 12 Aug 2021 07:27:36 -0400 Received: from theia.8bytes.org (8bytes.org [IPv6:2a01:238:4383:600:38bc:a715:4b6d:a889]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DB18C061765 for ; Thu, 12 Aug 2021 04:27:11 -0700 (PDT) Received: by theia.8bytes.org (Postfix, from userid 1000) id BD7744D4; Thu, 12 Aug 2021 13:27:08 +0200 (CEST) Date: Thu, 12 Aug 2021 13:27:01 +0200 From: Joerg Roedel To: Geert Uytterhoeven Cc: Sven Peter , Will Deacon , Hector Martin , iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iommu: APPLE_DART should depend on ARCH_APPLE Message-ID: References: <44fcf525273b32c9afcd7e99acbd346d47f0e047.1628603162.git.geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44fcf525273b32c9afcd7e99acbd346d47f0e047.1628603162.git.geert+renesas@glider.be> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 10, 2021 at 03:47:19PM +0200, Geert Uytterhoeven wrote: > The Apple DART (Device Address Resolution Table) IOMMU is only present > on Apple ARM SoCs like the M1. Hence add a dependency on ARCH_APPLE, to > prevent asking the user about this driver when configuring a kernel > without support for the Apple Silicon SoC family. > > Fixes: 05ce9d20d699b093 ("iommu/dart: Add DART iommu driver") > Signed-off-by: Geert Uytterhoeven > --- > drivers/iommu/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig > index dfe81da483e9e073..e908b8222e4ed679 100644 > --- a/drivers/iommu/Kconfig > +++ b/drivers/iommu/Kconfig > @@ -292,7 +292,7 @@ config SPAPR_TCE_IOMMU > > config APPLE_DART > tristate "Apple DART IOMMU Support" > - depends on ARM64 || (COMPILE_TEST && !GENERIC_ATOMIC64) > + depends on ARCH_APPLE || (COMPILE_TEST && !GENERIC_ATOMIC64) > select IOMMU_API > select IOMMU_IO_PGTABLE_LPAE > default ARCH_APPLE Dropped the Fixes tag, as this doesn't fix any real issue. Otherwise applied with adjusted subject (iommu: -> iommu/dart:), Thanks.