Re: [PATCH v2 22/23] coresight: trbe: Restart trace source for stopped buffers
From: Suzuki K Poulose
Date: Tue Dec 01 2026 - 07:14:53 EST
On 16/10/2026 17:55, Leo Yan wrote:
When TRBSR reports a stopped buffer, the IRQ handler closes the current
AUX buffer and programs TRBE for the next run. This creates a trace
discontinuity. User tool has to reset the decoder when moving to the
next AUX data block, which can reduce decoded trace coverage.
Stop and restart the trace source around TRBE reprogramming for stopped
buffers. This emits ASYNC packets, allowing the decoder to recognize
discontinuity without a full reset.
This duplicates part of the trace source enable/disable code in the
ETMv4 driver. Reusing that code would require splitting the ETMv4
callbacks into finer-grained helpers that TRBE can call, which would
make the change much larger. Keep the TRBE change self-contained for
now.
This is risky. There are implementations of ETE that use MMIO access
and this will break such systems. I would rather do it properly with
the etmv4 driver code refactoring.
Suzuki