mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] scsi: ufs: core: Add debugfs for PA TFS/FEC error counters
@ 2026-11-24  1:29 Po-Wen Kao
  2026-11-24  1:29 ` [PATCH v2 1/2] scsi: ufs: core: Defer debugfs init until after device init Po-Wen Kao
  2026-11-24  1:29 ` [PATCH v2 2/2] scsi: ufs: core: Add debugfs for PA TFS/FEC error counters Po-Wen Kao
  0 siblings, 2 replies; 5+ messages in thread
From: Po-Wen Kao @ 2026-11-24  1:29 UTC (permalink / raw)
  To: linux-scsi
  Cc: Konstantin Vyshetsky, Alim Akhtar, Bart Van Assche, Bean Huo,
	Stanley Jhu, James E . J . Bottomley, Martin K . Petersen,
	Peter Wang, Can Guo, linux-kernel, Brian Kao

From: Brian Kao <powenkao@google.com>

This series exposes the MIPI UniPro v3.0 PA layer TFS/FEC error
counters (0x15C3-0x15C7) under debugfs:

  /sys/kernel/debug/ufshcd/<dev>/pa_err_stats/{host,device}/

Patch 1 defers debugfs initialization until after device init so host
and device spec versions are available. Patch 2 adds the PA_TFS_* MIB
definitions and creates pa_err_stats/{host,device}/ only when supported.

Changes in v2:
- Defer ufs_debugfs_hba_init() until after device init in patch 1
  (suggested by Peter Wang).
- Create pa_err_stats/host/ and device/ only when supported instead of
  returning -EOPNOTSUPP on read/write.

Link: https://lore.kernel.org/linux-scsi/20261123025745.1743640-1-powenkao@google.com/

Brian Kao (2):
  scsi: ufs: core: Defer debugfs init until after device init
  scsi: ufs: core: Add debugfs for PA TFS/FEC error counters

 drivers/ufs/core/ufs-debugfs.c | 213 ++++++++++++++++++++++++++++++++-
 drivers/ufs/core/ufshcd.c      |   7 +-
 include/ufs/unipro.h           |   5 +
 3 files changed, 220 insertions(+), 5 deletions(-)


base-commit: 08fec21faae44fe002467976befd68e6e62969b5
-- 
2.56.1.809.ga0b61035b5-goog


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

end of thread, other threads:[~2026-11-24  6:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24  1:29 [PATCH v2 0/2] scsi: ufs: core: Add debugfs for PA TFS/FEC error counters Po-Wen Kao
2026-11-24  1:29 ` [PATCH v2 1/2] scsi: ufs: core: Defer debugfs init until after device init Po-Wen Kao
2026-11-24  6:15   ` Peter Wang
2026-11-24  1:29 ` [PATCH v2 2/2] scsi: ufs: core: Add debugfs for PA TFS/FEC error counters Po-Wen Kao
2026-11-24  6:20   ` Peter Wang

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®