Message ID | 20230531104625.18296-1-hejunhao3@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2787940vqr; Wed, 31 May 2023 04:00:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7lhCowRYy1YGgYx6/3Yri+sA3SKovFvzXi9ph8fC4HWehwODrTj86nEncnJAFWrK0sLkJ6 X-Received: by 2002:a17:902:d2d0:b0:1ae:8fa:cd4c with SMTP id n16-20020a170902d2d000b001ae08facd4cmr15064795plc.7.1685530832472; Wed, 31 May 2023 04:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685530832; cv=none; d=google.com; s=arc-20160816; b=0eIvwvm51nzEkOSr/V807qDu9jjczfbeM9V0HPtGNcG/AYzohU9K+XEJBeZy9ErRQB vA1J+dpPc71+lFfXwxvRmG0v6TnpX0Awko0Tb23FYsm/KhQA6iZ75E4HHHaWdbG3vH4T 3xMF70SbLF2DkZnv7lkuBuAbYelZmunnjqRS48xuORpO5nE3BJRh36ywBkDGj4W2QinY 8weay9Mp6krJmKvmpr9/vLBHxomrwUSbnK1uuYRzx/x33LA359wsCHG/ZVyeQoILIQ83 jGqPnlJsBtp4Xxrx5KQX6unpyNNpMje6/vX0zGYnX/F6KuvWZS2GawVV+5t0gu/MSIWd niGg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h185-20020a6383c2000000b00528a60cc065si823876pge.380.2023.05.31.04.00.17; Wed, 31 May 2023 04:00:32 -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 S234672AbjEaKs3 (ORCPT <rfc822;andrewvogler123@gmail.com> + 99 others); Wed, 31 May 2023 06:48:29 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <hejunhao3@huawei.com> To: <will@kernel.org>, <jonathan.cameron@huawei.com>, <linux-kernel@vger.kernel.org>, <mark.rutland@arm.com> CC: <linux-arm-kernel@lists.infradead.org>, <linux-doc@vger.kernel.org>, <linuxarm@huawei.com>, <yangyicong@huawei.com>, <shenyang39@huawei.com>, <prime.zeng@hisilicon.com>, <hejunhao3@huawei.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767407178298819114?= X-GMAIL-MSGID: =?utf-8?q?1767407178298819114?= |
Series | Add support for HiSilicon SoC uncore PMU | |
Message
hejunhao
May 31, 2023, 10:46 a.m. UTC
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