[GIT PULL] coresight: updates for v6.5

Suzuki K Poulose suzuki.poulose at arm.com
Wed Jun 21 10:16:08 PDT 2023


Greg,

Please find the changes for coresight and hwtracing subsystem, targeting v6.5.
Please note that, I have pulled James' devm_krealloc_array() patch -

 ( commit d388f06aced3 "devres: Provide krealloc_array" )

- into the coresight tree from your driver-core-next, for CTI module refcount
fixes depend on it.

Please let me know if this looks alright and kindly pull if it is fine.

Kind regards
Suzuki



The following changes since commit 7877cb91f1081754a1487c144d85dc0d2e2e7fc4:

  Linux 6.4-rc4 (2023-05-28 07:49:00 -0400)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/coresight/linux.git tags/coresight-next-v6.5

for you to fetch changes up to 6c50384ef8b94a527445e3694ae6549e1f15d859:

  hwtracing: hisi_ptt: Fix potential sleep in atomic context (2023-06-21 11:52:39 +0100)

----------------------------------------------------------------
coresight: Updates for v6.5

CoreSight and hwtracing subsystem updates for v6.5 includes:

 - Fixes to the CTI module reference leaks. This involves,
   redesign of how the helper devices are tracked and CTI
   devices have been converted to helper devices.
 - Fix removal of the trctraceidr file from sysfs for ETMs.
 - Match all ETMv4 instances based on the ETMv4 architected
   registers and the CoreSight Component ID (CID), than having
   to add individual PIDs for CPUs.
 - Add support for Dummy CoreSight source and sink drivers.
 - Add James Clark as Reviewer for the CoreSight kernel drivers
 - Fixes to HiSilicon PCIe Tune and Trace Device driver

Signed-off-by: Suzuki K Poulose <suzuki.poulose at arm.com>

----------------------------------------------------------------
Hao Zhang (3):
      Coresight: Add coresight dummy driver
      dt-bindings: arm: Add support for Coresight dummy trace
      Documentation: trace: Add documentation for Coresight Dummy Trace

James Clark (14):
      devres: Provide krealloc_array
      coresight: Fix loss of connection info when a module is unloaded
      coresight: Use enum type for cs_mode wherever possible
      coresight: Change name of pdata->conns
      coresight: Rename nr_outports to nr_outconns
      coresight: Rename connection members to make the direction explicit
      coresight: Dynamically add connections
      coresight: Store pointers to connections rather than an array of them
      coresight: Simplify connection fixup mechanism
      coresight: Store in-connections as well as out-connections
      coresight: Make refcount a property of the connection
      coresight: Refactor out buffer allocation function for ETR
      coresight: Enable and disable helper devices adjacent to the path
      coresight: Fix CTI module refcount leak by making it a helper device

Mike Leach (1):
      coresight: etm4x: Fix missing trctraceidr file in sysfs

Nathan Chancellor (1):
      coresight: dummy: Update type of mode parameter in dummy_{sink,source}_enable()

Suzuki K Poulose (2):
      coresight: etm4x: Match all ETM4 instances based on DEVARCH and DEVTYPE
      MAINTAINERS: coresight: Add James Clark as Reviewer

Uwe Kleine-König (1):
      coresight: etm4x: Make etm4_remove_dev() return void

Yicong Yang (5):
      hwtracing: hisi_ptt: Factor out filter allocation and release operation
      hwtracing: hisi_ptt: Add support for dynamically updating the filter list
      hwtracing: hisi_ptt: Export available filters through sysfs
      hwtracing: hisi_ptt: Advertise PERF_PMU_CAP_NO_EXCLUDE for PTT PMU
      hwtracing: hisi_ptt: Fix potential sleep in atomic context

 Documentation/ABI/testing/sysfs-devices-hisi_ptt   |  52 ++
 .../bindings/arm/arm,coresight-dummy-sink.yaml     |  73 +++
 .../bindings/arm/arm,coresight-dummy-source.yaml   |  71 +++
 Documentation/driver-api/driver-model/devres.rst   |   1 +
 Documentation/trace/coresight/coresight-dummy.rst  |  32 ++
 Documentation/trace/hisi-ptt.rst                   |  12 +-
 MAINTAINERS                                        |   1 +
 drivers/hwtracing/coresight/Kconfig                |  11 +
 drivers/hwtracing/coresight/Makefile               |   1 +
 drivers/hwtracing/coresight/coresight-catu.c       |  21 +-
 drivers/hwtracing/coresight/coresight-core.c       | 623 +++++++++++----------
 drivers/hwtracing/coresight/coresight-cti-core.c   |  52 +-
 drivers/hwtracing/coresight/coresight-cti-sysfs.c  |   4 +-
 drivers/hwtracing/coresight/coresight-cti.h        |   4 +-
 drivers/hwtracing/coresight/coresight-dummy.c      | 163 ++++++
 drivers/hwtracing/coresight/coresight-etb10.c      |  13 +-
 drivers/hwtracing/coresight/coresight-etm-perf.c   |   4 +-
 drivers/hwtracing/coresight/coresight-etm3x-core.c |   6 +-
 drivers/hwtracing/coresight/coresight-etm4x-core.c |  20 +-
 .../hwtracing/coresight/coresight-etm4x-sysfs.c    |  27 +-
 drivers/hwtracing/coresight/coresight-funnel.c     |  26 +-
 drivers/hwtracing/coresight/coresight-platform.c   | 269 ++++-----
 drivers/hwtracing/coresight/coresight-priv.h       |  36 +-
 drivers/hwtracing/coresight/coresight-replicator.c |  23 +-
 drivers/hwtracing/coresight/coresight-stm.c        |   6 +-
 drivers/hwtracing/coresight/coresight-sysfs.c      |  17 +-
 drivers/hwtracing/coresight/coresight-tmc-etf.c    |  26 +-
 drivers/hwtracing/coresight/coresight-tmc-etr.c    | 110 ++--
 drivers/hwtracing/coresight/coresight-tmc.h        |   2 +
 drivers/hwtracing/coresight/coresight-tpda.c       |  23 +-
 drivers/hwtracing/coresight/coresight-tpdm.c       |   4 +-
 drivers/hwtracing/coresight/coresight-tpiu.c       |   7 +-
 drivers/hwtracing/coresight/coresight-trbe.c       |   3 +-
 drivers/hwtracing/coresight/ultrasoc-smb.c         |  11 +-
 drivers/hwtracing/coresight/ultrasoc-smb.h         |   2 +-
 drivers/hwtracing/ptt/hisi_ptt.c                   | 454 +++++++++++++--
 drivers/hwtracing/ptt/hisi_ptt.h                   |  56 ++
 include/linux/coresight.h                          | 127 +++--
 include/linux/device.h                             |  11 +
 39 files changed, 1662 insertions(+), 742 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-dummy-sink.yaml
 create mode 100644 Documentation/devicetree/bindings/arm/arm,coresight-dummy-source.yaml
 create mode 100644 Documentation/trace/coresight/coresight-dummy.rst
 create mode 100644 drivers/hwtracing/coresight/coresight-dummy.c



More information about the linux-arm-kernel mailing list