Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4341748rwd; Tue, 23 May 2023 06:35:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5dwzrJbkNRgtRcUa1XQXkLnrJipeJttA1r2FI1vb0liAXb4DHTfWi0SfMb4sYfwNXdspsN X-Received: by 2002:a05:6a00:2daa:b0:64d:746b:b4ec with SMTP id fb42-20020a056a002daa00b0064d746bb4ecmr7380655pfb.17.1684848915132; Tue, 23 May 2023 06:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684848915; cv=none; d=google.com; s=arc-20160816; b=GsbHmNTTa2pMM/9GdJRi6IRbL4O1FcMotX2DeERkQhJGWVOusQwVu7Z/Wm1EwqkvJs VT08c01TLJMHJsQbjfDe0glswyGRcbMfuLgPTk6tycgwmE7vkiNgaoXZgdP76tgwQbun ifHILv4rnwwe1iityuLuOC1F4H7f6kxuLrW0uxowfZKxukKEvXq1PiX3Xh4itpxnTNx1 v5FXPHIG1BPf2bIBVX0SS8+i4l0kE/ikEXZbHrKNYB+i21dPSr46ITe8VZZEmeaEHUMu SVpFG5Xcc96z9Gu7bPAa8oQoE1So01mZew7IuDxRATOdKwymxvXNMdjoyQpX6ek+H/2K eC2g== 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=P8dNmVgXCUJIKrUzQlBFnqF4rFrVB+JYnV5+5Ku4Hvw=; b=In1YyPW3WFbXbRRUMOVmcIsGuvj0MgBf4WirM3srIAu3DzJovc74zG1kdiLK/MVWz5 9ntWAINgYB3gJLKucfcWmHQ5l/Jmhli4rFpN/yUFCll7bLl5fIWKf7J8IiC08YreI5Rm +lfqpkD17NlKIif5qtTDKUf8dUlHuilE1Vm6T06woR5Bz93IF9Aw6O15zBQdi55xdHVH k7hUH8/IBlabK9T7wZI8t405QDxsJMjCUJJ6/HlZTxgRe0ivPF5B/dcTlBWG1kjhur0k n+Gos7U17dFdA3I7h7NiwjbjFl7wo6AskJCohVInuf9IOlyZ+nNcJZ2r1ln03k8wm2i4 6WIA== 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 l72-20020a633e4b000000b0053ef158b0c3si911162pga.25.2023.05.23.06.34.57; Tue, 23 May 2023 06:35:15 -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 S236779AbjEWNUY (ORCPT + 99 others); Tue, 23 May 2023 09:20:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233330AbjEWNUW (ORCPT ); Tue, 23 May 2023 09:20:22 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5220120; Tue, 23 May 2023 06:20:20 -0700 (PDT) Received: from dggpeml500002.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4QQZZC4CZ8z18LYw; Tue, 23 May 2023 21:15:47 +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; Tue, 23 May 2023 21:20:15 +0800 From: Junhao He To: , , , CC: , , , , , , Subject: [PATCH 0/3] Add support for HiSilicon SoC uncore PMU Date: Tue, 23 May 2023 21:18:22 +0800 Message-ID: <20230523131825.6102-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, RCVD_IN_MSPIKE_H2,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. 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 | 138 ++++- drivers/perf/hisilicon/hisi_uncore_pmu.c | 5 +- drivers/perf/hisilicon/hisi_uncore_pmu.h | 42 +- drivers/perf/hisilicon/hisi_uncore_uc_pmu.c | 581 ++++++++++++++++++++ 6 files changed, 757 insertions(+), 19 deletions(-) create mode 100644 drivers/perf/hisilicon/hisi_uncore_uc_pmu.c -- 2.33.0