Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3549704ioo; Wed, 25 May 2022 03:13:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfB/N4xG1GCxoRi2xysPvGy1YihyvIyv2FZEO1hV5eX+z6TcYrvH2oDPotfEApynZMrUG8 X-Received: by 2002:a17:907:728d:b0:6f4:5a83:a616 with SMTP id dt13-20020a170907728d00b006f45a83a616mr28543351ejc.297.1653473634840; Wed, 25 May 2022 03:13:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653473634; cv=none; d=google.com; s=arc-20160816; b=ut1zcqD2LJby3OXA7kS1ybQpg+WeESFRGlboF2no0BxNkby0YyrqxvYkAGRxJr3RV6 MZAXKF5nK6zaDo4ezBilcGLdlFHmJrUxBctpiyKUddJofHCCUrBmAlBDDWgxUsPhEy0T qhvFBHzIaORG7aaClrSWsR5H8AxPonj1hUaNoDuEAkE+JR/6sSEEvTgMGr2MZFMQuNAR 6vhSq9/MqRWdyO6jIypC/FnvYxIGefwnxrgLLlzgG472kd8zfBSITEMdh06r3RsbGyAV cMtQqm6KXbp7fd/H0RYLSadIWvqlyUMUgUlewO3M/KxMQAZKHKGfkZhPHwHE5sDJZef1 EDmA== 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=0oktqsUQc7f0aU7jz8ai7IDnbNezVLjdjQdElfQ+b3o=; b=dR2gSONhBGqN1FkRmolBxLwT+yGzAWmhebO1CcZHbaRCv75XEwLr9XgnWKgVTAVSM7 B6puPaWmHt5DFmQP5MmktEhrp7ZM/dOcGdUOtqEuTmaFPNrDj7NzaITOu5C8KltyNGwU k5DQXNpTekJAllR48+JULSQElFk1kMI9xDVJVkf20mVHxb7s7tcvPAMp1IDnAnwQJsZO hQXB3Uyu1fcJY9cjpR6szZa4LaNFNdLUtyfobMKn9Lb0hrtwfLL187iaobwRHCWVu3N9 66Jsl12AG8w4yYMfN4kyBKs+NT3YlqTgD212iKOemWbhXwWLKAEtpu1UBHC50lnQJMI7 zLdg== 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 da3-20020a056402176300b0042ab7a5cabcsi19159246edb.214.2022.05.25.03.13.28; Wed, 25 May 2022 03:13:54 -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 S242404AbiEYA6Q (ORCPT + 99 others); Tue, 24 May 2022 20:58:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242288AbiEYA6P (ORCPT ); Tue, 24 May 2022 20:58:15 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB7CD60AA5 for ; Tue, 24 May 2022 17:58:13 -0700 (PDT) Received: from kwepemi500015.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4L7CLx4ldvz1JBsv; Wed, 25 May 2022 08:56:41 +0800 (CST) Received: from kwepemm600016.china.huawei.com (7.193.23.20) by kwepemi500015.china.huawei.com (7.221.188.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 25 May 2022 08:58:11 +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; Wed, 25 May 2022 08:58:10 +0800 From: Guangbin Huang To: , , CC: , , , , , , , , Subject: [RESEND PATCH V7 0/2] drivers/perf: hisi: Add driver for HNS3 PMU Date: Wed, 25 May 2022 08:52:09 +0800 Message-ID: <20220525005211.57059-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: dggems705-chm.china.huawei.com (10.3.19.182) 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 Resend this patch-set for adding reviewed-by of John Garry and Shaokun Zhang. This patch-set adds driver for HNS3(HiSilicon network system version 3) PMU and doc to descript it. Change logs: 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 | 1662 +++++++++++++++++++ include/linux/cpuhotplug.h | 1 + 6 files changed, 1816 insertions(+) create mode 100644 Documentation/admin-guide/perf/hns3-pmu.rst create mode 100644 drivers/perf/hisilicon/hns3_pmu.c -- 2.33.0