1. 26 4月, 2019 27 次提交
  2. 01 3月, 2019 1 次提交
  3. 26 2月, 2019 3 次提交
    • S
      coresight: etm4x: Add support to enable ETMv4.2 · 5666dfd1
      Sai Prakash Ranjan 提交于
      SDM845 has ETMv4.2 and can use the existing etm4x driver.
      But the current etm driver checks only for ETMv4.0 and
      errors out for other etm4x versions. This patch adds this
      missing support to enable SoC's with ETMv4x to use same
      driver by checking only the ETM architecture major version
      number.
      
      Without this change, we get below error during etm probe:
      
      / # dmesg | grep etm
      [    6.660093] coresight-etm4x: probe of 7040000.etm failed with error -22
      [    6.666902] coresight-etm4x: probe of 7140000.etm failed with error -22
      [    6.673708] coresight-etm4x: probe of 7240000.etm failed with error -22
      [    6.680511] coresight-etm4x: probe of 7340000.etm failed with error -22
      [    6.687313] coresight-etm4x: probe of 7440000.etm failed with error -22
      [    6.694113] coresight-etm4x: probe of 7540000.etm failed with error -22
      [    6.700914] coresight-etm4x: probe of 7640000.etm failed with error -22
      [    6.707717] coresight-etm4x: probe of 7740000.etm failed with error -22
      
      With this change, etm probe is successful:
      
      / # dmesg | grep etm
      [    6.659198] coresight-etm4x 7040000.etm: CPU0: ETM v4.2 initialized
      [    6.665848] coresight-etm4x 7140000.etm: CPU1: ETM v4.2 initialized
      [    6.672493] coresight-etm4x 7240000.etm: CPU2: ETM v4.2 initialized
      [    6.679129] coresight-etm4x 7340000.etm: CPU3: ETM v4.2 initialized
      [    6.685770] coresight-etm4x 7440000.etm: CPU4: ETM v4.2 initialized
      [    6.692403] coresight-etm4x 7540000.etm: CPU5: ETM v4.2 initialized
      [    6.699024] coresight-etm4x 7640000.etm: CPU6: ETM v4.2 initialized
      [    6.705646] coresight-etm4x 7740000.etm: CPU7: ETM v4.2 initialized
      Signed-off-by: NSai Prakash Ranjan <saiprakash.ranjan@codeaurora.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>
      5666dfd1
    • M
      ARM: 8837/1: coresight: etmv4: Update ID register table to add UCI support · 28941701
      Mike Leach 提交于
      Adds macro to enable UCI entries to be added to AMBA ID tables.
      
      Updates the ID register tables to contain a UCI entry for the A35 ETM
      device to allow correct matching of driver in the amba bus code.
      Signed-off-by: NMike Leach <mike.leach@linaro.org>
      Reviewed-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Reviewed-by: NSuzuki K Poulose <suzuki.poulose@arm.com>
      Tested-by: NSai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      28941701
    • M
      ARM: 8838/1: drivers: amba: Updates to component identification for driver matching. · e85fa28e
      Mike Leach 提交于
      The CoreSight specification (ARM IHI 0029E), updates the ID register
      requirements for components on an AMBA bus, to cover both traditional
      ARM Primecell type devices, and newer CoreSight and other components.
      
      The Peripheral ID (PID) / Component ID (CID) pair is extended in certain
      cases to uniquely identify components. CoreSight components related to
      a single function can share Peripheral ID values, and must be further
      identified using a Unique Component Identifier (UCI). e.g. the ETM, CTI,
      PMU and Debug hardware of the A35 all share the same PID.
      
      Bits 15:12 of the CID are defined to be the device class.
      Class 0xF remains for PrimeCell and legacy components.
      Class 0x9 defines the component as CoreSight (CORESIGHT_CID above)
      Class 0x0, 0x1, 0xB, 0xE define components that do not have driver support
      at present.
      Class 0x2-0x8,0xA and 0xD-0xD are presently reserved.
      
      The specification futher defines which classes of device use the standard
      CID/PID pair, and when additional ID registers are required.
      
      This patch introduces the amba_cs_uci_id structure which will be used in
      all coresight drivers for indentification via the private data pointer in
      the amba_id structure.
      
      Existing drivers that currently use the amba_id->data pointer for private
      data are updated to use the amba_cs_uci_id->data pointer. Macros and
      inline functions are added to simplify this code.
      Signed-off-by: NMike Leach <mike.leach@linaro.org>
      Reviewed-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Reviewed-by: NSuzuki K Poulose <suzuki.poulose@arm.com>
      Tested-by: NSai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      e85fa28e
  4. 23 2月, 2019 1 次提交
  5. 21 2月, 2019 6 次提交
  6. 08 2月, 2019 2 次提交