Skip to content

Coresight TMC-ETR some bugfixes and cleanups

Junhao He linux-arm-kernel lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 5 repliesIn review
  2. v23 patches 10 repliesSuperseded
  3. v14 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- Patches 1: Additional comment for tmc_drvdata::etr_mode. Update comment for tmc_drvdata::reading with Jonathan's Tag.
- Patches 2: Replace scoped_guard with guard with Jonathan's Tag.
- Patches 2: Fix spinlock to raw_spinlock, and refactor this code based on Leo's suggested solution.
- Patches 3: change the size's type to ssize_t and use max_t to simplify the code with Leo's Tag.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3coresight: tmc: Add missing doc including reading and etr_mode of struct tmc_drvdatadrivers/hwtracing/coresight/coresight-tmc.h+2 -01 reply
2/3coresight: tmc: refactor the tmc-etr mode setting to avoid race conditionsdrivers/hwtracing/coresight/coresight-tmc-etr.c+42 -383 replies
3/3coresight: tmc: Decouple the perf buffer allocation from sysfs modedrivers/hwtracing/coresight/coresight-tmc-etr.c+9 -210 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchJames ClarkLeo YanYicong Yang
1/3R-b R-b
2/3T-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/3] Coresight TMC-ETR some bugfixes and cleanups

This patchset builds upon Yicong's previous patches [1].

Introducing fix two race issues found by using TMC-ETR and CATU, Two cleanups found when debugging the issues.

[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/

---
Changes in v3:
- Patches 1: Additional comment for tmc_drvdata::etr_mode. Update comment for tmc_drvdata::reading with Jonathan's Tag.
- Patches 2: Replace scoped_guard with guard with Jonathan's Tag.
- Patches 2: Fix spinlock to raw_spinlock, and refactor this code based on Leo's suggested solution.
- Patches 3: change the size's type to ssize_t and use max_t to simplify the code with Leo's Tag.

Changes in v2:
- Updated the commit of patch2.
- Rebase to v6.16-rc1

Junhao He (1):
coresight: tmc: refactor the tmc-etr mode setting to avoid race
conditions

Yicong Yang (2):
coresight: tmc: Add missing doc including reading and etr_mode of
struct tmc_drvdata
coresight: tmc: Decouple the perf buffer allocation from sysfs mode

 .../hwtracing/coresight/coresight-tmc-etr.c   | 110 ++++++++----------
 drivers/hwtracing/coresight/coresight-tmc.h   |   2 +
 2 files changed, 53 insertions(+), 59 deletions(-)
Signature · 1 line
2.33.0