All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] perf: Order SPE and TRBE padding before publishing AUX head
@ 2026-10-15 15:51 Leo Yan
  2026-10-15 15:51 ` [PATCH 1/2] perf: arm_spe: Order " Leo Yan
  2026-10-15 15:51 ` [PATCH 2/2] coresight: trbe: " Leo Yan
  0 siblings, 2 replies; 5+ messages in thread
From: Leo Yan @ 2026-10-15 15:51 UTC (permalink / raw)
  To: Will Deacon, Mark Rutland, Suzuki K Poulose, Mike Leach,
	James Clark, Alexander Shishkin, Anshuman Khandual,
	Mathieu Poirier
  Cc: linux-arm-kernel, linux-perf-users, linux-kernel, coresight,
	Leo Yan

SPE and TRBE write padding into their AUX buffers before advancing
aux_head. Add the missing write barriers so that a userspace reader on
another CPU cannot observe the new head before the padding stores
become visible.

AUX producers must make their data visible before publishing aux_head.
The required synchronization depends on the trace hardware and CPU
memory model, so the barriers belong in the drivers rather than in
perf_aux_output_skip() or perf_aux_output_end(). The TRBE change also
covers padding inserted by the overwrite erratum workaround before
perf_aux_output_end().

Signed-off-by: Leo Yan <leo.yan@arm.com>
---
Leo Yan (2):
      perf: arm_spe: Order padding before publishing AUX head
      coresight: trbe: Order padding before publishing AUX head

 drivers/hwtracing/coresight/coresight-trbe.c | 2 ++
 drivers/perf/arm_spe_pmu.c                   | 5 ++++-
 2 files changed, 6 insertions(+), 1 deletion(-)
---
base-commit: 0fcb05b72344f40806cbe810de8872f1698bf053
change-id: 20261015-add_barriers_for_perf_aux_output_skip-70356815b2bd

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



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

end of thread, other threads:[~2026-10-15 16:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-15 15:51 [PATCH 0/2] perf: Order SPE and TRBE padding before publishing AUX head Leo Yan
2026-10-15 15:51 ` [PATCH 1/2] perf: arm_spe: Order " Leo Yan
2026-10-15 16:03   ` sashiko-bot
2026-10-15 15:51 ` [PATCH 2/2] coresight: trbe: " Leo Yan
2026-10-15 16:09   ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.