Re: [PATCH v2 13/23] coresight: trbe: Simplify wrap status handling
From: Suzuki K Poulose
Date: Fri Nov 27 2026 - 10:20:55 EST
On 16/10/2026 17:55, Leo Yan wrote:
After explicitly decoding the TRBSR_EL1 EC/BSC values, unsupported or
unexpected stop reasons are handled before the WRAP check. And the
erratum and pointer checks is no longer relevant when deciding the
buffer wrap.
Remove the redundant checks and treat any remaining TRBSR_EL1.WRAP
status as a wrap event. This also means WRAP with BSC_NOT_STOPPED is
reported as an overflow instead of a spurious event, which prepares for
for TRBE wrap mode where collection continues and a maintenance
interrupt is raised on current write pointer wrap.
Signed-off-by: Leo Yan <leo.yan@xxxxxxx>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>