Add driver support for HiSilicon PCIe Tune and Trace device
Subsystems (7)
v12 cover Add driver support for HiSilicon PCIe Tune and Trace device
From: Yicong Yang <[email protected]>
HiSilicon PCIe tune and trace device (PTT) is a PCIe Root Complex integrated Endpoint (RCiEP) device, providing the capability to dynamically monitor and tune the PCIe traffic (tune), and trace the TLP headers (trace).
PTT tune is designed for monitoring and adjusting PCIe link parameters. We provide several parameters of the PCIe link. Through the driver, user can adjust the value of certain parameter to affect the PCIe link for the purpose of enhancing the performance in certian situation.
PTT trace is designed for dumping the TLP headers to the memory, which can be used to analyze the transactions and usage condition of the PCIe Link. Users can choose filters to trace headers, by either requester ID, or those downstream of a set of Root Ports on the same core of the PTT device. It's also supported to trace the headers of certain type and of certain direction.
The driver registers a PMU device for each PTT device. The trace can be used through perf record and the traced headers can be decoded by perf report. The tune can be used through the sysfs attributes of related PMU device. See the documentation for the detailed usage.
This patchset adds an initial driver support for the PTT device. The userspace perf tool support will be sent in a separate patchset.
Change since v11:
- Drop WARN_ON() for irq_set_affinity() failure per Greg
- Split out userspace perf support patches according to the comments
Change since v10:
- Use title case in the documentation
- Add RB from Bagas, thanks.
Change since v9:
- Add sysfs ABI description documentation
- Remove the controversial available_{root_port, requester}_filters sysfs file
- Shorten 2 tune sysfs attributes name and add some comments
- Move hisi_ptt_process_auxtrace_info() to Patch 6.
- Add RB from Leo and Ack-by from Mathieu, thanks!
Change since v8:
- Cleanups and one minor fix from Jonathan and John, thanks
Change since v7:
- Configure the DMA in probe rather than in runtime. Also use devres to manage PMU device as we have no order problem now
- Refactor the config validation function per John and Leo
- Use a spinlock hisi_ptt::pmu_lock instead of mutex to serialize the perf process in pmu::start as it's in atomic context
- Only commit the traced data when stop, per Leo and James
- Drop the filter dynamically updating patch from this series to simply the review of the driver. That patch will be send separately.
- add a cpumask sysfs attribute and handle the cpu hotplug events, follow the uncore PMU convention
- Other cleanups and fixes, both in driver and perf tool
Change since v6:
- Fix W=1 errors reported by lkp test, thanks
Change since v5:
- Squash the PMU patch into PATCH 2 suggested by John
- refine the commit message of PATCH 1 and some comments
Change since v4:
Address the comments from Jonathan, John and Ma Ca, thanks.
- Use devm* also for allocating the DMA buffers
- Remove the IRQ handler stub in Patch 2
- Make functions waiting for hardware state return boolean
- Manual remove the PMU device as it should be removed first
- Modifier the orders in probe and removal to make them matched well
- Make available {directions,type,format} array const and non-global
- Using the right filter list in filters show and well protect the list with mutex
- Record the trace status with a boolean @started rather than enum
- Optimize the process of finding the PTT devices of the perf-tool
Change since v3:
Address the comments from Jonathan and John, thanks.
- drop members in the common struct which can be get on the fly
- reduce buffer struct and organize the buffers with array instead of list
- reduce the DMA reset wait time to avoid long time busy loop
- split the available_filters sysfs attribute into two files, for root port and requester respectively. Update the documentation accordingly
- make IOMMU mapping check earlier in probe to avoid race condition. Also make IOMMU quirk patch prior to driver in the series
- Cleanups and typos fixes from John and Jonathan
Change since v2:
- address the comments from Mathieu, thanks.
- rename the directory to ptt to match the function of the device
- spinoff the declarations to a separate header
- split the trace function to several patches
- some other comments.
- make default smmu domain type of PTT device to identity Drop the RMR as it's not recommended and use an iommu_def_domain_type quirk to passthrough the device DMA as suggested by Robin.
Change since v1:
- switch the user interface of trace to perf from debugfs
- switch the user interface of tune to sysfs from debugfs
- add perf tool support to start trace and decode the trace data
- address the comments of documentation from Bjorn
- add RMR[1] support of the device as trace works in RMR mode or direct DMA mode. RMR support is achieved by common APIs rather than the APIs implemented in [1].
[1] https://lore.kernel.org/linux-acpi/[email protected]/
Yicong Yang (5):
iommu/arm-smmu-v3: Make default domain type of HiSilicon PTT device to
identity
hwtracing: hisi_ptt: Add trace function support for HiSilicon PCIe
Tune and Trace device
hwtracing: hisi_ptt: Add tune function support for HiSilicon PCIe Tune
and Trace device
docs: trace: Add HiSilicon PTT device driver documentation
MAINTAINERS: Add maintainer for HiSilicon PTT driver
.../ABI/testing/sysfs-devices-hisi_ptt | 61 + Documentation/trace/hisi-ptt.rst | 298 +++++ Documentation/trace/index.rst | 1 + MAINTAINERS | 8 + drivers/Makefile | 1 + drivers/hwtracing/Kconfig | 2 + drivers/hwtracing/ptt/Kconfig | 12 + drivers/hwtracing/ptt/Makefile | 2 + drivers/hwtracing/ptt/hisi_ptt.c | 1047 +++++++++++++++++ drivers/hwtracing/ptt/hisi_ptt.h | 200 ++++ drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 21 + 11 files changed, 1653 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-hisi_ptt create mode 100644 Documentation/trace/hisi-ptt.rst create mode 100644 drivers/hwtracing/ptt/Kconfig create mode 100644 drivers/hwtracing/ptt/Makefile create mode 100644 drivers/hwtracing/ptt/hisi_ptt.c create mode 100644 drivers/hwtracing/ptt/hisi_ptt.h
Signature · 1 line
2.24.0
PATCH v12 1/5 iommu/arm-smmu-v3: Make default domain type of HiSilicon PTT device to identity
From: Yicong Yang <[email protected]>
The DMA operations of HiSilicon PTT device can only work properly with identical mappings. So add a quirk for the device to force the domain as passthrough.
--- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +21 -0
@@ -2817,6 +2817,26 @@ static int arm_smmu_dev_disable_feature(struct device *dev, } } +/* +* HiSilicon PCIe tune and trace device can be used to trace TLP headers on the +* PCIe link and save the data to memory by DMA. The hardware is restricted to +* use identity mapping only. +*/ +#define IS_HISI_PTT_DEVICE (pdev) ((pdev)->vendor == PCI_VENDOR_ID_HUAWEI && \ + (pdev)->device == 0xa12e) + +static int arm_smmu_def_domain_type (struct device *dev) +{ +if (dev_is_pci (dev)) { +struct pci_dev *pdev =to_pci_dev (dev); + +if (IS_HISI_PTT_DEVICE (pdev)) +return IOMMU_DOMAIN_IDENTITY ; + } + +return 0 ; +} +static struct iommu_ops arm_smmu_ops = { .capable = arm_smmu_capable, .domain_alloc = arm_smmu_domain_alloc,
@@ -2831,6 +2851,7 @@ static struct iommu_ops arm_smmu_ops = { .sva_unbind = arm_smmu_sva_unbind, .sva_get_pasid = arm_smmu_sva_get_pasid, .page_response = arm_smmu_page_response, + .def_domain_type = arm_smmu_def_domain_type, .pgsize_bitmap = -1UL, /* Restricted during device attach */ .owner = THIS_MODULE, .default_domain_ops = &(const struct iommu_domain_ops ) {
Signature · 1 line
2.24.0
PATCH v12 2/5 hwtracing: hisi_ptt: Add trace function support for HiSilicon PCIe Tune and Trace device
In reply to Yicong YangFrom: Yicong Yang <[email protected]>
HiSilicon PCIe tune and trace device(PTT) is a PCIe Root Complex integrated Endpoint(RCiEP) device, providing the capability to dynamically monitor and tune the PCIe traffic and trace the TLP headers.
Add the driver for the device to enable the trace function. Register PMU device of PTT trace, then users can use trace through perf command. The driver makes use of perf AUX trace function and support the following events to configure the trace:
- filter: select Root port or Endpoint to trace
- type: select the type of traced TLP headers
- direction: select the direction of traced TLP headers
- format: select the data format of the traced TLP headers
This patch initially add basic trace support of PTT device.
--- drivers/Makefile | 1 + drivers/hwtracing/Kconfig | 2 + drivers/hwtracing/ptt/Kconfig | 12 + drivers/hwtracing/ptt/Makefile | 2 + drivers/hwtracing/ptt/hisi_ptt.c | 916 +++++++++++++++++++++++++++++++ drivers/hwtracing/ptt/hisi_ptt.h | 177 ++++++ 6 files changed, 1110 insertions(+) create mode 100644 drivers/hwtracing/ptt/Kconfig create mode 100644 drivers/hwtracing/ptt/Makefile create mode 100644 drivers/hwtracing/ptt/hisi_ptt.c create mode 100644 drivers/hwtracing/ptt/hisi_ptt.h
drivers/Makefile +1 -0
@@ -175,6 +175,7 @@ obj-$(CONFIG_USB4) += thunderbolt/ obj-$(CONFIG_CORESIGHT) += hwtracing/coresight/ obj-y += hwtracing/intel_th/ obj-$(CONFIG_STM) += hwtracing/stm/ +obj-$(CONFIG_HISI_PTT) += hwtracing/ptt/ obj-y += android/ obj-$(CONFIG_NVMEM) += nvmem/ obj-$(CONFIG_FPGA) += fpga/
drivers/hwtracing/Kconfig +2 -0
@@ -5,4 +5,6 @@ source "drivers/hwtracing/stm/Kconfig" source "drivers/hwtracing/intel_th/Kconfig" +source "drivers/hwtracing/ptt/Kconfig" + endmenu
drivers/hwtracing/ptt/Kconfig new file +12 -0
@@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0-only +config HISI_PTT + tristate "HiSilicon PCIe Tune and Trace Device" + depends on ARM64 || (COMPILE_TEST && 64BIT) + depends on PCI && HAS_DMA && HAS_IOMEM && PERF_EVENTS + help + HiSilicon PCIe Tune and Trace device exists as a PCIe RCiEP + device, and it provides support for PCIe traffic tuning and + tracing TLP headers to the memory. + + This driver can also be built as a module. If so, the module + will be called hisi_ptt.
drivers/hwtracing/ptt/Makefile new file +2 -0
@@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +obj-$(CONFIG_HISI_PTT) += hisi_ptt.o
drivers/hwtracing/ptt/hisi_ptt.c new file +916 -0
916 lines not on this page · raw message
drivers/hwtracing/ptt/hisi_ptt.h new file +177 -0
177 lines not on this page · raw message
Signature · 1 line
2.24.0
PATCH v12 3/5 hwtracing: hisi_ptt: Add tune function support for HiSilicon PCIe Tune and Trace device
In reply to Yicong YangFrom: Yicong Yang <[email protected]>
Add tune function for the HiSilicon Tune and Trace device. The interface of tune is exposed through sysfs attributes of PTT PMU device.
--- drivers/hwtracing/ptt/hisi_ptt.c | 131 +++++++++++++++++++++++++++++++ drivers/hwtracing/ptt/hisi_ptt.h | 23 ++++++ 2 files changed, 154 insertions(+)
drivers/hwtracing/ptt/hisi_ptt.c +131 -0
@@ -25,6 +25,135 @@/* Dynamic CPU hotplug state used by PTT */ static enum cpuhp_state hisi_ptt_pmu_online; +static bool hisi_ptt_wait_tuning_finish (struct hisi_ptt *hisi_ptt) +{ +u32 val; + +return !readl_poll_timeout (hisi_ptt->iobase +HISI_PTT_TUNING_INT_STAT , + val, !(val &HISI_PTT_TUNING_INT_STAT_MASK ), +HISI_PTT_WAIT_POLL_INTERVAL_US , +HISI_PTT_WAIT_TUNE_TIMEOUT_US ); +} + +static ssize_t hisi_ptt_tune_attr_show (struct device *dev, +struct device_attribute *attr, +char *buf) +{ +struct hisi_ptt *hisi_ptt =to_hisi_ptt (dev_get_drvdata (dev)); +struct dev_ext_attribute *ext_attr; +struct hisi_ptt_tune_desc *desc; +u32 reg; +u16 val; + + ext_attr = container_of(attr, struct dev_ext_attribute, attr); + desc = ext_attr->var; + +mutex_lock (&hisi_ptt->tune_lock); + + reg =readl (hisi_ptt->iobase +HISI_PTT_TUNING_CTRL ); + reg &= ~(HISI_PTT_TUNING_CTRL_CODE |HISI_PTT_TUNING_CTRL_SUB ); + reg |=FIELD_PREP (HISI_PTT_TUNING_CTRL_CODE |HISI_PTT_TUNING_CTRL_SUB , + desc->event_code); +writel (reg, hisi_ptt->iobase +HISI_PTT_TUNING_CTRL ); + +/* Write all 1 to indicates it's the read process */ +writel (~0U , hisi_ptt->iobase +HISI_PTT_TUNING_DATA ); + +if (!hisi_ptt_wait_tuning_finish (hisi_ptt)) { +mutex_unlock (&hisi_ptt->tune_lock); +return -ETIMEDOUT ; + } + + reg =readl (hisi_ptt->iobase +HISI_PTT_TUNING_DATA ); + reg &=HISI_PTT_TUNING_DATA_VAL_MASK ; + val =FIELD_GET (HISI_PTT_TUNING_DATA_VAL_MASK , reg); + +mutex_unlock (&hisi_ptt->tune_lock); +return sysfs_emit (buf,"%u\n" , val); +} + +static ssize_t hisi_ptt_tune_attr_store (struct device *dev, +struct device_attribute *attr, +const char *buf,size_t count) +{ +struct hisi_ptt *hisi_ptt =to_hisi_ptt (dev_get_drvdata (dev)); +struct dev_ext_attribute *ext_attr; +struct hisi_ptt_tune_desc *desc; +u32 reg; +u16 val; + + ext_attr = container_of(attr, struct dev_ext_attribute, attr); + desc = ext_attr->var; + +if (kstrtou16 (buf,10 , &val)) +return -EINVAL ; + +mutex_lock (&hisi_ptt->tune_lock); + + reg =readl (hisi_ptt->iobase +HISI_PTT_TUNING_CTRL ); + reg &= ~(HISI_PTT_TUNING_CTRL_CODE |HISI_PTT_TUNING_CTRL_SUB ); + reg |=FIELD_PREP (HISI_PTT_TUNING_CTRL_CODE |HISI_PTT_TUNING_CTRL_SUB , + desc->event_code); +writel (reg, hisi_ptt->iobase +HISI_PTT_TUNING_CTRL ); +writel (FIELD_PREP (HISI_PTT_TUNING_DATA_VAL_MASK , val), + hisi_ptt->iobase +HISI_PTT_TUNING_DATA ); + +if (!hisi_ptt_wait_tuning_finish (hisi_ptt)) { +mutex_unlock (&hisi_ptt->tune_lock); +return -ETIMEDOUT ; + } + +mutex_unlock (&hisi_ptt->tune_lock); +return count; +} + +#define HISI_PTT_TUNE_ATTR (_name, _val, _show, _store) \ + static struct hisi_ptt_tune_desc _name##_desc = { \ + .name = #_name, \ + .event_code = (_val), \ + }; \ + static struct dev_ext_attribute hisi_ptt_##_name##_attr = { \ + .attr = __ATTR(_name, 0600, _show, _store), \ + .var = &_name##_desc, \ + } + +#define HISI_PTT_TUNE_ATTR_COMMON (_name, _val) \ + HISI_PTT_TUNE_ATTR(_name, _val, \ + hisi_ptt_tune_attr_show, \ + hisi_ptt_tune_attr_store) + +/* +* The value of the tuning event are composed of two parts: main event code +* in BIT[0,15] and subevent code in BIT[16,23]. For example, qox_tx_cpl is +* a subevent of 'Tx path QoS control' which for tuning the weight of Tx +* completion TLPs. See hisi_ptt.rst documentation for more information. +*/ +#define HISI_PTT_TUNE_QOS_TX_CPL (0x4 | (3 << 16)) +#define HISI_PTT_TUNE_QOS_TX_NP (0x4 | (4 << 16)) +#define HISI_PTT_TUNE_QOS_TX_P (0x4 | (5 << 16)) +#define HISI_PTT_TUNE_RX_ALLOC_BUF_LEVEL (0x5 | (6 << 16)) +#define HISI_PTT_TUNE_TX_ALLOC_BUF_LEVEL (0x5 | (7 << 16)) + +HISI_PTT_TUNE_ATTR_COMMON (qos_tx_cpl,HISI_PTT_TUNE_QOS_TX_CPL ); +HISI_PTT_TUNE_ATTR_COMMON (qos_tx_np,HISI_PTT_TUNE_QOS_TX_NP ); +HISI_PTT_TUNE_ATTR_COMMON (qos_tx_p,HISI_PTT_TUNE_QOS_TX_P ); +HISI_PTT_TUNE_ATTR_COMMON (rx_alloc_buf_level,HISI_PTT_TUNE_RX_ALLOC_BUF_LEVEL ); +HISI_PTT_TUNE_ATTR_COMMON (tx_alloc_buf_level,HISI_PTT_TUNE_TX_ALLOC_BUF_LEVEL ); + +static struct attribute *hisi_ptt_tune_attrs[] = { + &hisi_ptt_qos_tx_cpl_attr.attr.attr, + &hisi_ptt_qos_tx_np_attr.attr.attr, + &hisi_ptt_qos_tx_p_attr.attr.attr, + &hisi_ptt_rx_alloc_buf_level_attr.attr.attr, + &hisi_ptt_tx_alloc_buf_level_attr.attr.attr, +NULL , +}; + +static struct attribute_group hisi_ptt_tune_group = { + .name ="tune" , + .attrs = hisi_ptt_tune_attrs, +}; +static u16 hisi_ptt_get_filter_val (u16 devid,bool is_port) {if (is_port)
@@ -393,6 +522,7 @@ static struct attribute_group hisi_ptt_pmu_format_group = {static const struct attribute_group *hisi_ptt_pmu_groups[] = { &hisi_ptt_cpumask_attr_group, &hisi_ptt_pmu_format_group, + &hisi_ptt_tune_group,NULL };
@@ -727,6 +857,7 @@ static int hisi_ptt_register_pmu(struct hisi_ptt *hisi_ptt)if (ret)return ret; +mutex_init (&hisi_ptt->tune_lock);spin_lock_init (&hisi_ptt->pmu_lock); hisi_ptt->hisi_ptt_pmu = (struct pmu ) {
drivers/hwtracing/ptt/hisi_ptt.h +23 -0
@@ -12,6 +12,7 @@#include <linux/bits.h> #include <linux/cpumask.h> #include <linux/list.h> +#include <linux/mutex.h> #include <linux/pci.h> #include <linux/perf_event.h> #include <linux/spinlock.h>
@@ -22,6 +23,11 @@/* * The definition of the device registers and register fields. */ +#define HISI_PTT_TUNING_CTRL 0x0000 +#define HISI_PTT_TUNING_CTRL_CODE GENMASK(15, 0) +#define HISI_PTT_TUNING_CTRL_SUB GENMASK(23, 16) +#define HISI_PTT_TUNING_DATA 0x0004 +#define HISI_PTT_TUNING_DATA_VAL_MASK GENMASK(15, 0)#define HISI_PTT_TRACE_ADDR_SIZE 0x0800#define HISI_PTT_TRACE_ADDR_BASE_LO_0 0x0810#define HISI_PTT_TRACE_ADDR_BASE_HI_0 0x0814
@@ -37,6 +43,8 @@#define HISI_PTT_TRACE_INT_STAT 0x0890#define HISI_PTT_TRACE_INT_STAT_MASK GENMASK(3, 0)#define HISI_PTT_TRACE_INT_MASK 0x0894 +#define HISI_PTT_TUNING_INT_STAT 0x0898 +#define HISI_PTT_TUNING_INT_STAT_MASK BIT(0)#define HISI_PTT_TRACE_WR_STS 0x08a0#define HISI_PTT_TRACE_WR_STS_WRITE GENMASK(27, 0)#define HISI_PTT_TRACE_WR_STS_BUFFER GENMASK(29, 28)
@@ -59,6 +67,7 @@#define HISI_PTT_RESET_TIMEOUT_US 10UL#define HISI_PTT_RESET_POLL_INTERVAL_US 1UL/* Poll timeout and interval for waiting hardware work to finish */ +#define HISI_PTT_WAIT_TUNE_TIMEOUT_US 1000000UL#define HISI_PTT_WAIT_TRACE_TIMEOUT_US 100UL#define HISI_PTT_WAIT_POLL_INTERVAL_US 10UL
@@ -71,6 +80,18 @@#define HISI_PTT_PMU_TYPE_MASK GENMASK(31, 24)#define HISI_PTT_PMU_FORMAT_MASK GENMASK(35, 32) +/** +* struct hisi_ptt_tune_desc - Describe tune event for PTT tune +* @hisi_ptt: PTT device this tune event belongs to +* @name: name of this event +* @event_code: code of the event +*/ +struct hisi_ptt_tune_desc { +struct hisi_ptt *hisi_ptt; +const char *name; +u32 event_code; +}; +/** * struct hisi_ptt_dma_buffer - Describe a single trace buffer of PTT trace. * The detail of the data format is described
@@ -143,6 +164,7 @@ struct hisi_ptt_pmu_buf {* @hisi_ptt_pmu: the pum device of trace * @iobase: base IO address of the device * @pdev: pci_dev of this PTT device +* @tune_lock: lock to serialize the tune process * @pmu_lock: lock to serialize the perf process * @upper_bdf: the upper BDF range of the PCI devices managed by this PTT device * @lower_bdf: the lower BDF range of the PCI devices managed by this PTT device
@@ -156,6 +178,7 @@ struct hisi_ptt {struct pmu hisi_ptt_pmu;void __iomem *iobase;struct pci_dev *pdev; +struct mutex tune_lock;spinlock_t pmu_lock;u32 upper_bdf;u32 lower_bdf;
Signature · 1 line
2.24.0
PATCH v12 4/5 docs: trace: Add HiSilicon PTT device driver documentation
In reply to Yicong YangFrom: Yicong Yang <[email protected]>
Document the introduction and usage of HiSilicon PTT device driver as well as the sysfs attributes description provided by the driver.
--- .../ABI/testing/sysfs-devices-hisi_ptt | 61 ++++ Documentation/trace/hisi-ptt.rst | 298 ++++++++++++++++++ Documentation/trace/index.rst | 1 + 3 files changed, 360 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-hisi_ptt create mode 100644 Documentation/trace/hisi-ptt.rst
Documentation/ABI/testing/sysfs-devices-hisi_ptt new file +61 -0
@@ -0,0 +1,61 @@ +What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune +Date: July 2022 +KernelVersion: 6.0 +Contact: Yicong Yang <[email protected]> +Description: This directory contains files for tuning the PCIe link + parameters(events). Each file is named after the event + of the PCIe link. + + See Documentation/trace/hisi-ptt.rst for more information. + +What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_cpl +Date: July 2022 +KernelVersion: 6.0 +Contact: Yicong Yang <[email protected]> +Description: (RW) Controls the weight of Tx completion TLPs, which influence + the proportion of outbound completion TLPs on the PCIe link. + The available tune data is [0, 1, 2]. Writing a negative value + will return an error, and out of range values will be converted + to 2. The value indicates a probable level of the event. + +What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_np +Date: July 2022 +KernelVersion: 6.0 +Contact: Yicong Yang <[email protected]> +Description: (RW) Controls the weight of Tx non-posted TLPs, which influence + the proportion of outbound non-posted TLPs on the PCIe link. + The available tune data is [0, 1, 2]. Writing a negative value + will return an error, and out of range values will be converted + to 2. The value indicates a probable level of the event. + +What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_p +Date: July 2022 +KernelVersion: 6.0 +Contact: Yicong Yang <[email protected]> +Description: (RW) Controls the weight of Tx posted TLPs, which influence the + proportion of outbound posted TLPs on the PCIe link. + The available tune data is [0, 1, 2]. Writing a negative value + will return an error, and out of range values will be converted + to 2. The value indicates a probable level of the event. + +What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/rx_alloc_buf_level +Date: July 2022 +KernelVersion: 6.0 +Contact: Yicong Yang <[email protected]> +Description: (RW) Control the allocated buffer watermark for inbound packets. + The packets will be stored in the buffer first and then transmitted + either when the watermark reached or when timed out. + The available tune data is [0, 1, 2]. Writing a negative value + will return an error, and out of range values will be converted + to 2. The value indicates a probable level of the event. + +What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/tx_alloc_buf_level +Date: July 2022 +KernelVersion: 6.0 +Contact: Yicong Yang <[email protected]> +Description: (RW) Control the allocated buffer watermark of outbound packets. + The packets will be stored in the buffer first and then transmitted + either when the watermark reached or when timed out. + The available tune data is [0, 1, 2]. Writing a negative value + will return an error, and out of range values will be converted + to 2. The value indicates a probable level of the event.
Documentation/trace/hisi-ptt.rst new file +298 -0
298 lines not on this page · raw message
Documentation/trace/index.rst +1 -0
@@ -33,3 +33,4 @@ Linux Tracing Technologies coresight/index user_events rv/index + hisi-ptt
Signature · 1 line
2.24.0
PATCH v12 5/5 MAINTAINERS: Add maintainer for HiSilicon PTT driver
In reply to Yicong YangFrom: Yicong Yang <[email protected]>
Add maintainer for driver and documentation of HiSilicon PTT device.
--- MAINTAINERS | 8 ++++++++ 1 file changed, 8 insertions(+)
MAINTAINERS +8 -0
@@ -9185,6 +9185,14 @@ S: Supported F: Documentation/admin-guide/perf/hns3-pmu.rst F: drivers/perf/hisilicon/hns3_pmu.c +HISILICON PTT DRIVER +M: Yicong Yang <[email protected]> +L: [email protected] +S: Maintained +F: Documentation/ABI/testing/sysfs-devices-hisi_ptt +F: Documentation/trace/hisi-ptt.rst +F: drivers/hwtracing/ptt/ + HISILICON QM DRIVER M: Weili Qian <[email protected]> M: Zhou Wang <[email protected]>
Signature · 1 line
2.24.0
A gentle ping for this...
Thanks.
Quoted 146 lines · Yicong Yang
From: Yicong Yang <[email protected]>
HiSilicon PCIe tune and trace device (PTT) is a PCIe Root Complex integrated Endpoint (RCiEP) device, providing the capability to dynamically monitor and tune the PCIe traffic (tune), and trace the TLP headers (trace).
PTT tune is designed for monitoring and adjusting PCIe link parameters. We provide several parameters of the PCIe link. Through the driver, user can adjust the value of certain parameter to affect the PCIe link for the purpose of enhancing the performance in certian situation.
PTT trace is designed for dumping the TLP headers to the memory, which can be used to analyze the transactions and usage condition of the PCIe Link. Users can choose filters to trace headers, by either requester ID, or those downstream of a set of Root Ports on the same core of the PTT device. It's also supported to trace the headers of certain type and of certain direction.
The driver registers a PMU device for each PTT device. The trace can be used through
perf recordand the traced headers can be decoded byperf report. The tune can be used through the sysfs attributes of related PMU device. See the documentation for the detailed usage.This patchset adds an initial driver support for the PTT device. The userspace perf tool support will be sent in a separate patchset.
Change since v11:
- DropWARN_ON()forirq_set_affinity()failure per Greg
- Split out userspace perf support patches according to the commentsChange since v10:
- Use title case in the documentation
- Add RB from Bagas, thanks.Change since v9:
- Add sysfs ABI description documentation
- Remove the controversial available_{root_port, requester}_filters sysfs file
- Shorten 2 tune sysfs attributes name and add some comments
- Movehisi_ptt_process_auxtrace_info()to Patch 6.
- Add RB from Leo and Ack-by from Mathieu, thanks!Change since v8:
- Cleanups and one minor fix from Jonathan and John, thanksChange since v7:
- Configure the DMA in probe rather than in runtime. Also use devres to manage PMU device as we have no order problem now
- Refactor the config validation function per John and Leo
- Use a spinlockhisi_ptt::pmu_lockinstead of mutex to serialize the perf process inpmu::startas it's in atomic context
- Only commit the traced data when stop, per Leo and James
- Drop the filter dynamically updating patch from this series to simply the review of the driver. That patch will be send separately.
- add a cpumask sysfs attribute and handle the cpu hotplug events, follow the uncore PMU convention
- Other cleanups and fixes, both in driver and perf toolChange since v6:
- Fix W=1 errors reported by lkp test, thanksChange since v5:
- Squash the PMU patch into PATCH 2 suggested by John
- refine the commit message of PATCH 1 and some commentsChange since v4:
Address the comments from Jonathan, John and Ma Ca, thanks.
- Use devm* also for allocating the DMA buffers
- Remove the IRQ handler stub in Patch 2
- Make functions waiting for hardware state return boolean
- Manual remove the PMU device as it should be removed first
- Modifier the orders in probe and removal to make them matched well
- Make available {directions,type,format} array const and non-global
- Using the right filter list in filters show and well protect the list with mutex
- Record the trace status with a boolean @started rather than enum
- Optimize the process of finding the PTT devices of the perf-toolChange since v3:
Address the comments from Jonathan and John, thanks.
- drop members in the common struct which can be get on the fly
- reduce buffer struct and organize the buffers with array instead of list
- reduce the DMA reset wait time to avoid long time busy loop
- split theavailable_filterssysfs attribute into two files, for root port and requester respectively. Update the documentation accordingly
- make IOMMU mapping check earlier in probe to avoid race condition. Also make IOMMU quirk patch prior to driver in the series
- Cleanups and typos fixes from John and JonathanChange since v2:
- address the comments from Mathieu, thanks.
- rename the directory to ptt to match the function of the device
- spinoff the declarations to a separate header
- split the trace function to several patches
- some other comments.
- make default smmu domain type of PTT device to identity Drop the RMR as it's not recommended and use aniommu_def_domain_typequirk to passthrough the device DMA as suggested by Robin.Change since v1:
- switch the user interface of trace to perf from debugfs
- switch the user interface of tune to sysfs from debugfs
- add perf tool support to start trace and decode the trace data
- address the comments of documentation from Bjorn
- add RMR[1] support of the device as trace works in RMR mode or direct DMA mode. RMR support is achieved by common APIs rather than the APIs implemented in [1].[1] https://lore.kernel.org/linux-acpi/[email protected]/
Yicong Yang (5):
iommu/arm-smmu-v3: Make default domain type of HiSilicon PTT device to
identity
hwtracing:hisi_ptt: Add trace function support for HiSilicon PCIe
Tune and Trace device
hwtracing:hisi_ptt: Add tune function support for HiSilicon PCIe Tune
and Trace device
docs: trace: Add HiSilicon PTT device driver documentation
MAINTAINERS: Add maintainer for HiSilicon PTT driver.../ABI/testing/sysfs-devices-hisi_ptt | 61 + Documentation/trace/hisi-ptt.rst | 298 +++++ Documentation/trace/index.rst | 1 + MAINTAINERS | 8 + drivers/Makefile | 1 + drivers/hwtracing/Kconfig | 2 + drivers/hwtracing/ptt/Kconfig | 12 + drivers/hwtracing/ptt/Makefile | 2 + drivers/hwtracing/ptt/hisi_ptt.c | 1047 +++++++++++++++++ drivers/hwtracing/ptt/hisi_ptt.h | 200 ++++ drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 21 + 11 files changed, 1653 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-hisi_ptt create mode 100644 Documentation/trace/hisi-ptt.rst create mode 100644 drivers/hwtracing/ptt/Kconfig create mode 100644 drivers/hwtracing/ptt/Makefile create mode 100644 drivers/hwtracing/ptt/hisi_ptt.c create mode 100644 drivers/hwtracing/ptt/hisi_ptt.h
Quoted 3 lines · Yicong Yang
A gentle ping for this...
I will look at this set next week.
Quoted 149 lines
Thanks.
Quoted 146 lines · Yicong Yang
From: Yicong Yang <[email protected]>
HiSilicon PCIe tune and trace device (PTT) is a PCIe Root Complex integrated Endpoint (RCiEP) device, providing the capability to dynamically monitor and tune the PCIe traffic (tune), and trace the TLP headers (trace).
PTT tune is designed for monitoring and adjusting PCIe link parameters. We provide several parameters of the PCIe link. Through the driver, user can adjust the value of certain parameter to affect the PCIe link for the purpose of enhancing the performance in certian situation.
PTT trace is designed for dumping the TLP headers to the memory, which can be used to analyze the transactions and usage condition of the PCIe Link. Users can choose filters to trace headers, by either requester ID, or those downstream of a set of Root Ports on the same core of the PTT device. It's also supported to trace the headers of certain type and of certain direction.
The driver registers a PMU device for each PTT device. The trace can be used through
perf recordand the traced headers can be decoded byperf report. The tune can be used through the sysfs attributes of related PMU device. See the documentation for the detailed usage.This patchset adds an initial driver support for the PTT device. The userspace perf tool support will be sent in a separate patchset.
Change since v11:
- DropWARN_ON()forirq_set_affinity()failure per Greg
- Split out userspace perf support patches according to the commentsChange since v10:
- Use title case in the documentation
- Add RB from Bagas, thanks.Change since v9:
- Add sysfs ABI description documentation
- Remove the controversial available_{root_port, requester}_filters sysfs file
- Shorten 2 tune sysfs attributes name and add some comments
- Movehisi_ptt_process_auxtrace_info()to Patch 6.
- Add RB from Leo and Ack-by from Mathieu, thanks!Change since v8:
- Cleanups and one minor fix from Jonathan and John, thanksChange since v7:
- Configure the DMA in probe rather than in runtime. Also use devres to manage PMU device as we have no order problem now
- Refactor the config validation function per John and Leo
- Use a spinlockhisi_ptt::pmu_lockinstead of mutex to serialize the perf process inpmu::startas it's in atomic context
- Only commit the traced data when stop, per Leo and James
- Drop the filter dynamically updating patch from this series to simply the review of the driver. That patch will be send separately.
- add a cpumask sysfs attribute and handle the cpu hotplug events, follow the uncore PMU convention
- Other cleanups and fixes, both in driver and perf toolChange since v6:
- Fix W=1 errors reported by lkp test, thanksChange since v5:
- Squash the PMU patch into PATCH 2 suggested by John
- refine the commit message of PATCH 1 and some commentsChange since v4:
Address the comments from Jonathan, John and Ma Ca, thanks.
- Use devm* also for allocating the DMA buffers
- Remove the IRQ handler stub in Patch 2
- Make functions waiting for hardware state return boolean
- Manual remove the PMU device as it should be removed first
- Modifier the orders in probe and removal to make them matched well
- Make available {directions,type,format} array const and non-global
- Using the right filter list in filters show and well protect the list with mutex
- Record the trace status with a boolean @started rather than enum
- Optimize the process of finding the PTT devices of the perf-toolChange since v3:
Address the comments from Jonathan and John, thanks.
- drop members in the common struct which can be get on the fly
- reduce buffer struct and organize the buffers with array instead of list
- reduce the DMA reset wait time to avoid long time busy loop
- split theavailable_filterssysfs attribute into two files, for root port and requester respectively. Update the documentation accordingly
- make IOMMU mapping check earlier in probe to avoid race condition. Also make IOMMU quirk patch prior to driver in the series
- Cleanups and typos fixes from John and JonathanChange since v2:
- address the comments from Mathieu, thanks.
- rename the directory to ptt to match the function of the device
- spinoff the declarations to a separate header
- split the trace function to several patches
- some other comments.
- make default smmu domain type of PTT device to identity Drop the RMR as it's not recommended and use aniommu_def_domain_typequirk to passthrough the device DMA as suggested by Robin.Change since v1:
- switch the user interface of trace to perf from debugfs
- switch the user interface of tune to sysfs from debugfs
- add perf tool support to start trace and decode the trace data
- address the comments of documentation from Bjorn
- add RMR[1] support of the device as trace works in RMR mode or direct DMA mode. RMR support is achieved by common APIs rather than the APIs implemented in [1].[1] https://lore.kernel.org/linux-acpi/[email protected]/
Yicong Yang (5):
iommu/arm-smmu-v3: Make default domain type of HiSilicon PTT device to
identity
hwtracing:hisi_ptt: Add trace function support for HiSilicon PCIe
Tune and Trace device
hwtracing:hisi_ptt: Add tune function support for HiSilicon PCIe Tune
and Trace device
docs: trace: Add HiSilicon PTT device driver documentation
MAINTAINERS: Add maintainer for HiSilicon PTT driver.../ABI/testing/sysfs-devices-hisi_ptt | 61 + Documentation/trace/hisi-ptt.rst | 298 +++++ Documentation/trace/index.rst | 1 + MAINTAINERS | 8 + drivers/Makefile | 1 + drivers/hwtracing/Kconfig | 2 + drivers/hwtracing/ptt/Kconfig | 12 + drivers/hwtracing/ptt/Makefile | 2 + drivers/hwtracing/ptt/hisi_ptt.c | 1047 +++++++++++++++++ drivers/hwtracing/ptt/hisi_ptt.h | 200 ++++ drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 21 + 11 files changed, 1653 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-hisi_ptt create mode 100644 Documentation/trace/hisi-ptt.rst create mode 100644 drivers/hwtracing/ptt/Kconfig create mode 100644 drivers/hwtracing/ptt/Makefile create mode 100644 drivers/hwtracing/ptt/hisi_ptt.c create mode 100644 drivers/hwtracing/ptt/hisi_ptt.h
Quoted 127 lines · Yicong Yang
From: Yicong Yang <[email protected]>
HiSilicon PCIe tune and trace device (PTT) is a PCIe Root Complex integrated Endpoint (RCiEP) device, providing the capability to dynamically monitor and tune the PCIe traffic (tune), and trace the TLP headers (trace).
PTT tune is designed for monitoring and adjusting PCIe link parameters. We provide several parameters of the PCIe link. Through the driver, user can adjust the value of certain parameter to affect the PCIe link for the purpose of enhancing the performance in certian situation.
PTT trace is designed for dumping the TLP headers to the memory, which can be used to analyze the transactions and usage condition of the PCIe Link. Users can choose filters to trace headers, by either requester ID, or those downstream of a set of Root Ports on the same core of the PTT device. It's also supported to trace the headers of certain type and of certain direction.
The driver registers a PMU device for each PTT device. The trace can be used through
perf recordand the traced headers can be decoded byperf report. The tune can be used through the sysfs attributes of related PMU device. See the documentation for the detailed usage.This patchset adds an initial driver support for the PTT device. The userspace perf tool support will be sent in a separate patchset.
Change since v11:
- DropWARN_ON()forirq_set_affinity()failure per Greg
- Split out userspace perf support patches according to the commentsChange since v10:
- Use title case in the documentation
- Add RB from Bagas, thanks.Change since v9:
- Add sysfs ABI description documentation
- Remove the controversial available_{root_port, requester}_filters sysfs file
- Shorten 2 tune sysfs attributes name and add some comments
- Movehisi_ptt_process_auxtrace_info()to Patch 6.
- Add RB from Leo and Ack-by from Mathieu, thanks!Change since v8:
- Cleanups and one minor fix from Jonathan and John, thanksChange since v7:
- Configure the DMA in probe rather than in runtime. Also use devres to manage PMU device as we have no order problem now
- Refactor the config validation function per John and Leo
- Use a spinlockhisi_ptt::pmu_lockinstead of mutex to serialize the perf process inpmu::startas it's in atomic context
- Only commit the traced data when stop, per Leo and James
- Drop the filter dynamically updating patch from this series to simply the review of the driver. That patch will be send separately.
- add a cpumask sysfs attribute and handle the cpu hotplug events, follow the uncore PMU convention
- Other cleanups and fixes, both in driver and perf toolChange since v6:
- Fix W=1 errors reported by lkp test, thanksChange since v5:
- Squash the PMU patch into PATCH 2 suggested by John
- refine the commit message of PATCH 1 and some commentsChange since v4:
Address the comments from Jonathan, John and Ma Ca, thanks.
- Use devm* also for allocating the DMA buffers
- Remove the IRQ handler stub in Patch 2
- Make functions waiting for hardware state return boolean
- Manual remove the PMU device as it should be removed first
- Modifier the orders in probe and removal to make them matched well
- Make available {directions,type,format} array const and non-global
- Using the right filter list in filters show and well protect the list with mutex
- Record the trace status with a boolean @started rather than enum
- Optimize the process of finding the PTT devices of the perf-toolChange since v3:
Address the comments from Jonathan and John, thanks.
- drop members in the common struct which can be get on the fly
- reduce buffer struct and organize the buffers with array instead of list
- reduce the DMA reset wait time to avoid long time busy loop
- split theavailable_filterssysfs attribute into two files, for root port and requester respectively. Update the documentation accordingly
- make IOMMU mapping check earlier in probe to avoid race condition. Also make IOMMU quirk patch prior to driver in the series
- Cleanups and typos fixes from John and JonathanChange since v2:
- address the comments from Mathieu, thanks.
- rename the directory to ptt to match the function of the device
- spinoff the declarations to a separate header
- split the trace function to several patches
- some other comments.
- make default smmu domain type of PTT device to identity Drop the RMR as it's not recommended and use aniommu_def_domain_typequirk to passthrough the device DMA as suggested by Robin.Change since v1:
- switch the user interface of trace to perf from debugfs
- switch the user interface of tune to sysfs from debugfs
- add perf tool support to start trace and decode the trace data
- address the comments of documentation from Bjorn
- add RMR[1] support of the device as trace works in RMR mode or direct DMA mode. RMR support is achieved by common APIs rather than the APIs implemented in [1].[1] https://lore.kernel.org/linux-acpi/[email protected]/
Yicong Yang (5):
iommu/arm-smmu-v3: Make default domain type of HiSilicon PTT device to
identity
hwtracing:hisi_ptt: Add trace function support for HiSilicon PCIe
Tune and Trace device
hwtracing:hisi_ptt: Add tune function support for HiSilicon PCIe Tune
and Trace device
docs: trace: Add HiSilicon PTT device driver documentation
MAINTAINERS: Add maintainer for HiSilicon PTT driver
Quoted 11 lines
.../ABI/testing/sysfs-devices-hisi_ptt | 61 + Documentation/trace/hisi-ptt.rst | 298 +++++ Documentation/trace/index.rst | 1 + MAINTAINERS | 8 + drivers/Makefile | 1 + drivers/hwtracing/Kconfig | 2 + drivers/hwtracing/ptt/Kconfig | 12 + drivers/hwtracing/ptt/Makefile | 2 + drivers/hwtracing/ptt/hisi_ptt.c | 1047 +++++++++++++++++ drivers/hwtracing/ptt/hisi_ptt.h | 200 ++++ drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 21 +
I fixed the month and kernel revision in sysfs-devices-hisi_ptt before applying this set. You can double check that everything is to your liking in the coresight next tree[1].
Thanks,
Mathieu
[1]. https://git.kernel.org/pub/scm/linux/kernel/git/coresight/linux.git/log/?h=next
Quoted 11 lines
11 files changed, 1653 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-hisi_ptt create mode 100644 Documentation/trace/hisi-ptt.rst create mode 100644 drivers/hwtracing/ptt/Kconfig create mode 100644 drivers/hwtracing/ptt/Makefile create mode 100644 drivers/hwtracing/ptt/hisi_ptt.c create mode 100644 drivers/hwtracing/ptt/hisi_ptt.hSignature · 1 line
2.24.0
Quoted 140 lines · Mathieu Poirier
Quoted 127 lines · Yicong Yang
From: Yicong Yang <[email protected]>
HiSilicon PCIe tune and trace device (PTT) is a PCIe Root Complex integrated Endpoint (RCiEP) device, providing the capability to dynamically monitor and tune the PCIe traffic (tune), and trace the TLP headers (trace).
PTT tune is designed for monitoring and adjusting PCIe link parameters. We provide several parameters of the PCIe link. Through the driver, user can adjust the value of certain parameter to affect the PCIe link for the purpose of enhancing the performance in certian situation.
PTT trace is designed for dumping the TLP headers to the memory, which can be used to analyze the transactions and usage condition of the PCIe Link. Users can choose filters to trace headers, by either requester ID, or those downstream of a set of Root Ports on the same core of the PTT device. It's also supported to trace the headers of certain type and of certain direction.
The driver registers a PMU device for each PTT device. The trace can be used through
perf recordand the traced headers can be decoded byperf report. The tune can be used through the sysfs attributes of related PMU device. See the documentation for the detailed usage.This patchset adds an initial driver support for the PTT device. The userspace perf tool support will be sent in a separate patchset.
Change since v11:
- DropWARN_ON()forirq_set_affinity()failure per Greg
- Split out userspace perf support patches according to the commentsChange since v10:
- Use title case in the documentation
- Add RB from Bagas, thanks.Change since v9:
- Add sysfs ABI description documentation
- Remove the controversial available_{root_port, requester}_filters sysfs file
- Shorten 2 tune sysfs attributes name and add some comments
- Movehisi_ptt_process_auxtrace_info()to Patch 6.
- Add RB from Leo and Ack-by from Mathieu, thanks!Change since v8:
- Cleanups and one minor fix from Jonathan and John, thanksChange since v7:
- Configure the DMA in probe rather than in runtime. Also use devres to manage PMU device as we have no order problem now
- Refactor the config validation function per John and Leo
- Use a spinlockhisi_ptt::pmu_lockinstead of mutex to serialize the perf process inpmu::startas it's in atomic context
- Only commit the traced data when stop, per Leo and James
- Drop the filter dynamically updating patch from this series to simply the review of the driver. That patch will be send separately.
- add a cpumask sysfs attribute and handle the cpu hotplug events, follow the uncore PMU convention
- Other cleanups and fixes, both in driver and perf toolChange since v6:
- Fix W=1 errors reported by lkp test, thanksChange since v5:
- Squash the PMU patch into PATCH 2 suggested by John
- refine the commit message of PATCH 1 and some commentsChange since v4:
Address the comments from Jonathan, John and Ma Ca, thanks.
- Use devm* also for allocating the DMA buffers
- Remove the IRQ handler stub in Patch 2
- Make functions waiting for hardware state return boolean
- Manual remove the PMU device as it should be removed first
- Modifier the orders in probe and removal to make them matched well
- Make available {directions,type,format} array const and non-global
- Using the right filter list in filters show and well protect the list with mutex
- Record the trace status with a boolean @started rather than enum
- Optimize the process of finding the PTT devices of the perf-toolChange since v3:
Address the comments from Jonathan and John, thanks.
- drop members in the common struct which can be get on the fly
- reduce buffer struct and organize the buffers with array instead of list
- reduce the DMA reset wait time to avoid long time busy loop
- split theavailable_filterssysfs attribute into two files, for root port and requester respectively. Update the documentation accordingly
- make IOMMU mapping check earlier in probe to avoid race condition. Also make IOMMU quirk patch prior to driver in the series
- Cleanups and typos fixes from John and JonathanChange since v2:
- address the comments from Mathieu, thanks.
- rename the directory to ptt to match the function of the device
- spinoff the declarations to a separate header
- split the trace function to several patches
- some other comments.
- make default smmu domain type of PTT device to identity Drop the RMR as it's not recommended and use aniommu_def_domain_typequirk to passthrough the device DMA as suggested by Robin.Change since v1:
- switch the user interface of trace to perf from debugfs
- switch the user interface of tune to sysfs from debugfs
- add perf tool support to start trace and decode the trace data
- address the comments of documentation from Bjorn
- add RMR[1] support of the device as trace works in RMR mode or direct DMA mode. RMR support is achieved by common APIs rather than the APIs implemented in [1].[1] https://lore.kernel.org/linux-acpi/[email protected]/
Yicong Yang (5):
iommu/arm-smmu-v3: Make default domain type of HiSilicon PTT device to
identity
hwtracing:hisi_ptt: Add trace function support for HiSilicon PCIe
Tune and Trace device
hwtracing:hisi_ptt: Add tune function support for HiSilicon PCIe Tune
and Trace device
docs: trace: Add HiSilicon PTT device driver documentation
MAINTAINERS: Add maintainer for HiSilicon PTT driverQuoted 11 lines
.../ABI/testing/sysfs-devices-hisi_ptt | 61 + Documentation/trace/hisi-ptt.rst | 298 +++++ Documentation/trace/index.rst | 1 + MAINTAINERS | 8 + drivers/Makefile | 1 + drivers/hwtracing/Kconfig | 2 + drivers/hwtracing/ptt/Kconfig | 12 + drivers/hwtracing/ptt/Makefile | 2 + drivers/hwtracing/ptt/hisi_ptt.c | 1047 +++++++++++++++++ drivers/hwtracing/ptt/hisi_ptt.h | 200 ++++ drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 21 +
Quoted 4 lines
I fixed the month and kernel revision in sysfs-devices-hisi_ptt before applying this set. You can double check that everything is to your liking in the coresight next tree[1].
Thanks a lot for the fixes, I thought to use the month when posting the patches and sorry for calculating a wrong release version. I've pulled and checked again and everything is fine.
Thanks you again and everybody helped reveiw this series!
Regards,
Yicong.
Quoted 19 lines
Thanks,
Mathieu[1]. https://git.kernel.org/pub/scm/linux/kernel/git/coresight/linux.git/log/?h=next
Quoted 11 lines
11 files changed, 1653 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-hisi_ptt create mode 100644 Documentation/trace/hisi-ptt.rst create mode 100644 drivers/hwtracing/ptt/Kconfig create mode 100644 drivers/hwtracing/ptt/Makefile create mode 100644 drivers/hwtracing/ptt/hisi_ptt.c create mode 100644 drivers/hwtracing/ptt/hisi_ptt.hSignature · 1 line
2.24.0.