[PATCH V8 0/2] drivers/perf: hisi: Add driver for HNS3 PMU

Guangbin Huang posted 2 patches 1 year, 10 months ago
Documentation/admin-guide/perf/hns3-pmu.rst |  136 ++
MAINTAINERS                                 |    6 +
drivers/perf/hisilicon/Kconfig              |   10 +
drivers/perf/hisilicon/Makefile             |    1 +
drivers/perf/hisilicon/hns3_pmu.c           | 1671 +++++++++++++++++++
include/linux/cpuhotplug.h                  |    1 +
6 files changed, 1825 insertions(+)
create mode 100644 Documentation/admin-guide/perf/hns3-pmu.rst
create mode 100644 drivers/perf/hisilicon/hns3_pmu.c
[PATCH V8 0/2] drivers/perf: hisi: Add driver for HNS3 PMU
Posted by Guangbin Huang 1 year, 10 months ago
This patch-set adds driver for HNS3(HiSilicon network system version 3)
PMU and doc to descript it.

Change logs:
V7 -> V8:
 - remove overlapping fields 'event' and 'real_event' of config.
 - Link: https://lore.kernel.org/linux-arm-kernel/20220525005211.57059-1-huangguangbin2@huawei.com/
V6 -> V7:
modify the comments of Will Deacon:
 - Modify format of event number shown for user.
 - Add a trailing space for func-intr when show filter mode.
 - Format the bdf number as the way "b:d.f" when show bdf_min and bdf_max.
 - Add subevent, event_type, ext_counter_used and real_event for
   hns3_pmu_format_attr[].
 - Link: https://lore.kernel.org/linux-arm-kernel/20220427121000.56026-1-huangguangbin2@huawei.com/
V5 -> V6:
 - Modify prefix hns3_get into hns3_pmu_get.
 - Some switch cases return directly.
 - Modify failed log when io remap failed.
 - Link: https://lore.kernel.org/linux-arm-kernel/20220426132822.51735-1-huangguangbin2@huawei.com/
V4 -> V5:
 - Add COMPILE_TEST and include io-64-nonatomic-hi-lo.h as suggestion of
   John Garry.
V3 -> V4:
 - Modify the comments of John Garry.
 - Link: https://lore.kernel.org/linux-arm-kernel/20220329113930.37631-1-huangguangbin2@huawei.com/
V2 -> V3:
 - Modify the comments of John Garry.
 - Link: https://lore.kernel.org/linux-arm-kernel/20220228123955.30284-1-huangguangbin2@huawei.com/
V1 -> V2:
 - Modify the comments of John Garry.
 - Link: https://lore.kernel.org/linux-arm-kernel/20220117015222.9617-1-huangguangbin2@huawei.com/


Guangbin Huang (2):
  drivers/perf: hisi: Add description for HNS3 PMU driver
  drivers/perf: hisi: add driver for HNS3 PMU

 Documentation/admin-guide/perf/hns3-pmu.rst |  136 ++
 MAINTAINERS                                 |    6 +
 drivers/perf/hisilicon/Kconfig              |   10 +
 drivers/perf/hisilicon/Makefile             |    1 +
 drivers/perf/hisilicon/hns3_pmu.c           | 1671 +++++++++++++++++++
 include/linux/cpuhotplug.h                  |    1 +
 6 files changed, 1825 insertions(+)
 create mode 100644 Documentation/admin-guide/perf/hns3-pmu.rst
 create mode 100644 drivers/perf/hisilicon/hns3_pmu.c

-- 
2.33.0
Re: [PATCH V8 0/2] drivers/perf: hisi: Add driver for HNS3 PMU
Posted by Will Deacon 1 year, 9 months ago
On Tue, 28 Jun 2022 14:34:17 +0800, Guangbin Huang wrote:
> This patch-set adds driver for HNS3(HiSilicon network system version 3)
> PMU and doc to descript it.
> 
> Change logs:
> V7 -> V8:
>  - remove overlapping fields 'event' and 'real_event' of config.
>  - Link: https://lore.kernel.org/linux-arm-kernel/20220525005211.57059-1-huangguangbin2@huawei.com/
> V6 -> V7:
> modify the comments of Will Deacon:
>  - Modify format of event number shown for user.
>  - Add a trailing space for func-intr when show filter mode.
>  - Format the bdf number as the way "b:d.f" when show bdf_min and bdf_max.
>  - Add subevent, event_type, ext_counter_used and real_event for
>    hns3_pmu_format_attr[].
>  - Link: https://lore.kernel.org/linux-arm-kernel/20220427121000.56026-1-huangguangbin2@huawei.com/
> V5 -> V6:
>  - Modify prefix hns3_get into hns3_pmu_get.
>  - Some switch cases return directly.
>  - Modify failed log when io remap failed.
>  - Link: https://lore.kernel.org/linux-arm-kernel/20220426132822.51735-1-huangguangbin2@huawei.com/
> V4 -> V5:
>  - Add COMPILE_TEST and include io-64-nonatomic-hi-lo.h as suggestion of
>    John Garry.
> V3 -> V4:
>  - Modify the comments of John Garry.
>  - Link: https://lore.kernel.org/linux-arm-kernel/20220329113930.37631-1-huangguangbin2@huawei.com/
> V2 -> V3:
>  - Modify the comments of John Garry.
>  - Link: https://lore.kernel.org/linux-arm-kernel/20220228123955.30284-1-huangguangbin2@huawei.com/
> V1 -> V2:
>  - Modify the comments of John Garry.
>  - Link: https://lore.kernel.org/linux-arm-kernel/20220117015222.9617-1-huangguangbin2@huawei.com/
> 
> [...]

Applied to will (for-next/perf), thanks!

[1/2] drivers/perf: hisi: Add description for HNS3 PMU driver
      https://git.kernel.org/will/c/39915b6b5fc2
[2/2] drivers/perf: hisi: add driver for HNS3 PMU
      https://git.kernel.org/will/c/66637ab137b4

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev