[PATCH v4 05/11] coresight: etm4x: Ensure context synchronization is not ignored

Yeoreum Yun yeoreum.yun at arm.com
Mon Oct 27 03:43:57 PDT 2025


Hi Suzuki,
> On 24/10/2025 17:45, Leo Yan wrote:
> > As recommended in section 4.3.7 "Synchronization of register updates" of
> > ARM IHI0064H.b, a self-hosted trace analyzer should always executes an
> > ISB instruction after programming the trace unit registers.
> >
> > An ISB works as a context synchronization event; a DSB is not required.
> > Removes the redundant barrier in the enabling flow.
>
> It is required for MMIO based instances and must be retained.

I think it seems fine. since the the etm4x device mmio is mapped as
Device-nGnRE and according to the section Leo mention:

  Synchronization when using the memory-mapped interface
  ..
  When disabling or enabling the trace unit, the trace analyzer must poll TRCSTATR to check the trace unit is either
  idle or not idle, as described in Use of the trace unit main enable bit on page 4-169:
    • When the memory is marked as Device-nGnRE or stronger.
      — Write to enable or disable the trace unit.
      — Poll TRCSTATR to ensure the previous write has completed.
      — Execute an ISB operation.

Therefore, we can omit the dsb in here.

[...]

Thanks.

--
Sincerely,
Yeoreum Yun



More information about the linux-arm-kernel mailing list