Skip to content
Commit 78bd0151 authored by Suzuki Poulose's avatar Suzuki Poulose Committed by Qais Yousef
Browse files

BACKPORT: coresight: etm4x: Save restore TRFCR_EL1



When the CPU enters a low power mode, the TRFCR_EL1 contents could be
reset. Thus we need to save/restore the TRFCR_EL1 along with the ETM4x
registers to allow the tracing.

The TRFCR related helpers are in a new header file, as we need to use
them for TRBE in the later patches.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Leo Yan <leo.yan@linaro.org>
Reviewed-by: Anshuman Khandual's avatarAnshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Suzuki Poulose's avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20210914102641.1852544-2-suzuki.poulose@arm.com


[Fixed cosmetic details]
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
(cherry picked from commit 937d3f58)
Signed-off-by: Qais Yousef's avatarQais Yousef <qais.yousef@arm.com>
[Conflict in in drivers/hwtracing/coresight/coresight-etm4x-core.c,
unnecessary new includes were removed]
Change-Id: Id81d9505e86664c09ec6876e48c4e9c2d945503e
parent f9940002
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment