Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2626724pxj; Mon, 31 May 2021 06:53:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUK18Gxc/GlXcblmOTyRrdnKPU7byD8OH4GtKi5+6eYE4M65965Fh9v6kUcO7r8wMcy08w X-Received: by 2002:a05:6e02:1313:: with SMTP id g19mr1427807ilr.117.1622469235687; Mon, 31 May 2021 06:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622469235; cv=none; d=google.com; s=arc-20160816; b=eht34r8TS63qjeS+GLU+pQ5hHni7qheOeqlv5WHYBAFqy6nazPV/JYFOi/Afh0q6th P1agUkKeRKngsIqx9EE+VFyJJ0ew7UAi3smuKPSp1bqaBlMmG8O1arQlKUSabhK5UBO0 0wJuEpVlGImX0Flc3T9Ip0uukamdsyx4A1Ky42i9/svAOXLeMS2EsTSc/ZAPa6ELsxGT 9nubq/N4tF4hYdNH/InG2AOAUC2OIfE6w1IVinr5l/xQGDEwbamINRwINVj6hwDxTxMa NwmJ/Z9rUcEJj2q5bCEzT0kBfTbJDc0fT4JnkewDX4uTdoayRnLOk5KccCwR0dSLdfxa 94Vg== 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=959Q6b7EBWsn7Y1t7Q5HpSKziQIEBw9xbfgqf+o5lE4=; b=tOxHRrPFYezqe/YD1Nabaxlb64dFCTAicpU/GWOLE28pyYAFNXaPxEd16wW5vgf3x7 k/Vq3RoErxeiTa+MJegoePO92WC07B/SzL+XihoOPWWIdSS2EtZjaPeNhz2z1BM8390n oLKkohw/bFyjj5Sn2W1ONCEt4Ychnl/Lk6HUuIXSxLNsaZ4Dt2/AG/Br/8SpKYQ0xsaC fbDd2j4M8P2X/PHMHrebySsOcAMMdlnO1yeo28tCLq5zOT0RxYVdI1QFSisiXg5MSFQz 21uKJ2Sz32Qx2wr99jaL8PW5D2/Kf5zsB4Brvk5736kL8LbPjeMmUyVJ5PKVrzlSh7dN A9+A== 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 p31si16130158jac.95.2021.05.31.06.53.42; Mon, 31 May 2021 06:53:55 -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 S232936AbhEaNxD (ORCPT + 99 others); Mon, 31 May 2021 09:53:03 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:2919 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231810AbhEaNft (ORCPT ); Mon, 31 May 2021 09:35:49 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Ftx4y4WTDz66jj; Mon, 31 May 2021 21:30:58 +0800 (CST) Received: from dggema757-chm.china.huawei.com (10.1.198.199) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Mon, 31 May 2021 21:33:54 +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; Mon, 31 May 2021 21:33:54 +0800 From: Qi Liu To: , , CC: , , , , Subject: [PATCH v6 0/2] drivers/perf: hisi: Add support for PCIe PMU Date: Mon, 31 May 2021 21:32:29 +0800 Message-ID: <1622467951-32114-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: dggems706-chm.china.huawei.com (10.3.19.183) 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-rc3. Changes since v5: - Fix some errors when build under ARCH=xtensa. - Link: https://lore.kernel.org/linux-arm-kernel/1621946795-14046-1-git-send-email-liuqi115@huawei.com/ Changes since v4: - Replace irq_set_affinity_hint() with irq_set_affinity(). - Link: https://lore.kernel.org/linux-arm-kernel/1621417741-5229-1-git-send-email-liuqi115@huawei.com/ 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 | 1019 ++++++++++++++++++++++ include/linux/cpuhotplug.h | 1 + 9 files changed, 1154 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