From patchwork Tue Aug 15 15:36:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13353928 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E3190C001B0 for ; Tue, 15 Aug 2023 15:37:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=TzpeydNc7/90MNsBEFL6q0KusOOj0LxKg6+yfvi9mrQ=; b=l1+a3x27WdULJY 6IsyqpoAbsZ1TtEVYI8ehNS3wDeEYjA5yov4/aCtY1yWqHlZ/iV5eOPQLMeSqjw1u2Z4Um6PD8n2+ 8lCrdqDmDVQjUi3HsLIEBECqFvYyIw/l9X82+uxuvL/g/+/ibbuQAJX3xm2Tk2MrZvlK4P4J8qa7G zzyy/S/VOeNKO7NprsKfR4nkfTa1wLOjaQLs2YKF3GpSD2tYCQgrvSAnxsA6hJDXwCd8qiNEWvQfs hfduiMhsem+7kjPN/ApCn/azHpcpTNEa26MSaT6TxHu02i0Ki9BLEcPhq0a9v4R+f8EqaQx1cvha6 clCkJkOxTDi4l6vd7T9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qVw6d-001sYB-01; Tue, 15 Aug 2023 15:37:15 +0000 Received: from andre.telenet-ops.be ([2a02:1800:120:4::f00:15]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qVw6Z-001sVx-27 for linux-arm-kernel@lists.infradead.org; Tue, 15 Aug 2023 15:37:13 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230815_083711_831365_76B2A7BC X-CRM114-Status: GOOD ( 11.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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