Skip to content

drivers/perf: hisi_pcie: Several updates for HiSilicon PCIe PMU driver

Yicong Yang linux-arm-kernel lkml 2 versions – Applied

Status from this message: Applied to will (for-next/perf), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 7 repliesApplied
  2. v17 patches 12 repliesSuperseded

Changes in v2 from the cover letter

- Rename hisi_pcie_pmu_{config,clear}_filter() to properly reflect its function.
- Add some test case logs to the Patch 5/8 comments.
- Avoid use HISI_PCIE_MAX_COUNTER outside of functions in Patch 7/8.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8drivers/perf: hisi_pcie: Rename hisi_pcie_pmu_{config,clear}_filter()drivers/perf/hisilicon/hisi_pcie_pmu.c+4 -41 reply
2/8drivers/perf: hisi_pcie: Introduce hisi_pcie_pmu_get_event_ctrl_val()drivers/perf/hisilicon/hisi_pcie_pmu.c+10 -30 replies
3/8drivers/perf: hisi_pcie: Fix incorrect counting under metric modedrivers/perf/hisilicon/hisi_pcie_pmu.c+7 -11 reply
4/8drivers/perf: hisi_pcie: Add more events for counting TLP bandwidthdrivers/perf/hisilicon/hisi_pcie_pmu.c+8 -00 replies
5/8drivers/perf: hisi_pcie: Check the target filter properlydrivers/perf/hisilicon/hisi_pcie_pmu.c+4 -41 reply
6/8drivers/perf: hisi_pcie: Relax the check on related eventsdrivers/perf/hisilicon/hisi_pcie_pmu.c+2 -61 reply
7/8drivers/perf: hisi_pcie: Merge find_related_event() and get_event_idx()drivers/perf/hisilicon/hisi_pcie_pmu.c+19 -321 reply
8/8docs: perf: Update usage for target filter of hisi-pcie-pmuDocumentation/admin-guide/perf/hisi-pcie-pmu.rst+23 -81 reply

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchJonathan Cameron
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/8] drivers/perf: hisi_pcie: Several updates for HiSilicon PCIe PMU driver

From: Yicong Yang <[email protected]>

This series mainly fix and optimize the several usage of the driver:
- Add more events to complement the TLP bandwidth counting
- Fix the wrong counting on using the event group
- Properly check the target filter to avoid invalid filter value
- Optimize the handling of related events which are not in an event group
- Update the docs

Change since v1:
- Rename hisi_pcie_pmu_{config,clear}_filter() to properly reflect its function.
- Add some test case logs to the Patch 5/8 comments.
- Avoid use HISI_PCIE_MAX_COUNTER outside of functions in Patch 7/8.

Junhao He (4):
drivers/perf: hisi_pcie: Check the target filter properly drivers/perf: hisi_pcie: Relax the check on related events drivers/perf: hisi_pcie: Merge find_related_event() and

    get_event_idx()

docs: perf: Update usage for target filter of hisi-pcie-pmu

Yicong Yang (4):
drivers/perf: hisi_pcie: Rename hisi_pcie_pmu_{config,clear}_filter() drivers/perf: hisi_pcie: Introduce hisi_pcie_pmu_get_event_ctrl_val() drivers/perf: hisi_pcie: Fix incorrect counting under metric mode drivers/perf: hisi_pcie: Add more events for counting TLP bandwidth

 .../admin-guide/perf/hisi-pcie-pmu.rst        |  31 ++++--
 drivers/perf/hisilicon/hisi_pcie_pmu.c        | 102 +++++++++---------
 2 files changed, 76 insertions(+), 57 deletions(-)
Signature · 1 line
2.24.0