Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1135705rdb; Wed, 16 Aug 2023 02:51:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcM3Fe17So1V+YGjJX96HIWP/zihLjXaTzNdnEV9SuKIJN778w2xRmimlunxr0Kyb6VMvt X-Received: by 2002:a17:907:705:b0:99d:e417:d6f9 with SMTP id xb5-20020a170907070500b0099de417d6f9mr1260794ejb.41.1692179517187; Wed, 16 Aug 2023 02:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692179517; cv=none; d=google.com; s=arc-20160816; b=LRcfXiIxCdMuSsbfWiNTgsyOnLQJsmb03dwPnMl8zyGAAsjMBqZq4V5KJyNr+2v/yT T0wKTqEL3Oca08menBJv18H2tlTt4PpsUMUESwN8zlbfJr1x2yKIroZ47rtX0swopUqN BChuC8VPPUvD3/w5+MKL8FfTqKnD2Ng89Sv3RLRbusKtGpB0DEwtZpiGPhQwn6MY5Kqu o0kSNTb67TZYag8SKeolSAML1wV8tnGgFXXoAsczRn37J28x8XwPXPzrjF87dTUYqHcd FYS1QdiZqnVtMdlEugRTIJLdxy3ZsM0XI7OCWWogjjitQQsb9AdNn1HKBA/UDiPAU2WE afPA== 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=EMzF6Bi2HRZf9K8ttTRHE9jMbRoQoOm6yPgD+dJh3bE=; fh=ynTzLAk+v9CzFUr7FGJanjUb/SrFaUBakUgC2loHyTU=; b=sN76rYpLvqHQ8UGa0/XSDldpLRggzj/mSPmpWk3dzArAR78Fa9yRe4lzTi4hLV+2vL gznGVd/1E/w5NcN+i2nJ441zrsYHlvVljuCqUGHHiZwN2fRNU4a3cAlPGVgPo2uKyVdj 9tzXIC6D2ilw9u2EJSPDlRMY9gH7+OifJ34SCyYtcZeDAA+kvcxJQVWn9bOkN92qYK8a eor/HGM6gKwaDmOQq1FAS2NuIZpLK7Sl6oexdgGXS7zM2IWVXQZg+0vKBcYWxWAEWB8k 6kAAQDocbC+1mxSmeWDT0BoU0Q/CfqAxs/b1DTrWxFPJ9Bpa4QuqxiVNSo7pOaMlcYQN WLSw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh13-20020a170906eb8d00b0099bcd1fa5acsi11027494ejb.359.2023.08.16.02.51.20; Wed, 16 Aug 2023 02:51:57 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231523AbjHOPhN (ORCPT + 99 others); Tue, 15 Aug 2023 11:37:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238195AbjHOPhK (ORCPT ); Tue, 15 Aug 2023 11:37:10 -0400 Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45A211BC5 for ; Tue, 15 Aug 2023 08:36:55 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:5d0c:f209:12a7:4ce5]) by andre.telenet-ops.be with bizsmtp id Zrcs2A00345ualL01rcstv; Tue, 15 Aug 2023 17:36:53 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qVw69-000j8S-IT; Tue, 15 Aug 2023 17:36:52 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qVw6F-005cq2-RQ; Tue, 15 Aug 2023 17:36:51 +0200 From: Geert Uytterhoeven To: Will Deacon , Mark Rutland , Robin Murphy Cc: Jean-Philippe Brucker , Vincent Whitchurch , Joerg Roedel , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] perf: ARM_SMMU_V3_PMU should depend on ARM_SMMU_V3 Date: Tue, 15 Aug 2023 17:36:50 +0200 Message-Id: <0f8ac07472f4161c71247742acb2303f9cf91396.1692113438.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_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 There is no point in monitoring transactions passing through the SMMU when ARM Ltd. System MMU Version 3 (SMMUv3) Support is disabled. Hence replace the dependency on ARM64 by a dependency on ARM_SMMU_V3 (which implies the former). Signed-off-by: Geert Uytterhoeven --- This caught my eye after commit 7c3f204e544dfa37 ("perf/smmuv3: Remove build dependency on ACPI") in arm64/for-next/core. Perhaps my understanding is wrong? Is there anything to monitor when ARM_SMMU_V3=n? drivers/perf/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/perf/Kconfig b/drivers/perf/Kconfig index 273d67ecf6d2530f..c33324692fbf0141 100644 --- a/drivers/perf/Kconfig +++ b/drivers/perf/Kconfig @@ -92,7 +92,7 @@ config ARM_PMU_ACPI config ARM_SMMU_V3_PMU tristate "ARM SMMUv3 Performance Monitors Extension" - depends on ARM64 || (COMPILE_TEST && 64BIT) + depends on ARM_SMMU_V3 || (COMPILE_TEST && 64BIT) depends on GENERIC_MSI_IRQ help Provides support for the ARM SMMUv3 Performance Monitor Counter -- 2.34.1