linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] coresight: Clear self hosted claim tag on probe
@ 2025-02-11 10:39 James Clark
  2025-02-11 10:39 ` [PATCH 1/7] coresight: Rename coresight_{set,clear}_claim_tags() James Clark
                   ` (6 more replies)
  0 siblings, 7 replies; 25+ messages in thread
From: James Clark @ 2025-02-11 10:39 UTC (permalink / raw)
  To: lcherian, coresight
  Cc: James Clark, Suzuki K Poulose, Mike Leach, Alexander Shishkin,
	Maxime Coquelin, Alexandre Torgue, linux-arm-kernel, linux-kernel,
	linux-stm32

I've gotten stuck a few times with unusable Coresight after a warm boot
due to lingering claim tags, especially when testing the Coresight
panic patchsets.

This change does some tidy ups, adds some debug messages and clears the
self hosted claim tag on probe. The last two commits are unrelated
tidyups but they touch some of the same functions so to avoid extra
conflicts I'm including them here.

This gets as far as fixing the claim tag issue, but there is some other
state not being cleared on probe that results in the following error.
This can be fixed up as a later change:

  coresight tmc_etf0: timeout while waiting for TMC to be Ready
  coresight tmc_etf0: Failed to enable : TMC is not ready

James Clark (7):
  coresight: Rename coresight_{set,clear}_claim_tags()
  coresight: Convert disclaim functions to take a struct cs_access
  coresight: Only check bottom two claim bits
  coresight: Add claim tag warnings and debug messages
  coresight: Clear self hosted claim tag on probe
  coresight: Remove inlines from static function definitions
  coresight: Remove extern from function declarations

 drivers/hwtracing/coresight/coresight-catu.c  |  14 +-
 drivers/hwtracing/coresight/coresight-core.c  | 132 +++++++++++-------
 .../hwtracing/coresight/coresight-cti-core.c  |   8 +-
 drivers/hwtracing/coresight/coresight-etb10.c |   6 +-
 drivers/hwtracing/coresight/coresight-etm.h   |   6 +-
 .../coresight/coresight-etm3x-core.c          |  32 ++---
 .../coresight/coresight-etm3x-sysfs.c         |   8 +-
 .../coresight/coresight-etm4x-core.c          |  12 +-
 .../coresight/coresight-etm4x-sysfs.c         |   4 +-
 .../hwtracing/coresight/coresight-funnel.c    |   4 +-
 .../hwtracing/coresight/coresight-platform.c  |  26 ++--
 drivers/hwtracing/coresight/coresight-priv.h  |  20 +--
 .../coresight/coresight-replicator.c          |   7 +-
 drivers/hwtracing/coresight/coresight-stm.c   |   6 +-
 .../coresight/coresight-syscfg-configfs.c     |   2 +-
 .../hwtracing/coresight/coresight-tmc-core.c  |   9 +-
 .../hwtracing/coresight/coresight-tmc-etf.c   |   8 +-
 .../hwtracing/coresight/coresight-tmc-etr.c   |  20 ++-
 drivers/hwtracing/coresight/coresight-trbe.c  |  18 +--
 include/linux/coresight.h                     |  32 ++---
 20 files changed, 209 insertions(+), 165 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2025-03-18  9:29 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-11 10:39 [PATCH 0/7] coresight: Clear self hosted claim tag on probe James Clark
2025-02-11 10:39 ` [PATCH 1/7] coresight: Rename coresight_{set,clear}_claim_tags() James Clark
2025-03-13 11:24   ` Leo Yan
2025-02-11 10:39 ` [PATCH 2/7] coresight: Convert disclaim functions to take a struct cs_access James Clark
2025-03-13 14:54   ` Leo Yan
2025-03-17 11:36     ` James Clark
2025-03-17 18:29       ` Leo Yan
2025-03-18  9:27         ` James Clark
2025-02-11 10:39 ` [PATCH 3/7] coresight: Only check bottom two claim bits James Clark
2025-03-13 11:46   ` Leo Yan
2025-02-11 10:39 ` [PATCH 4/7] coresight: Add claim tag warnings and debug messages James Clark
2025-03-13 14:40   ` Leo Yan
2025-03-17 11:56     ` James Clark
2025-02-11 10:39 ` [PATCH 5/7] coresight: Clear self hosted claim tag on probe James Clark
2025-02-12 18:24   ` Mike Leach
2025-02-13 13:20     ` James Clark
2025-03-13 16:04   ` Leo Yan
2025-03-17 15:05     ` James Clark
2025-03-17 18:09       ` Leo Yan
2025-02-11 10:39 ` [PATCH 6/7] coresight: Remove inlines from static function definitions James Clark
2025-03-14  9:50   ` Leo Yan
2025-03-17 15:26     ` James Clark
2025-03-17 17:45       ` Leo Yan
2025-02-11 10:39 ` [PATCH 7/7] coresight: Remove extern from function declarations James Clark
2025-03-13 16:17   ` Leo Yan

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