Skip to content

scsi: ufs: add trace/debug support, sysfs controls and few fixes

Subhash Jadavani linux-scsi 3 versions – Applied

Status from this message: Applied to 4.11/scsi-queue.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest12 patches 1 replyApplied
  2. v212 patches 4 repliesSuperseded
  3. v112 patches 6 repliesSuperseded

Changes in v3 from the cover letter

1. Patch #2: Used TRACE_DEFINE_ENUM to print out enums

2. Patch #11: Removed conditional compilation based on CONFIG_TRACEPOINTS and used trace_*_enabled() to skip unnecessary code path execution.

3. Patch #7: Simplified patch to just set the default power management level. Device tree capability to specify broken hardware will be taken up as separate patch in different patch series than current one.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/12scsi: ufs: dump debug info during failuresdrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshci.h+132 -00 replies
2/12scsi: ufs: add tracing supportdrivers/scsi/ufs/ufshcd.c include/trace/events/ufs.h+258 -120 replies
3/12scsi: ufs: fix multiple ufs spec violationdrivers/scsi/ufs/ufshcd.c+12 -10 replies
4/12scsi: ufs: Add sysfs node to dynamically control clock gatingdrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+51 -10 replies
5/12scsi: ufs: Add sysfs node to dynamically control clock scalingdrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+82 -170 replies
6/12scsi: ufs: provide sysfs attribute to select the PM leveldrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+146 -00 replies
7/12scsi: ufs: set default UFS power management leveldrivers/scsi/ufs/ufshcd.c+28 -00 replies
8/12scsi: ufs: add capability to keep auto bkops always enableddrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+35 -110 replies
9/12scsi: ufs: fix setting init power modedrivers/scsi/ufs/ufshcd.c+4 -30 replies
10/12scsi: ufs: add time profiling supportdrivers/scsi/ufs/ufshcd.c include/trace/events/ufs.h+64 -00 replies
11/12scsi: ufs: add trace event for ufs commandsdrivers/scsi/ufs/ufshcd.c include/trace/events/ufs.h+79 -10 replies
12/12scsi: ufs: Improve fatal error logsdrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+208 -420 replies

Reviews trailers per patch

6 of 12 patches have a Reviewed-by or Acked-by.

PatchSahitya TummalaSujit Reddy ThummaYaniv GardiVenkat Gopalakrishnan
1/12
2/12R-b
3/12
4/12
5/12
6/12R-b
7/12R-b
8/12R-b
9/12R-b
10/12R-b
11/12
12/12

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

Read the v3 thread

Cover letter [PATCH v3 00/12] scsi: ufs: add trace/debug support, sysfs controls and few fixes

This patch series adds following things:
- ftrace support to trace important events in UFS driver.
- debug dumps following failures to ease the debugging
- sysfs node to control clock gating, clock scaling and PM
- few fixes

---
Changes from v2 -> v3:

1. Patch #2: Used TRACE_DEFINE_ENUM to print out enums

2. Patch #11: Removed conditional compilation based on CONFIG_TRACEPOINTS and used trace_*_enabled() to skip unnecessary code path execution.

3. Patch #7: Simplified patch to just set the default power management level. Device tree capability to specify broken hardware will be taken up as separate patch in different patch series than current one.

1 & 2 should address Steven Rostedt's comments.

3 should address Rob Herring's comments.

Changes from v1 -> v2:
- Added explicit new line character at the end of the printk messages for patch #1 & #12
- Fixed couple of checkpatch warnings for patch #1
---

Dolev Raviv (3):
scsi: ufs: dump debug info during failures
scsi: ufs: fix multiple ufs spec violation
scsi: ufs: Improve fatal error logs

Lee Susman (1):
scsi: ufs: add trace event for ufs commands

Sahitya Tummala (2):
scsi: ufs: Add sysfs node to dynamically control clock gating
scsi: ufs: Add sysfs node to dynamically control clock scaling

Subhash Jadavani (6):
scsi: ufs: add tracing support
scsi: ufs: provide sysfs attribute to select the PM level
scsi: ufs: set default UFS power management level
scsi: ufs: add capability to keep auto bkops always enabled
scsi: ufs: fix setting init power mode
scsi: ufs: add time profiling support

 drivers/scsi/ufs/ufshcd.c  | 785 +++++++++++++++++++++++++++++++++++++++++----
 drivers/scsi/ufs/ufshcd.h  |  70 +++-
 drivers/scsi/ufs/ufshci.h  |   3 +
 include/trace/events/ufs.h | 263 +++++++++++++++
 4 files changed, 1066 insertions(+), 55 deletions(-)
 create mode 100644 include/trace/events/ufs.h
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project