Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1188198pxf; Fri, 9 Apr 2021 02:10:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNcoRZJ/mv61So3nA8q65Pk6e/MJipoxFJHVAW44ndfILAV2/Hiag/nM7tG04SPI7fRzWx X-Received: by 2002:a17:902:9a98:b029:e6:faf5:7bc2 with SMTP id w24-20020a1709029a98b02900e6faf57bc2mr12363397plp.61.1617959448932; Fri, 09 Apr 2021 02:10:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617959448; cv=none; d=google.com; s=arc-20160816; b=n3PMuFRoFuC0kQ6BndSgDMUFEm2huA8kBDZup8kVvJnpvICT/rJSvGW9x4Rlq70fXy HuHAcs4gcliCGPsz23G59I8ED++F0HmoBn2fU7fJjl+dLxrKcnEsZQ8xK4AGolYqdeiK r6wniviHjA9J+kPgZN29SjgfCsndVCYYkqWvqqzaSXwnCyzeywafl1Zgrfgukaxa6Okg nByZTIttfYwQSN+UzN3Nen23QL91eMWx1uVQ3g7v4RB6h/FmBizjbzBqqFxioJsM3QYG Td08cyR6B5bwIcPRI8/3/X4ByGTUnVaH6Yv/ar5o+m8ZHGK5zvMrbxGRF317W9wZsBAF 2BJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=ExB0NLjP0qdpiTLxucYdfUOjMHM0G5C4cyuQcUReL6s=; b=ODP9BtgbLuJ2P+NcessdqNDCNYq3sZkuPIVGvVZrFNx91A2RetCaHERYq6/mJWgYtE 7DGZZRGaOg370NMF0/svL4ZiCQ7x3kFu0KXqmA4+rG7ZJbTtRxXJ4x6S2ofwMqhapoQU d/lM+PWL8pLr4M7/ELUkGx7zWT0GKcbmU3YQwNLzb1Flv8g1mN7VYbi1bgnYh8QtY9YP zpdWCC2qV/BD9uYSdKrW/CfJquvH14DyOLR58jQsPKPipJZb561nqT7z+KZlBG2+J7Zl YkXQU6d7DMvZPc1NmczzRaSrOH+O+ar2Ue6l8JRFAlwu1iM4gygvMnuAhEsCXuStYj32 YNmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m16si3003516pfk.193.2021.04.09.02.10.37; Fri, 09 Apr 2021 02:10:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232256AbhDIJIy (ORCPT + 99 others); Fri, 9 Apr 2021 05:08:54 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:16501 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232332AbhDIJIw (ORCPT ); Fri, 9 Apr 2021 05:08:52 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FGsg20KLLzPmnf; Fri, 9 Apr 2021 17:05:50 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.498.0; Fri, 9 Apr 2021 17:08:32 +0800 From: Qi Liu To: , , CC: , , , , Subject: [PATCH v2 0/2] drivers/perf: hisi: Add support for PCIe PMU Date: Fri, 9 Apr 2021 17:05:55 +0800 Message-ID: <1617959157-22956-1-git-send-email-liuqi115@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds support for HiSilicon PCIe Performance Monitoring Unit(PMU). It is a PCIe Root Complex integrated End Point(RCiEP) device added on Hip09. Each PCIe Core has a PMU RCiEP to monitor multi root ports and all Endpoints downstream these root ports. HiSilicon PCIe PMU is supported to collect performance data of PCIe bus, such as: bandwidth, latency etc. Changes since v1: - Drop the internal Reviewed-by tag. - Fix some build warnings when W=1. Qi Liu (2): drivers/perf: hisi: Add driver for HiSilicon PCIe PMU docs: perf: Add description for HiSilicon PCIe PMU driver Documentation/admin-guide/perf/hisi-pcie-pmu.rst | 104 +++ MAINTAINERS | 6 + drivers/perf/Kconfig | 2 + drivers/perf/Makefile | 1 + drivers/perf/pci/Kconfig | 16 + drivers/perf/pci/Makefile | 2 + drivers/perf/pci/hisilicon/Makefile | 5 + drivers/perf/pci/hisilicon/hisi_pcie_pmu.c | 1011 ++++++++++++++++++++++ include/linux/cpuhotplug.h | 1 + 9 files changed, 1148 insertions(+) create mode 100644 Documentation/admin-guide/perf/hisi-pcie-pmu.rst create mode 100644 drivers/perf/pci/Kconfig create mode 100644 drivers/perf/pci/Makefile create mode 100644 drivers/perf/pci/hisilicon/Makefile create mode 100644 drivers/perf/pci/hisilicon/hisi_pcie_pmu.c -- 2.8.1