devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/3] Add source filtering for multi-port output
@ 2024-07-05  8:51 Tao Zhang
  2024-07-05  8:51 ` [PATCH v1 1/3] dt-bindings: arm: qcom,coresight-static-replicator: Add property for source filtering Tao Zhang
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Tao Zhang @ 2024-07-05  8:51 UTC (permalink / raw)
  To: Mathieu Poirier, Suzuki K Poulose, Alexander Shishkin, Mike Leach,
	Rob Herring, Krzysztof Kozlowski, James Clark
  Cc: Tao Zhang, Jinlong Mao, Leo Yan, coresight, linux-arm-kernel,
	linux-kernel, devicetree, Tingwei Zhang, Yuanfang Zhang,
	Trilok Soni, Song Chai, linux-arm-msm, Jie Gan

In our hardware design, by combining a funnel and a replicator, it
implement a hardware device with one-to-one correspondence between
output ports and input ports. The programming usage on this device
is the same as funnel. The software uses a funnel and a static
replicator to implement the driver of this device. Since original
funnels only support a single output connection and original
replicator only support a single input connection, the code needs
to be modified to support this new feature. The following is a
typical topology diagram of multi-port output mechanism.
|----------|     |---------|     |----------|   |---------|
|  TPDM 0  |     | Source0 |     | Source 1 |   | TPDM 1  |
|----------|     |---------|     |----------|   |---------|
      |                |                |             |
      |                |                |             |
      |      --------- |                |             |
      |      |                          |             |
      |      |                          |             |
      |      |                          |             |
   \-------------/ ----------------------             |
    \  Funnel 0 /  |                                  |
     -----------   |     ------------------------------
          |        |     |
          |        |     |
        \------------------/
         \    Funnel 1    /     ----|
          \--------------/          |
                  |                 |----> Combine a funnel and a
                  |                 |      static replicator
          /-----------------\       |
         /    replicator 0   \  ----|
        /---------------------\
             |     |      |
             |     |      |-----------|
             |     |---------|        |
             |               |TPDM0   |TPDM1
             |            \-----------------/
             |             \   TPDA 0      /
             |              \-------------/
             |                    |
             |                    |
             |Source0/1           |
          \-------------------------------/
           \           Funnel 2          /
            \---------------------------/

Changes in V1:
1. Add a static replicator connect to a funnel to implement the
correspondence between the output ports and the input ports on
funnels.
-- Suzuki K Poulose
2. Add filter_src_dev and filter_src_dev phandle to
"coresight_connection" struct, and populate them if there is one.
-- Suzuki K Poulose
3. To look at the phandle and then fixup/remove the filter_src
device in fixup/remove connections.
-- Suzuki K Poulose
4. When TPDA reads DSB/CMB element size, it is implemented by
looking up filter src device in the connections.
-- Suzuki K Poulose

Tao Zhang (3):
  dt-bindings: arm: qcom,coresight-static-replicator: Add property for
    source filtering
  coresight: Add source filtering for multi-port output
  coresight-tpda: Optimize the function of reading element size

 .../arm/arm,coresight-static-replicator.yaml  | 18 +++-
 drivers/hwtracing/coresight/coresight-core.c  | 89 ++++++++++++++++---
 .../hwtracing/coresight/coresight-platform.c  | 13 +++
 drivers/hwtracing/coresight/coresight-tpda.c  |  6 +-
 include/linux/coresight.h                     |  5 ++
 5 files changed, 115 insertions(+), 16 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-07-11  8:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-05  8:51 [PATCH v1 0/3] Add source filtering for multi-port output Tao Zhang
2024-07-05  8:51 ` [PATCH v1 1/3] dt-bindings: arm: qcom,coresight-static-replicator: Add property for source filtering Tao Zhang
2024-07-05  9:02   ` Krzysztof Kozlowski
2024-07-09 10:38     ` Suzuki K Poulose
2024-07-05 10:38   ` Rob Herring (Arm)
2024-07-05 15:23     ` Tao Zhang
2024-07-06  5:22       ` Tao Zhang
2024-07-05  8:51 ` [PATCH v1 2/3] coresight: Add source filtering for multi-port output Tao Zhang
2024-07-09 13:42   ` Suzuki K Poulose
2024-07-11  8:20     ` Tao Zhang
2024-07-05  8:51 ` [PATCH v1 3/3] coresight-tpda: Optimize the function of reading element size Tao Zhang
2024-07-08 15:49   ` Suzuki K Poulose
2024-07-11  8:20     ` Tao Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).