[PATCH V7 0/3] scsi: ufs-qcom: Enable Hibern8, MCQ, and Testbus registers Dump

Manish Pandey posted 3 patches 8 months, 1 week ago
drivers/ufs/host/ufs-qcom.c | 124 ++++++++++++++++++++++++++++++++++++
drivers/ufs/host/ufs-qcom.h |  11 ++++
2 files changed, 135 insertions(+)
[PATCH V7 0/3] scsi: ufs-qcom: Enable Hibern8, MCQ, and Testbus registers Dump
Posted by Manish Pandey 8 months, 1 week ago
Adding support to enhance the debugging capabilities of the Qualcomm UFS
Host Controller, including HW and SW Hibern8 counts, MCQ registers, and
testbus registers dump.
---
Changes in v7:
- Addressed Bart's comment and used table-based approach to for ufs_qcom_dump_regs().
Changes in v6:
- Added ufs_qcom_dump_regs() API for MCQ dump due, as SoC vendors explicitly
  allocate MCQ resource.
Changes in v5:
- Addressed Mani's comment and used cond_resched() instead of usleep().
Changes in v4:
- Addressed Mani's comment and used kmalloc_array() for testbus mem allocation.
- Removed usleep_range from ufs_qcom_dump_testbus.
- Updated commit text.
Changes in v3:
- Addressed Bart's comment and Annotated the 'testbus' declaration with __free.
- Converted the switch-statements into an array lookup.
- Introduced struct testbus_info{} for handling testbus switch-statements to an array lookup.
Changes in v2:
- Rebased patchsets.
- Link to v1: https://lore.kernel.org/linux-arm-msm/20241025055054.23170-1-quic_mapa@quicinc.com/

---

Manish Pandey (3):
  scsi: ufs-qcom: Add support for dumping HW and SW hibern8 count
  scsi: ufs-qcom: Add support to dump MCQ registers
  scsi: ufs-qcom: Add support to dump testbus registers

 drivers/ufs/host/ufs-qcom.c | 124 ++++++++++++++++++++++++++++++++++++
 drivers/ufs/host/ufs-qcom.h |  11 ++++
 2 files changed, 135 insertions(+)

-- 
2.17.1
Re: [PATCH V7 0/3] scsi: ufs-qcom: Enable Hibern8, MCQ, and Testbus registers Dump
Posted by Martin K. Petersen 7 months, 2 weeks ago
On Fri, 11 Apr 2025 17:43:42 +0530, Manish Pandey wrote:

> Adding support to enhance the debugging capabilities of the Qualcomm UFS
> Host Controller, including HW and SW Hibern8 counts, MCQ registers, and
> testbus registers dump.
> 

Applied to 6.16/scsi-queue, thanks!

[1/3] scsi: ufs-qcom: Add support for dumping HW and SW hibern8 count
      https://git.kernel.org/mkp/scsi/c/fe016bb54dd1
[2/3] scsi: ufs-qcom: Add support to dump MCQ registers
      https://git.kernel.org/mkp/scsi/c/82edd868888a
[3/3] scsi: ufs-qcom: Add support to dump testbus registers
      https://git.kernel.org/mkp/scsi/c/25b5ee122b79

-- 
Martin K. Petersen	Oracle Linux Engineering
Re: [PATCH V7 0/3] scsi: ufs-qcom: Enable Hibern8, MCQ, and Testbus registers Dump
Posted by Martin K. Petersen 7 months, 3 weeks ago
Manish,

> Adding support to enhance the debugging capabilities of the Qualcomm
> UFS Host Controller, including HW and SW Hibern8 counts, MCQ
> registers, and testbus registers dump.

Applied to 6.16/scsi-staging, thanks!

-- 
Martin K. Petersen