Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp549867rwd; Thu, 8 Jun 2023 04:46:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7XRUTCiK84/OnExyt8QnyIe0xgXVcJBBzTZsuBKkfjgkEFR3PjpNZIgLHh9Jvjjem+kcIN X-Received: by 2002:a92:d4c9:0:b0:337:8342:e6a5 with SMTP id o9-20020a92d4c9000000b003378342e6a5mr10595248ilm.31.1686224813435; Thu, 08 Jun 2023 04:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686224813; cv=none; d=google.com; s=arc-20160816; b=eIAd2qxTYMnFHNSRM/p0pseux5qQWrgL/+XOdlpBjXODXN0+G1OmWWar4HYfqrZyFu ljX216PIHFy7SJy9EBxXfEcIpuJNqADuVCa6Jj4rPAje5qJV9pjiryti4fTqGE6zXuEC qBfVIOpzbGQLyPVxoIojXkXuXOFCNWjImX9aFYLgfJAH4/CRIxBPztRJIIrE9ZbrhKeM 0Kbb8R/nsDtsrJaFjfiicIonLTRAcEBuUPypdH932jj2Wdspc3IoqNmxRYp1Q7C8ez03 6gpk8PXtzeIY9IdNzPwZjio0ZjM923zfo8/pUHvpYuZEOb1F+52HEmkZEzJetC9EpXUh v0Ig== 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=os4z09rI5HDCH7LIpNuY868NWp3fWyC6W8hzkRa3HZE=; b=UziNKdWJZ7ehEUJe1aAh9XEJGvIMZoBBhjUmcoqbzWz/5Idj/tOR7UjbmmtPD29hQg uV8Uzv1C7P7LNrA/Y+10+xknnkBMqTIhz8I07mwCw9V2DoTuuFFw+Z2eSin/y63LXJWZ KzeVTCL4fHM+Fd/e2wL0vd3twwMicNmveXJmvXMEGgHpoMNT0747Nwwpmh/8vIBe7lwM n5zDdJA6A9bnBXFaD3Rv0fV+9k1OdM4xF+timcgXM6A5ULDuTVA5+b/GVlJM8BxaKz1Z ZtE/XbPehMRsYKeDNLhHSU/5AeDtHkK9LzGX6kAiVKQODQ7Ltp53zV3snsb9nG73Pkod 16XA== 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 ot11-20020a17090b3b4b00b0025675c51fa1si2722255pjb.126.2023.06.08.04.46.38; Thu, 08 Jun 2023 04:46:53 -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 S235333AbjFHLj3 (ORCPT + 99 others); Thu, 8 Jun 2023 07:39:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233679AbjFHLjZ (ORCPT ); Thu, 8 Jun 2023 07:39:25 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB6481FEB; Thu, 8 Jun 2023 04:39:23 -0700 (PDT) Received: from dggpeml500002.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4QcMdY218gz25h5G; Thu, 8 Jun 2023 19:37:37 +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; Thu, 8 Jun 2023 19:39:21 +0800 From: Junhao He To: , , , CC: , , , , , , Subject: [PATCH v3 0/3] Add support for HiSilicon SoC uncore PMU Date: Thu, 8 Jun 2023 19:37:16 +0800 Message-ID: <20230608113719.27433-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: dggems705-chm.china.huawei.com (10.3.19.182) 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 v2: - Modify the driver description according to Jonathan's comment. Link: https://lore.kernel.org/linux-arm-kernel/20230531104625.18296-1-hejunhao3@huawei.com/ 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 | 578 ++++++++++++++++++++ 6 files changed, 732 insertions(+), 17 deletions(-) create mode 100644 drivers/perf/hisilicon/hisi_uncore_uc_pmu.c -- 2.33.0