1. Apr 10, 2019
  2. May 03, 2019
    • Leo Yan's avatar
      coresight: funnel: Support static funnel · 78e6427b
      Leo Yan authored
      
      
      Since CoreSight hardware topology can use a 'hidden' funnel in the
      trace data path, this kind funnel doesn't have register for accessing
      and is used by default from hardware design perspective.  Below is an
      example for related hardware topology:
      
        +------+  +------+
        | cpu0 |->| ETM  |-\
        +------+  +------+  \-> +--------+  +-----+
         ......                 | Funnel |->| ETF |-\    Hidden funnel
        +------+  +------+  /-> +--------+  +-----+  \        |
        | cpu3 |->| ETM  |-/                          \       V
        +------+  +------+                             \-> +--------+
                                                           | Funnel |-> ...
        +------+  +------+                             /-> +--------+
        | cpu4 |->| ETM  |-\                          /
        +------+  +------+  \-> +--------+  +-----+  /
         ......                 | Funnel |->| ETF |-/
        +------+  +------+  /-> +--------+  +-----+
        | cpu7 |->| ETM  |-/
        +------+  +------+
      
      The CoreSight funnel driver only supports dynamic funnel with
      registration register resource, thus it cannot support for the static
      funnel case and it's impossible to create trace data path for this case.
      
      This patch is to extend CoreSight funnel driver to support both for
      static funnel and dynamic funnel.  For the dynamic funnel it reuses the
      code existed in the driver, for static funnel the driver will support
      device probe if without providing register resource and the driver skips
      registers accessing when detect the register base is NULL.
      
      Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
      Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
      Cc: Wanglai Shi <shiwanglai@hisilicon.com>
      Suggested-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
      Signed-off-by: default avatarLeo Yan <leo.yan@linaro.org>
      Reviewed-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
      Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      78e6427b
    • Leo Yan's avatar
      dt-bindings: arm: coresight: Unify funnel DT binding · d3b18ad6
      Leo Yan authored
      
      
      Following the same fashion with replicator DT binding, this patch is to
      unify the DT binding for funnel to support static and dynamic modes;
      finally we get the funnel DT binding as below:
      
      Before patch:
      
        Static funnel, aka. non-configurable funnel:
          Not supported;
      
        Dynamic funnel, aka. configurable funnel:
          "arm,coresight-funnel", "arm,primecell";
      
      After patch:
      
        Static funnel:
          "arm,coresight-static-funnel";
      
        Dynamic funnel:
          "arm,coresight-dynamic-funnel", "arm,primecell";
          "arm,coresight-funnel", "arm,primecell"; (obsolete)
      
      At the end of this patch, it gives an example for static funnel DT
      binding, and updates the dynamic funnel example.
      
      Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
      Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
      Cc: Wanglai Shi <shiwanglai@hisilicon.com>
      Signed-off-by: default avatarLeo Yan <leo.yan@linaro.org>
      Reviewed-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d3b18ad6
    • Leo Yan's avatar
      coresight: replicator: Add new device id for static replicator · 5c84b87b
      Leo Yan authored
      
      
      This patch adds a device id for the new static replicator compatible
      string; it changes the driver name from "coresight-replicator" to
      "coresight-static-replicator" as well.
      
      This patch also gives warning when use the replicator obsolete DT
      binding.
      
      Signed-off-by: default avatarLeo Yan <leo.yan@linaro.org>
      Reviewed-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
      Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5c84b87b
    • Leo Yan's avatar
      dt-bindings: arm: coresight: Add new compatible for static replicator · 635b90f4
      Leo Yan authored
      
      
      CoreSight uses below bindings for replicator:
      
        Dynamic replicator, aka. configurable replicator:
          "arm,coresight-dynamic-replicator", "arm,primecell";
      
        Static replicator, aka. non-configurable replicator:
          "arm,coresight-replicator";
      
      The compatible string "arm,coresight-replicator" is not an explicit
      naming to express the replicator is 'static'.  To unify the naming
      convention, this patch introduces a new compatible string
      "arm,coresight-static-replicator" for the static replicator; the
      compatible string "arm,coresight-replicator" is kept for backward
      compatibility, but tag it as obsolete and suggest to use the new
      compatible string.
      
      As result CoreSight replicator have below bindings:
      
        Dynamic replicator:
          "arm,coresight-dynamic-replicator", "arm,primecell";
      
        Static replicator:
          "arm,coresight-static-replicator";
          "arm,coresight-replicator"; (obsolete)
      
      Signed-off-by: default avatarLeo Yan <leo.yan@linaro.org>
      Reviewed-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      635b90f4
  3. May 02, 2019