Re: [PATCH v3 0/3] coresight: add static TPDM support

From: Jie Gan
Date: Sun Oct 26 2025 - 21:13:25 EST




On 10/13/2025 2:11 PM, Jie Gan wrote:
The static TPDM function as a dummy source, however, it is essential
to enable the port connected to the TPDA and configure the element size.
Without this, the TPDA cannot correctly receive trace data from the
static TPDM. Since the static TPDM does not require MMIO mapping to
access its registers, a clock controller is not mandatory for its
operation.

Meanwhile, a function has been introduced to determine whether the
current csdev is a static TPDM. This check enables the TPDA device
to correctly read the element size and activate its port accordingly.
Otherwise the TPDA cannot receive the trace data from the TPDM device.


Gentle reminder.

Thanks,
Jie

Changes in V3:
1. rebased on next-20251010
Link to V2 - https://lore.kernel.org/all/20250911-add_static_tpdm_support-v2-0-608559d36f74@xxxxxxxxxxxxxxxx/

Changes in V2:
1. Remove the dependency.
2. Collect tags from Rob and Konard for patchset 1 and patchset 3.
Link to V1 - https://lore.kernel.org/all/20250822103008.1029-1-jie.gan@xxxxxxxxxxxxxxxx/

Signed-off-by: Jie Gan <jie.gan@xxxxxxxxxxxxxxxx>
---
Jie Gan (3):
dt-bindings: arm: document the static TPDM compatible
coresight: tpdm: add static tpdm support
arm64: dts: qcom: lemans: enable static TPDM

.../bindings/arm/qcom,coresight-tpdm.yaml | 23 +++-
arch/arm64/boot/dts/qcom/lemans.dtsi | 105 +++++++++++++++
drivers/hwtracing/coresight/coresight-tpda.c | 9 ++
drivers/hwtracing/coresight/coresight-tpdm.c | 148 ++++++++++++++++-----
drivers/hwtracing/coresight/coresight-tpdm.h | 8 ++
5 files changed, 256 insertions(+), 37 deletions(-)
---
base-commit: 2b763d4652393c90eaa771a5164502ec9dd965ae
change-id: 20251013-add-static-tpdm-support-330b71d6d0f8

Best regards,