The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/1] coresight: fix issue with insufficient claim tags
@ 2025-10-21 23:45 Mike Leach
  2025-10-21 23:45 ` [PATCH 1/1] coresight: fix issue where coresight component has no claimtags Mike Leach
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Leach @ 2025-10-21 23:45 UTC (permalink / raw)
  To: coresight, linux-arm-kernel, linux-kernel
  Cc: suzuki.poulose, leo.yan, james.clark, Mike Leach

All CoreSight compliant components have an implementation defined number
of 0 to 8 claim tag bits in the claim tag registers.

These are used to claim the CoreSight resources by system agents.

ARM recommends implementions have 4 claim tag registers.

The CoreSight drivers implement a 2 claim tag bit protocol to allow
self hosted and external debug agents to manage access to the hardware.

However, if there are less than 2 claim tags available the protocol
incorrectly returns an error on device claim, as no checks are made.

If insufficient claim tags are present in a component then the protocol
must return success on claim / disclaim to allow components to be used
normally.

Changes read the CLAIMSET bits to establish the number of available tags,
and adjust the claim returns accordingly.

Applies to coresignt/next

Mike Leach (1):
  coresight: fix issue where coresight component has no claimtags

 drivers/hwtracing/coresight/coresight-core.c | 26 ++++++++++++++++++++
 drivers/hwtracing/coresight/coresight-priv.h |  8 ++++++
 2 files changed, 34 insertions(+)

-- 
2.32.0


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

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-21 23:45 [PATCH 0/1] coresight: fix issue with insufficient claim tags Mike Leach
2025-10-21 23:45 ` [PATCH 1/1] coresight: fix issue where coresight component has no claimtags Mike Leach
2025-10-22  9:29   ` Leo Yan
2025-10-22 12:35     ` Mike Leach
2025-10-22 14:04       ` Leo Yan
2025-10-23 10:18         ` Mike Leach
2025-10-23 11:03           ` Mike Leach

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