Commit be7fc88d authored by Yuanfang Zhang's avatar Yuanfang Zhang Committed by Treehugger Robot
Browse files

UPSTREAM: coresight-etm4x: add isb() before reading the TRCSTATR



As recommended by section 4.3.7 ("Synchronization when using system
instructions to progrom the trace unit") of ARM IHI 0064H.b, the
self-hosted trace analyzer must perform a Context synchronization
event between writing to the TRCPRGCTLR and reading the TRCSTATR.
Additionally, add an ISB between the each read of TRCSTATR on
coresight_timeout() when using system instructions to program the
trace unit.

Bug: 254441685
Fixes: 1ab3bb9d ("coresight: etm4x: Add necessary synchronization for sysreg access")
Signed-off-by: default avatarYuanfang Zhang <quic_yuanfang@quicinc.com>
Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250116-etm_sync-v4-1-39f2b05e9514@quicinc.com


(cherry picked from commit 4ff6039f)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: Ieb1b69cea7534455213a9f928a358605d33acdbc
parent e386309e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment