From mboxrd@z Thu Jan 1 00:00:00 1970 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 33E9CC79F8C for ; Wed, 9 Sep 2026 07:23:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=fUYca7abhZpRRXyQpq5f0A4w+RCfpQDFro+1XnmDa3U=; b=Ub/AW8xfYmTaDPtvtvbhUyAjmB oMHGWgxEScmnytrpTHyHj3XyODfcsvjr4UafkZ5p674gN2X4yjCd9PZ6myMDm+FZMZEKuqsBDn+tW Tm3D2s3dtGgeb/LhWNuJHf6nGTVgTp2uEiaIzLFLiwz2iOPaz3c20b114LG7leuePuHEeKj3hMkkT uTwkLmnug/BEECMiE/TNQvclkho0sB3gEIkcPzqczAKE9lcTZ+YLS3JtZ+IkH8RqJfEX/W5r8SP/9 frnnwD7/eDADBYQ81H3GHZMw+JXWVXr53q0O/55XhiiyyVvQOd1XCqw1xlinCb3Sxy2jEMZW4w/DP oP3ehyPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x4Ce1-0000000AyD1-2tir; Wed, 09 Sep 2026 07:22:57 +0000 Received: from canpmsgout01.his.huawei.com ([113.46.200.216]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x4Cdx-0000000AyBE-1YhG for linux-arm-kernel@lists.infradead.org; Wed, 09 Sep 2026 07:22:56 +0000 dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=fUYca7abhZpRRXyQpq5f0A4w+RCfpQDFro+1XnmDa3U=; b=lhvwHOI9jghIPBpJvn28k9KSMrl3jtx22BNrianbg9D30D0a9FMCOqX3fOdKmM/ZBEMkDh7nf HNnSGc+5PzEWe1+vHFn/axR/vzjEgCjLeruKYQVvpsKnvOKDRMYmU135wq2/qYQDRDt1HyMIduv oyi48oWhX/8L8zXfikvWKs4= Received: from mail.maildlp.com (unknown [172.19.163.0]) by canpmsgout01.his.huawei.com (SkyGuard) with ESMTPS id 4hfsRM2fFKz1T4LY; Wed, 9 Sep 2026 15:11:11 +0800 (CST) Received: from whupemo500002.china.huawei.com (unknown [7.152.185.250]) by mail.maildlp.com (Postfix) with ESMTPS id BC78440537; Wed, 9 Sep 2026 15:22:42 +0800 (CST) Received: from localhost.huawei.com (10.90.31.46) by whupemo500002.china.huawei.com (7.152.185.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.46; Wed, 9 Sep 2026 15:22:41 +0800 From: Yushan Wang To: , , , , CC: , , , , , Subject: [PATCH v5 0/3] drivers/perf: hisi: Updates for HiSilicon uncore PMUs Date: Wed, 9 Sep 2026 15:22:37 +0800 Message-ID: <20260909072240.2308808-1-wangyushan12@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.90.31.46] X-ClientProxiedBy: kwepems200002.china.huawei.com (7.221.188.68) To whupemo500002.china.huawei.com (7.152.185.250) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260909_002254_060928_17D67BB6 X-CRM114-Status: GOOD ( 11.59 ) 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 This patchset adds support for the ITS PMU and a new version of MN PMU. The ITS (Interrupt Translation Service) PMU counts the number and latency of interrupts routed to the ITS by category (LPI/SGI/PPI), and collects micro-op statistics for the ITS itself. It supports filtering counters by a 32-bit interrupt id (int_id). The new MN PMU version (HIP13) adds a cycles event, used for MN metric computation. Changes: v5: - Reworked the ITS PMU global INT_ID filter handling per Sashiko review. Implement a get_event_idx() override that returns -EAGAIN when a newcomer disagrees with the currently-scheduled events on the filter, so perf time-multiplexes them instead of running them together. - Reset the global INT_ID filter to disabled at probe, so unfiltered events do not inherit a stale filter left by prior state. - Dropped the now-unused struct hisi_its_pmu wrapper, filter_lock and event->destroy callback. Link to v4: https://lore.kernel.org/all/20260724025238.3411328-1-wangyushan12@huawei.com/ Link to Sashiko review report: https://sashiko.dev/#/patchset/20260724025238.3411328-1-wangyushan12%40huawei.com v4: - Moved unnecessary cpuhp states for each PMU drivers to hisi_uncore_pmu framework as suggested by Robin. Link to v3: https://lore.kernel.org/all/20260713125647.2958626-1-wangyushan12@huawei.com/ Link to Sashiko review report: https://sashiko.dev/#/patchset/20260713125647.2958626-1-wangyushan12%40huawei.com v3: - Added check_filter callback to refuse new filtered events when there are already filtered ones running as per Sashiko. Link to v2: https://lore.kernel.org/all/20260612093812.1249049-1-wangyushan12@huawei.com/ Link to Sashiko review report: https://sashiko.dev/#/message/20260612093812.1249049-1-wangyushan12%40huawei.com v2: - Added int_en filter to tell if int_id is used, enabling filtering interrupt with 0 int_id per Sashiko. - Changed event format width to align with register width per Sashiko. Link to v1: https://lore.kernel.org/all/20260423152959.1458563-1-wangyushan12@huawei.com/ Link to Sashiko review report: https://sashiko.dev/#/patchset/20260423152959.1458563-1-wangyushan12%40huawei.com Yifan Wu (1): drivers/perf: hisi: Add cycle event for HIP13 MN PMU Yushan Wang (2): drivers/perf: hisi: Consolidate uncore PMU cpuhp states drivers/perf: hisi: Add support for uncore ITS PMU Documentation/admin-guide/perf/hisi-pmu.rst | 16 + drivers/perf/hisilicon/Makefile | 2 +- drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c | 34 +- drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c | 34 +- drivers/perf/hisilicon/hisi_uncore_hha_pmu.c | 34 +- drivers/perf/hisilicon/hisi_uncore_its_pmu.c | 379 ++++++++++++++++++ drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c | 21 +- drivers/perf/hisilicon/hisi_uncore_mn_pmu.c | 98 +++-- drivers/perf/hisilicon/hisi_uncore_noc_pmu.c | 35 +- drivers/perf/hisilicon/hisi_uncore_pa_pmu.c | 34 +- drivers/perf/hisilicon/hisi_uncore_pmu.c | 25 ++ drivers/perf/hisilicon/hisi_uncore_pmu.h | 2 + drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c | 34 +- drivers/perf/hisilicon/hisi_uncore_uc_pmu.c | 36 +- include/linux/cpuhotplug.h | 6 - 15 files changed, 519 insertions(+), 271 deletions(-) create mode 100644 drivers/perf/hisilicon/hisi_uncore_its_pmu.c -- 2.33.0