mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] coresight: Allow guests to be traced when FEAT_TRF and VHE are present
@ 2023-08-04  8:52 James Clark
  2023-08-04  8:52 ` [PATCH 1/2] arm64/sysreg: Move TRFCR definitions to sysreg James Clark
  2023-08-04  8:52 ` [PATCH 2/2] coresight: Allow guests to be traced when FEAT_TRF and VHE are present James Clark
  0 siblings, 2 replies; 7+ messages in thread
From: James Clark @ 2023-08-04  8:52 UTC (permalink / raw)
  To: coresight, linux-arm-kernel
  Cc: James Clark, Catalin Marinas, Will Deacon, Suzuki K Poulose,
	Mike Leach, Leo Yan, Alexander Shishkin, Mark Brown, James Morse,
	Kristina Martsenko, Anshuman Khandual, Rob Herring, Jintack Lim,
	Joey Gouly, linux-kernel

The first commit moves the register to sysreg because I add the EL12
version in the second commit. I couldn't really think of the best way
to make it fit in sysreg without any changes, because all the fields are
shared between EL1 and EL2 except for the CX bit which was named
differently for that reason in the original definition. The CX bit only
exists in TRFCR_EL2.

The test results have some single spurious EL2 addresses, but I don't
think this is an issue with this patchset because it happens in the
host-userspace case which maintains the existing programming of
TRFCR. It's likely an issue with the model but I will follow it up
separately.

James Clark (2):
  arm64/sysreg: Move TRFCR definitions to sysreg
  coresight: Allow guests to be traced when FEAT_TRF and VHE are present

 arch/arm64/include/asm/sysreg.h               | 12 -----
 arch/arm64/tools/sysreg                       | 26 ++++++++++
 .../coresight/coresight-etm4x-core.c          | 47 ++++++++++++++++---
 drivers/hwtracing/coresight/coresight-etm4x.h |  2 +-
 drivers/hwtracing/coresight/coresight-priv.h  |  3 ++
 5 files changed, 70 insertions(+), 20 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2023-08-04 16:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-04  8:52 [PATCH 0/2] coresight: Allow guests to be traced when FEAT_TRF and VHE are present James Clark
2023-08-04  8:52 ` [PATCH 1/2] arm64/sysreg: Move TRFCR definitions to sysreg James Clark
2023-08-04 12:10   ` Mark Brown
2023-08-04 15:55     ` James Clark
2023-08-04 16:03       ` Mark Brown
2023-08-04  8:52 ` [PATCH 2/2] coresight: Allow guests to be traced when FEAT_TRF and VHE are present James Clark
2023-08-04 12:13   ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®