Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp666118rwd; Wed, 31 May 2023 03:51:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ79Uzptz65vIsiMq86l0+Z7IX5MPTISP0O9n57Rol3+FEM1b7ec6Do0OWvt8pL1FUayPT7L X-Received: by 2002:a05:6a00:181c:b0:63b:8dcc:84de with SMTP id y28-20020a056a00181c00b0063b8dcc84demr5796310pfa.4.1685530267772; Wed, 31 May 2023 03:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685530267; cv=none; d=google.com; s=arc-20160816; b=BBG9xSgfUpSfCqsC4vc4KFko+fZCgrDAZwYEiLXZmu1p2vBeMbsPoyaGRLgnGMkhh2 m+vqSh9Gf4V82SSt5YrVDSTJpzYDPsaELjUxw5hO7JFDw4vuGyoXj3fkh7XsNgXrxhly 73tACtG/mgR1TBkxKpQtAbl1XYCvTCncHxMk9/2LCZCtNcfWAf+p2yuxkUzogrc/h7uy MF1AlYTHqoSZdb+rIx+rVpWNkbyOlMr1N5jGssohMcKmSUzYBXknkDZfmnXZB949zCvP pusxOiMpHzZW4eUtavTrfV77Uj3UcgCIfIAB72JI3oQiWfy2z8aFLWBCzZ3nNFzb5yxu rfLA== 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=yBCzejnVhu3F546ENZm4uNwMquH+/ZfogA1kKzF/h1I=; b=T3J8rcOWvSiXlBNCyT6m/i/m8JFa/Xpy/6OioomOU+7uODiR53VXkfbMulUy3luk3U SHxHLR/nlzK9ARVKOLF76YGV4W0QzZWE/ihjyMe/3fx3vMUCOJ/Otk0ElmnkcDRzLkCv JscQFNVTgmDz+DkfflTYTZukyf+W8YS/kFWz+uUQuEGT/XE+g7m5b3Zd78N+kK/Q8Y7v 2DitbQp7Dr2QSs2LUQX50Cv8ZT3rBLL4eF9ndWAWbR+H+w+lMvg118eMh/1wMie5BQu9 lOAEkYgxS1na2/pc5e6EQbNAt3Okz0ZdbR43lHr6FlrHAcyd4AUZyNU7su3hsOm4yext sbIA== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i28-20020aa796fc000000b0064d6ca382a1si3291864pfq.342.2023.05.31.03.50.54; Wed, 31 May 2023 03:51:07 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234588AbjEaKs2 (ORCPT + 99 others); Wed, 31 May 2023 06:48:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbjEaKs0 (ORCPT ); Wed, 31 May 2023 06:48:26 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 309AD129; Wed, 31 May 2023 03:48:24 -0700 (PDT) Received: from dggpeml500002.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QWQq31x7PzqTTD; Wed, 31 May 2023 18:43:43 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by dggpeml500002.china.huawei.com (7.185.36.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 31 May 2023 18:48:22 +0800 From: Junhao He To: , , , CC: , , , , , , Subject: [PATCH v2 0/3] Add support for HiSilicon SoC uncore PMU Date: Wed, 31 May 2023 18:46:22 +0800 Message-ID: <20230531104625.18296-1-hejunhao3@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500002.china.huawei.com (7.185.36.158) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Add support for HiSilicon UC/H60PA/PAv3 PMU driver. PAv3 PMU: Compared with the PAv2 PMU, the PAv3 PMU has different event. The version of PMU version register is used to distinguish the v2 and v3. H60PA PMU: The H60PA PMU and PA are two different devices. The H60PA PMU supports higher bandwidth, and the PA PMU delay is relatively low. Different HIDs are used to distinguish the delay. UC PMU: Each cluster is integrated with a unified cache (UC) PMU, which provides consistency between NUMA and UMA domains. It sits between L2 and the memory system. Change since v1: - Improve according to Yicong's suggestion - Fixes build warning of "-Wmissing-prototypes" Link: https://lore.kernel.org/lkml/20230523131825.6102-1-hejunhao3@huawei.com/ Junhao He (3): drivers/perf: hisi: Add support for HiSilicon H60PA and PAv3 PMU driver drivers/perf: hisi: Add support for HiSilicon UC PMU driver docs: perf: Add new description for HiSilicon UC PMU Documentation/admin-guide/perf/hisi-pmu.rst | 8 + drivers/perf/hisilicon/Makefile | 2 +- drivers/perf/hisilicon/hisi_uncore_pa_pmu.c | 142 ++++- drivers/perf/hisilicon/hisi_uncore_pmu.c | 4 +- drivers/perf/hisilicon/hisi_uncore_pmu.h | 15 + drivers/perf/hisilicon/hisi_uncore_uc_pmu.c | 577 ++++++++++++++++++++ 6 files changed, 731 insertions(+), 17 deletions(-) create mode 100644 drivers/perf/hisilicon/hisi_uncore_uc_pmu.c -- 2.33.0