31 Aug, 2016

2 commits

  • Both ETMv3 and ETMv4 drivers are declaring an 'enum etm_addr_type',
    creating reduncancy.

    This patch removes the enumeration from the driver files and adds
    it to a common header.

    Signed-off-by: Mathieu Poirier
    Signed-off-by: Greg Kroah-Hartman

    Mathieu Poirier
     
  • The Coresight ETMv4 architecture provides a way to request to keep the
    power to the trace unit. This might help to collect the traces without
    the need to disable the CPU power management(entering/exiting deeper
    idle states).

    Trace PowerDown Control Register provides powerup request bit which when
    set requests the system to retain power to the trace unit and emulate
    the powerdown request.

    Typically, a trace unit drives a signal to the power controller to
    request that the trace unit core power domain is powered up. However,
    if the trace unit and the CPU are in the same power domain then the
    implementation might combine the trace unit power up status with a
    signal from the CPU.

    This patch requests to retain power to the trace unit when active and
    to remove when inactive. Note this change will only request but the
    behaviour depends on the implementation. However, it matches the
    exact behaviour expected when the external debugger is connected with
    respect to CPU power states.

    Cc: Mathieu Poirier
    Signed-off-by: Sudeep Holla
    Signed-off-by: Mathieu Poirier
    Signed-off-by: Greg Kroah-Hartman

    Sudeep Holla
     

04 May, 2016

1 commit

  • Because this operation exceed the range of boolean,
    so we should modify q_support to unit8 bit.
    drvdata->q_support = BMVAL(etmidr0, 15, 16)

    Signed-off-by: Li Pengcheng
    Signed-off-by: Li Zhong
    Signed-off-by: Mathieu Poirier
    Signed-off-by: Greg Kroah-Hartman

    Li Pengcheng
     

02 May, 2016

5 commits


06 Aug, 2015

2 commits

  • Like ETTv3, ETMv4 also needs the similar modifications to support Context
    ID tracing when PID namespace is enabled.

    Signed-off-by: Chunyan Zhang
    Signed-off-by: Mathieu Poirier
    Signed-off-by: Greg Kroah-Hartman

    Chunyan Zhang
     
  • 'ctxid_val' array was used to store the value of ETM context ID comparator
    which actually stores the process ID to be traced, so using 'ctxid_pid' as
    its name instead make it easier to understand.

    This patch also changes the ABI, it is normally not allowed, but
    fortunately it is a testing ABI and very new for now. Nevertheless,
    if you don't think it should be changed, we could always add an alias
    for userspace.

    Signed-off-by: Chunyan Zhang
    Reviewed-by: Mark Brown
    Signed-off-by: Mathieu Poirier
    Signed-off-by: Greg Kroah-Hartman

    Chunyan Zhang
     

25 May, 2015

1 commit