linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 00/11] CoreSight: Refactor power management for ETMv3/4
@ 2025-10-24 16:45 Leo Yan
  2025-10-24 16:45 ` [PATCH v4 01/11] coresight: Change device mode to atomic type Leo Yan
                   ` (10 more replies)
  0 siblings, 11 replies; 22+ messages in thread
From: Leo Yan @ 2025-10-24 16:45 UTC (permalink / raw)
  To: Suzuki K Poulose, Mike Leach, James Clark, Yeoreum Yun,
	Greg Kroah-Hartman, Alexander Shishkin, Yabin Cui, Keita Morisaki,
	Yuanfang Zhang
  Cc: coresight, linux-arm-kernel, Leo Yan

This series is extracted from the CoreSight power management fixes and
refactoring [1], focusing on ETMv3/4 power management.  The remaining
parts will be sent out separately. Hopefully, this makes things easier
for us to review and merge.

Compared to the previous version, only one new patch has been added — to
retain the sequencer state for ETMv4. No other changes are included.

This series has been verified on Juno-r2 platform.

[1] https://lore.kernel.org/linux-arm-kernel/20250915-arm_coresight_power_management_fix-v3-0-ea49e91124ec@arm.com/

---
Changes in v4:
- Added patch 10 for retaining sequencer state in ETMv4 driver (Mike).
- Added Mike's review tags.
- Added James' test tags.
- Link to v3: https://lore.kernel.org/r/20250915-arm_coresight_power_management_fix-v3-0-ea49e91124ec@arm.com

Changes in v3:
- Fixed building failure in ETMv3 driver (kernel test robot).
- Refactoring ETMv3 change for checking CPU ID (Levi).
- Fixed NULL pointer issue during CPU idle (James).
- Fixed lockdep complaint for HARDIRQ-safe and HARDIRA-unsafe (James).
- Fixed acquiring mutex in atomic context (James).
- Rebased on the latest coresight-next branch.
- Link to v2: https://lore.kernel.org/r/20250701-arm_cs_pm_fix_v3-v2-0-23ebb864fcc1@arm.com

Changes in v2:
- Refactored ETMv4 suspend and resume for reusing the normal enabling
  and disabling flows (James).
- Used a per-CPU structure to maintain path pointers (James).
- Supported helpers in CPU PM flows (James).
- Fixed the SMP-safe access to device mode.
- Fixed the context synchronization in ETMv4x driver.
- Link to v1: https://lore.kernel.org/linux-arm-kernel/20250516160742.1200904-1-leo.yan@arm.com/

Signed-off-by: Leo Yan <leo.yan@arm.com>

---
Leo Yan (11):
      coresight: Change device mode to atomic type
      coresight: etm4x: Always set tracer's device mode on target CPU
      coresight: etm3x: Always set tracer's device mode on target CPU
      coresight: etm4x: Correct polling IDLE bit
      coresight: etm4x: Ensure context synchronization is not ignored
      coresight: etm4x: Add context synchronization before enabling trace
      coresight: etm4x: Properly control filter in CPU idle with FEAT_TRF
      coresight: etm4x: Remove the state_needs_restore flag
      coresight: etm4x: Add flag to control single-shot restart
      coresight: etm4x: Retain sequencer state
      coresight: etm4x: Reuse normal enable and disable logic in CPU idle

 drivers/hwtracing/coresight/coresight-etm3x-core.c |  59 ++--
 drivers/hwtracing/coresight/coresight-etm4x-core.c | 372 +++++++--------------
 drivers/hwtracing/coresight/coresight-etm4x.h      |  62 ----
 include/linux/coresight.h                          |  25 +-
 4 files changed, 175 insertions(+), 343 deletions(-)
---
base-commit: 6fab32bb6508abbb8b7b1c5498e44f0c32320ed5
change-id: 20250909-arm_coresight_power_management_fix-139873f942e8

Best regards,
-- 
Leo Yan <leo.yan@arm.com>



^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2025-11-03 15:21 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).