Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3607752pxt; Tue, 10 Aug 2021 07:23:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypCiN8x5uFrxF7GCyKtfUw8hqO2aRr72uRbGT38TvazslIVWxBESWGZo5q8KxWEXXc9or0 X-Received: by 2002:aa7:d14b:: with SMTP id r11mr5374938edo.259.1628605389113; Tue, 10 Aug 2021 07:23:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628605389; cv=none; d=google.com; s=arc-20160816; b=aJkVoENkAjL7UVFu/8wFBaXzZS0OC9+OjZfnYQe3GrlumymHz1yuyutAS44gHWfVeJ TCAMJ8BhgfCwClpN27I+WuTl4gRX7Q1zMcvvbhkHfEK9sr0JjJtEXG3Sc0W63sK6T2wh AZbipCzGDl7qVux+92Ns1Cn2DU5XFtneR3+Wm/WsbJyxbG0Nc1mo4g6kIEnc2a77i4xW r3Pt8adsVCOq24GHMxgPrs7M1p152/NGsOTH7m3i43+1A23s9Rmljifpk2CG+u1hBYQc 5oL5phDPWYijXITmQNuWFakceGndfRAJ+F3OhdL3L73879tqz8QXwPSYAWKj6UAeXAIM NcRQ== 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 :message-id:date:subject:cc:to:from; bh=fKmWmpwvuPAR0AisMHlZTXD59/gYTn2j5UFmceonaM0=; b=RxHMlmw4iddJIUT2HngPMRAugGdaD63HMUSPXt2T7TYIx4sPxppfagHQkTqlSVFm7q 3pGbfefxTkGajx3QdH9zE+/0JkVqCkw5beLlglbLFU5qWi7jrKzPX8yPCRNorbRduQNK 4VZeWdftjP2CBKdDNdDFPgcJoqoDlommMjpSnr4eqIvMfSc7nQgoMRXZB9TipAg7JKhu rY0D09TaSeg06P7rTerHPfSj3TJ0GwpqVCtji9aGq2lko5xqJms2YhZCDQDtFGzrTT0d /5ah/ox0ZwiqUjmIqbHcWx1puh5K+ZMJ5NHG9mR/9quYJOQhsskDcOslcyDOIDXey8+6 d1cw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si19930784edd.424.2021.08.10.07.22.44; Tue, 10 Aug 2021 07:23:09 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241859AbhHJNru (ORCPT + 99 others); Tue, 10 Aug 2021 09:47:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238273AbhHJNru (ORCPT ); Tue, 10 Aug 2021 09:47:50 -0400 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49C8AC0613D3 for ; Tue, 10 Aug 2021 06:47:28 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:5c69:2226:1f00:1a90]) by laurent.telenet-ops.be with bizsmtp id fpnL2500a1ffYXh01pnMiA; Tue, 10 Aug 2021 15:47:23 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1mDS6C-001cUJ-NC; Tue, 10 Aug 2021 15:47:20 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1mDS6C-001Q7Z-7i; Tue, 10 Aug 2021 15:47:20 +0200 From: Geert Uytterhoeven To: Sven Peter , Joerg Roedel , Will Deacon , Hector Martin Cc: iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] iommu: APPLE_DART should depend on ARCH_APPLE Date: Tue, 10 Aug 2021 15:47:19 +0200 Message-Id: <44fcf525273b32c9afcd7e99acbd346d47f0e047.1628603162.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.25.1