[PATCH v1 0/8] Add cmb dataset support for TPDM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Continuous multi-bit (CMB) is responsible for collection of CMB data sets.
It monitors a bus of related signals (eg, a counter value) and an associated valid signal.

This patch series adds support to config of CMB registers.
Element Creation:
  CMB_CR.mode : Continuous mode or Trace on Change mode(cmb_mode)

Pattern Match Output (usually to CTI):
  CMB_XPR : Trigger pattern register value(cmb_trig_patt_val)
  CMB_XPMR : Trigger pattern mask register value(cmb_trig_patt_mask)

Timestamp Request Based on Input Pattern Match:
  CMB_TPR : Timestamp pattern register value(cmb_patt_val)
  CMB_TPMR : Timestamp pattern mask register value(cmb_patt_mask)
  CMB_TIER.patt_tsenab : Timestamps are requested upon CMB interface pattern match via
                         setting this bit to 1(cmb_patt_ts)

Timestamp Request Based on Input (usually from CTI):
  CMB_TIER.xtrig_tsenab : Timestamps are requested upon CMB cross trigger interface
                          timestamp request via setting this bit to 1(cmb_trig_ts)

Mux Select Registers:
  CMB_MSR : Configure Mux select registers(cmb_msr)

Once this series patches are applied properly, the new tpdm nodes should be observed at the tpdm path.
e.g.
/sys/devices/platform/soc@0/10c29000.tpdm/tpdm1 # ls -l | grep cmb

-rw-r--r--    1 root     0             4096 Jan  1 00:00 cmb_mode
-rw-r--r--    1 root     0             4096 Jan  1 00:00 cmb_msr
-rw-r--r--    1 root     0             4096 Jan  1 00:00 cmb_patt_mask
-rw-r--r--    1 root     0             4096 Jan  1 00:00 cmb_patt_ts
-rw-r--r--    1 root     0             4096 Jan  1 00:22 cmb_patt_val
-rw-r--r--    1 root     0             4096 Jan  1 00:59 cmb_trig_patt_mask
-rw-r--r--    1 root     0             4096 Jan  1 00:57 cmb_trig_patt_val
-rw-r--r--    1 root     0             4096 Jan  1 00:00 cmb_trig_ts
-rw-r--r--    1 root     0             4096 Jan  1 00:58 cmb_ts_all

This patch series depends on:
[v3,0/11] Add support to configure TPDM DSB subunit
https://patchwork.kernel.org/project/linux-arm-kernel/cover/1679551448-19160-1-git-send-email-quic_taozha@xxxxxxxxxxx/

Codelinaro link:
https://git.codelinaro.org/clo/linux-kernel/coresight/-/commits/tpdm-cmb-v1

Mao Jinlong (8):
  coresight-tpdm: Add CMB dataset support
  coresight-tpdm: Add support to configure CMB collection mode
  coresight-tpdm: Add pattern registers support for CMB data set
  coresight-tpdm: Add timestamp control register support for the CMB
  coresight-tpdm: Add msr register support for CMB
  dt-bindings: arm: Add support for TPDM CMB MSR register
  coresight-tpda: Add support to configure CMB element size
  dt-bindings: arm: Add support for TPDM CMB element size

 .../testing/sysfs-bus-coresight-devices-tpdm  |  63 +++
 .../bindings/arm/qcom,coresight-tpdm.yaml     |  26 +
 drivers/hwtracing/coresight/coresight-tpda.c  |  33 +-
 drivers/hwtracing/coresight/coresight-tpda.h  |   4 +
 drivers/hwtracing/coresight/coresight-tpdm.c  | 447 +++++++++++++++++-
 drivers/hwtracing/coresight/coresight-tpdm.h  |  60 +++
 6 files changed, 626 insertions(+), 7 deletions(-)

-- 
2.39.0




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux