From: Yeoreum Yun <yeoreum.yun@arm.com>
To: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Leo Yan <leo.yan@arm.com>, Mike Leach <mike.leach@linaro.org>,
James Clark <james.clark@linaro.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Yabin Cui <yabinc@google.com>, Keita Morisaki <keyz@google.com>,
Yuanfang Zhang <quic_yuanfang@quicinc.com>,
coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v4 05/11] coresight: etm4x: Ensure context synchronization is not ignored
Date: Mon, 27 Oct 2025 10:43:57 +0000 [thread overview]
Message-ID: <aP9M7W9ufz0NGt80@e129823.arm.com> (raw)
In-Reply-To: <503e673c-441b-46dc-89d0-fb54ac81ec60@arm.com>
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
next prev parent reply other threads:[~2025-10-27 10:44 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-24 16:45 [PATCH v4 00/11] CoreSight: Refactor power management for ETMv3/4 Leo Yan
2025-10-24 16:45 ` [PATCH v4 01/11] coresight: Change device mode to atomic type Leo Yan
2025-10-24 16:45 ` [PATCH v4 02/11] coresight: etm4x: Always set tracer's device mode on target CPU Leo Yan
2025-10-24 16:45 ` [PATCH v4 03/11] coresight: etm3x: " Leo Yan
2025-10-24 16:45 ` [PATCH v4 04/11] coresight: etm4x: Correct polling IDLE bit Leo Yan
2025-10-24 16:45 ` [PATCH v4 05/11] coresight: etm4x: Ensure context synchronization is not ignored Leo Yan
2025-10-27 9:49 ` Suzuki K Poulose
2025-10-27 10:43 ` Yeoreum Yun [this message]
2025-10-27 11:31 ` Suzuki K Poulose
2025-11-03 11:03 ` Leo Yan
2025-10-24 16:45 ` [PATCH v4 06/11] coresight: etm4x: Add context synchronization before enabling trace Leo Yan
2025-10-27 8:48 ` Yeoreum Yun
2025-10-24 16:45 ` [PATCH v4 07/11] coresight: etm4x: Properly control filter in CPU idle with FEAT_TRF Leo Yan
2025-10-27 8:48 ` Yeoreum Yun
2025-11-03 14:30 ` Suzuki K Poulose
2025-11-03 15:20 ` Leo Yan
2025-10-24 16:45 ` [PATCH v4 08/11] coresight: etm4x: Remove the state_needs_restore flag Leo Yan
2025-10-24 16:45 ` [PATCH v4 09/11] coresight: etm4x: Add flag to control single-shot restart Leo Yan
2025-10-27 8:53 ` Yeoreum Yun
2025-10-24 16:45 ` [PATCH v4 10/11] coresight: etm4x: Retain sequencer state Leo Yan
2025-10-24 16:45 ` [PATCH v4 11/11] coresight: etm4x: Reuse normal enable and disable logic in CPU idle Leo Yan
2025-10-27 8:54 ` Yeoreum Yun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aP9M7W9ufz0NGt80@e129823.arm.com \
--to=yeoreum.yun@arm.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=coresight@lists.linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=james.clark@linaro.org \
--cc=keyz@google.com \
--cc=leo.yan@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=mike.leach@linaro.org \
--cc=quic_yuanfang@quicinc.com \
--cc=suzuki.poulose@arm.com \
--cc=yabinc@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).