From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from canpmsgout03.his.huawei.com (canpmsgout03.his.huawei.com [113.46.200.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8E9A3546ED for ; Fri, 24 Jul 2026 02:52:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784861577; cv=none; b=hdyNpbLQJeIQWwpfvMMgI6sdjUHrphwbpE1zcN8m+oWWVyLwAmnwjX7eFSDlTXnmcb2wq14p+MUPDQ2Jl4zWt4vbiUfgDBythuVweKDQC2eUXcEmddYGVNftNjANnw4Ci/FZaq/3NU7id7XJAZXpuxmEhViI9xOaI8OJzCLdGeA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784861577; c=relaxed/simple; bh=RsY6qkIDx7jKzFq5KQlh92tfQ+gNonKOQACbI69c60A=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=WiH7PLW6SQx0l8IBvsoonSbLd5jYWWP8JVrREaxAEpKugXJAcAGwr+mbI2YZKJsjho3fbXOtJOwU7ssPas/Jo4qSEMrtiXl3ijx5kHIBue8jaBt9L3VykB0g1IYcTlr8waCvV3gj/pTF4xh725cA3RNNmk7k5FsXlwNRIU4Da7k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=dimSZeg3; arc=none smtp.client-ip=113.46.200.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="dimSZeg3" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=YLx/DaXtFgy0ZBTEdcOf94G5Dcuh3pVwNU27nxu5Qlg=; b=dimSZeg3Nkfv9aUVGlw42h1TxxN5pHAJyzjG2iYRoeN89lmPlqBZdmh6FNvuDBfpXI4PE4uv0 JPUxNWlzckxtU9L9E/WfzOCVevMM3mr7HnOWDgAK/Sl/vARRrDhtY1taJ4/zaLKfvli2xMtBPol ijulnY+uJwcbc7nSnwFiBTk= Received: from mail.maildlp.com (unknown [172.19.162.144]) by canpmsgout03.his.huawei.com (SkyGuard) with ESMTPS id 4h5skF2fTvzpSwg; Fri, 24 Jul 2026 10:43:33 +0800 (CST) Received: from whupemo500002.china.huawei.com (unknown [7.152.185.250]) by mail.maildlp.com (Postfix) with ESMTPS id 57AD940538; Fri, 24 Jul 2026 10:52:41 +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.1544.11; Fri, 24 Jul 2026 10:52:40 +0800 From: Yushan Wang To: , , , , CC: , , , , , , Subject: [PATCH v4 0/3] drivers/perf: hisi: Updates for HiSilicon uncore PMUs Date: Fri, 24 Jul 2026 10:52:35 +0800 Message-ID: <20260724025238.3411328-1-wangyushan12@huawei.com> X-Mailer: git-send-email 2.33.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: kwepems100002.china.huawei.com (7.221.188.206) To whupemo500002.china.huawei.com (7.152.185.250) This patchset added support of ITS PMU, and new version of MN PMU. ITS PMU supports counting number and latency of interrupts by category, and statistics of micro-ops of ITS. The new version of MN PMU added cycles event, to be used for MN metric computing. Changes: v4: - Moved unnecessary cpuhp states for each PMU drivers to hisi_uncore_pmu framework as suggested by Robin. - Reserve the ITS INT_ID filter slot for the lifetime of the event so concurrent or multiplexed events cannot clobber the global filter configuration. 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 | 13 + 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 | 400 ++++++++++++++++++ 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, 537 insertions(+), 271 deletions(-) create mode 100644 drivers/perf/hisilicon/hisi_uncore_its_pmu.c -- 2.33.0