1. 04 5月, 2019 17 次提交
  2. 03 5月, 2019 5 次提交
    • G
      Merge tag 'misc-habanalabs-next-2019-05-03' of... · 16102736
      Greg Kroah-Hartman 提交于
      Merge tag 'misc-habanalabs-next-2019-05-03' of git://people.freedesktop.org/~gabbayo/linux into char-misc-next
      
      Oded writes:
      
      This tag contains further changes for kernel 5.2.
      
      The changes are either bug fixes or simple re-factoring of existing code.
      The notable changes are:
      
      - Add missing fields in the bmon structure that is passed in the debug
        IOCTL when the user wants to configure the bus monitor.
      
      - Use the dedicated device-CPU accessible memory pool for all host memory
        allocations that are accessible directly by the embedded CPU. This is
        needed to enforce certain restrictions we have due to the embedded CPU's
        architecture.
      
      - Manipulate DMA addresses only inside ASIC-specific files. This is needed
        to better support future ASICs code.
      
      Other minor changes include:
      
      - Move pr_fmt() to c files to avoid dependency in include order.
      
      - Remove call to CS parsing function for workloads that originates from
        the driver and remove dead code as a result from this change.
      
      - Update names of structure members and labels to better reflect their
        usage.
      
      - When moving the dram PCI bar aperture, return the old aperture address
        range instead of error code. This will allow us to restore the old
        address range in a simpler fashion.
      
      * tag 'misc-habanalabs-next-2019-05-03' of git://people.freedesktop.org/~gabbayo/linux:
        habanalabs: Update CPU DMA memory label name
        habanalabs: Update CPU DMA pool label name
        habanalabs: increase timeout if working with simulator
        habanalabs: remove condition that is always true
        habanalabs: remove redundant member from parser struct
        habanalabs: Manipulate DMA addresses in ASIC functions
        habanalabs: rename functions to improve code readability
        habanalabs: remove call to cs_parser()
        habanalabs: Use single pool for CPU accessible host memory
        habanalabs: return old dram bar address upon change
        habanalabs: rename restore to ctx_switch when appropriate
        habanalabs: use ASIC functions interface for rreg/wreg
        uapi/habanalabs: add missing fields in bmon params
        habanalabs: re-factor goya_parse_cb_no_ext_queue()
        habanalabs: Cancel pr_fmt() definition dependency on includes order
      16102736
    • L
      coresight: funnel: Support static funnel · 78e6427b
      Leo Yan 提交于
      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: NSuzuki K Poulose <suzuki.poulose@arm.com>
      Signed-off-by: NLeo Yan <leo.yan@linaro.org>
      Reviewed-by: NSuzuki K Poulose <suzuki.poulose@arm.com>
      Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      78e6427b
    • L
      dt-bindings: arm: coresight: Unify funnel DT binding · d3b18ad6
      Leo Yan 提交于
      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: NLeo Yan <leo.yan@linaro.org>
      Reviewed-by: NSuzuki K Poulose <suzuki.poulose@arm.com>
      Reviewed-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d3b18ad6
    • L
      coresight: replicator: Add new device id for static replicator · 5c84b87b
      Leo Yan 提交于
      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: NLeo Yan <leo.yan@linaro.org>
      Reviewed-by: NSuzuki K Poulose <suzuki.poulose@arm.com>
      Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5c84b87b
    • L
      dt-bindings: arm: coresight: Add new compatible for static replicator · 635b90f4
      Leo Yan 提交于
      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: NLeo Yan <leo.yan@linaro.org>
      Reviewed-by: NSuzuki K Poulose <suzuki.poulose@arm.com>
      Reviewed-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      635b90f4
  3. 02 5月, 2019 18 次提交