lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250211103945.967495-1-james.clark@linaro.org>
Date: Tue, 11 Feb 2025 10:39:36 +0000
From: James Clark <james.clark@...aro.org>
To: lcherian@...vell.com,
	coresight@...ts.linaro.org
Cc: James Clark <james.clark@...aro.org>,
	Suzuki K Poulose <suzuki.poulose@....com>,
	Mike Leach <mike.leach@...aro.org>,
	Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
	Maxime Coquelin <mcoquelin.stm32@...il.com>,
	Alexandre Torgue <alexandre.torgue@...s.st.com>,
	linux-arm-kernel@...ts.infradead.org,
	linux-kernel@...r.kernel.org,
	linux-stm32@...md-mailman.stormreply.com
Subject: [PATCH 0/7] coresight: Clear self hosted claim tag on probe

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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ