Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp1547065lkv; Wed, 19 May 2021 12:28:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPe9Xqu0FPeShpW5VYaR6rmjjRSyJcblL64eNZ1CEJPqY8kC3PNdvXBvi3xtkTMFBc/eyi X-Received: by 2002:aa7:db95:: with SMTP id u21mr691145edt.152.1621452519934; Wed, 19 May 2021 12:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621452519; cv=none; d=google.com; s=arc-20160816; b=LgeF7bhV1PDP4bOdlS5P+9mtn86RUMtvW1kZWDFzaa/TL9zfYvQ+uZjj5xYQBgx1D+ ULuM9rhggeoEWyhZuAu4qKa2YKg/XNwdHmUNthd7BmAGufLDRJdEruh9KRxZKq9moeSb If86LkoCIKS8qrkondK0OTW6WaSsUXZfn/ttNvEx0B179002sfiKsQdpE/KZ5+Vz+sNV 9aYHOd6NUX4bCnqTdnryVuF2p/cHNB0J71Y7jJWVwHUgjoW3I+YDMhcDCMDXhtynMyxI PET6T/CDJ4EYgOHbd4SKAIeEQVO5hvD+neX4GLPJNhszjBAalJMEtbofQNBoqN8dFQVF 9Vkw== 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=B0XAVxrzTKmYT0vrQjhR1X9W8BA1XcXK1PBtLe9OtWg=; b=T2On6BQwNLdgjFZc76T1Yf10r+2lGIyHRW1PgflmAvPca6H2RroBUQ1tSOBQpwkQkP asElGP16kOblXgCvdi583MXDNqjwl098eWNHijKEGhR0FZfCXmClfL/PBOxoiSGQmpqz 3JhhWt7y4RZvS3lLp9LsAk/9P+nFjDR8LvHmZSJV6wTjNGo0ncuZj5fPzJymTqww2E/m T+SV6GINs3lr+zj4erFj60YTdFxQT78/YMuI1WFC/WUKpw3XE6KYLEgzyDb01Wyxi7fy 2/RVEzuqOLaibAVvkcLsPwgRGj+lvOaygi/vKEQszGamiQvBROT4MXKvcNSkO4HHkSaq hKag== 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 p5si126627edt.42.2021.05.19.12.28.16; Wed, 19 May 2021 12:28:39 -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 S244182AbhESJvU (ORCPT + 99 others); Wed, 19 May 2021 05:51:20 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4746 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232373AbhESJvK (ORCPT ); Wed, 19 May 2021 05:51:10 -0400 Received: from dggems701-chm.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FlSgF5bJfzpfPd; Wed, 19 May 2021 17:46:17 +0800 (CST) Received: from dggema757-chm.china.huawei.com (10.1.198.199) by dggems701-chm.china.huawei.com (10.3.19.178) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Wed, 19 May 2021 17:49:47 +0800 Received: from localhost.localdomain (10.69.192.56) by dggema757-chm.china.huawei.com (10.1.198.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 19 May 2021 17:49:46 +0800 From: Qi Liu To: , , CC: , , , , Subject: [PATCH v4 0/2] drivers/perf: hisi: Add support for PCIe PMU Date: Wed, 19 May 2021 17:48:59 +0800 Message-ID: <1621417741-5229-1-git-send-email-liuqi115@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggema757-chm.china.huawei.com (10.1.198.199) 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. This patchset is based on 5.13-rc1. Changes since v3: - Fix some warnings when build under 32bits architecture. - Address the comments from John. - Link: https://lore.kernel.org/linux-arm-kernel/1618490885-44612-1-git-send-email-liuqi115@huawei.com/ Changes since v2: - Address the comments from John. - Link: https://lore.kernel.org/linux-arm-kernel/1617959157-22956-1-git-send-email-liuqi115@huawei.com/ Changes since v1: - Drop the internal Reviewed-by tag. - Fix some build warnings when W=1. - Link: https://lore.kernel.org/linux-arm-kernel/1617788943-52722-1-git-send-email-liuqi115@huawei.com/ Qi Liu (2): docs: perf: Add description for HiSilicon PCIe PMU driver drivers/perf: hisi: Add driver for HiSilicon PCIe PMU 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 | 3 + drivers/perf/pci/hisilicon/hisi_pcie_pmu.c | 1016 ++++++++++++++++++++++ include/linux/cpuhotplug.h | 1 + 9 files changed, 1151 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.7.4