Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3683245iog; Mon, 27 Jun 2022 23:57:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u+aBUZOmV9b8E413FVpEVOqznYW927h+o1SjDn3CIV/mbz7c3t8ajDKuzGo0j7dt6UmwAp X-Received: by 2002:a17:906:af12:b0:722:f9f0:cb75 with SMTP id lx18-20020a170906af1200b00722f9f0cb75mr16347840ejb.643.1656399427682; Mon, 27 Jun 2022 23:57:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656399427; cv=none; d=google.com; s=arc-20160816; b=zHbUiEj7VqmvpgU3PwFeMRN0lMFl5V7S7AzfpCO5Pxq35OdBOwzDw30uoWcvetcfwC kj7c5Cjb9/cpPh/vIGIAPTkx8n3W/J5JX/YQNdfj/Aad8qzmW8TnxFv5KuLR/nQh23xk iMiOf7AevNAwTSVGA+EbT9zjtu80hYfya7bcDhSmdmiaBlMKosAi6o+rlQ2oad3bJzu1 srbMXa0L7HS6dIN0EJqYHa5PqwJVHNHGexP6MDWQuOkDFftnflOfxOaULiVce6DAIxVQ 9CaB+aVeL0N9E3ERELJnPOvJ+YNO0Qtlhjn9kt9Zu6KzjPqdOhKRLlaJOpZM5K5UdLNW +NsA== 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=jFRdSDVboKgAxAKgCOCiVn3WmeKA2EseUEMLVffxkvs=; b=xSg9V8OYjgA5ZN5p01Ni/V2pYFOZBG+vjDZzH7KG6Xv1dQBNPVpm5YUTI/H86FyUh9 4ik7kiBzjKcCCIcs33+EG1NhWBrFP+7Ez/bFGROeLqPtxFP8Jwdy+4AHEAAj+vRm/FBI sBZ/a0oZHn7T1wpPgWxTfLgVWv9OkCjBruV4NgEXw+F2dde4sa8X+s+EEPvGfEhNdtO2 S17BDMBmWrmP0ev2G1FX3jxTM5owuT8kDOce0DM/6wTPake6XOQiu1GBGFzVBdVfCcsw h+pFpjD4qNaq2yb1YDVTYRPNh7LUphagOOGl+W7LVUiVYUfCt5W3YHhTPwIgZdM/Py2s 9gnA== 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 qa44-20020a17090786ac00b00707aefb3cc2si2912669ejc.510.2022.06.27.23.56.42; Mon, 27 Jun 2022 23:57: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 S245215AbiF1Gky (ORCPT + 99 others); Tue, 28 Jun 2022 02:40:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237733AbiF1Gkx (ORCPT ); Tue, 28 Jun 2022 02:40:53 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CF5065B8 for ; Mon, 27 Jun 2022 23:40:51 -0700 (PDT) Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4LXFMY1t5Dz9sxl; Tue, 28 Jun 2022 14:40:09 +0800 (CST) Received: from kwepemm600016.china.huawei.com (7.193.23.20) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 28 Jun 2022 14:40:48 +0800 Received: from localhost.localdomain (10.67.165.24) by kwepemm600016.china.huawei.com (7.193.23.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 28 Jun 2022 14:40:47 +0800 From: Guangbin Huang To: , , CC: , , , , , , , , Subject: [PATCH V8 0/2] drivers/perf: hisi: Add driver for HNS3 PMU Date: Tue, 28 Jun 2022 14:34:17 +0800 Message-ID: <20220628063419.38514-1-huangguangbin2@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.67.165.24] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600016.china.huawei.com (7.193.23.20) 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 This patch-set adds driver for HNS3(HiSilicon network system version 3) PMU and doc to descript it. Change logs: V7 -> V8: - remove overlapping fields 'event' and 'real_event' of config. - Link: https://lore.kernel.org/linux-arm-kernel/20220525005211.57059-1-huangguangbin2@huawei.com/ V6 -> V7: modify the comments of Will Deacon: - Modify format of event number shown for user. - Add a trailing space for func-intr when show filter mode. - Format the bdf number as the way "b:d.f" when show bdf_min and bdf_max. - Add subevent, event_type, ext_counter_used and real_event for hns3_pmu_format_attr[]. - Link: https://lore.kernel.org/linux-arm-kernel/20220427121000.56026-1-huangguangbin2@huawei.com/ V5 -> V6: - Modify prefix hns3_get into hns3_pmu_get. - Some switch cases return directly. - Modify failed log when io remap failed. - Link: https://lore.kernel.org/linux-arm-kernel/20220426132822.51735-1-huangguangbin2@huawei.com/ V4 -> V5: - Add COMPILE_TEST and include io-64-nonatomic-hi-lo.h as suggestion of John Garry. V3 -> V4: - Modify the comments of John Garry. - Link: https://lore.kernel.org/linux-arm-kernel/20220329113930.37631-1-huangguangbin2@huawei.com/ V2 -> V3: - Modify the comments of John Garry. - Link: https://lore.kernel.org/linux-arm-kernel/20220228123955.30284-1-huangguangbin2@huawei.com/ V1 -> V2: - Modify the comments of John Garry. - Link: https://lore.kernel.org/linux-arm-kernel/20220117015222.9617-1-huangguangbin2@huawei.com/ Guangbin Huang (2): drivers/perf: hisi: Add description for HNS3 PMU driver drivers/perf: hisi: add driver for HNS3 PMU Documentation/admin-guide/perf/hns3-pmu.rst | 136 ++ MAINTAINERS | 6 + drivers/perf/hisilicon/Kconfig | 10 + drivers/perf/hisilicon/Makefile | 1 + drivers/perf/hisilicon/hns3_pmu.c | 1671 +++++++++++++++++++ include/linux/cpuhotplug.h | 1 + 6 files changed, 1825 insertions(+) create mode 100644 Documentation/admin-guide/perf/hns3-pmu.rst create mode 100644 drivers/perf/hisilicon/hns3_pmu.c -- 2.33.0