Skip to content

smartpqi updates

Don Brace linux-scsi 1 version Applied

Status from this message: Applied to 6.12/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7smartpqi: Add fw log to kdumpdrivers/scsi/smartpqi/smartpqi.h drivers/scsi/smartpqi/smartpqi_init.c drivers/scsi/smartpqi/smartpqi_sis.c +1 more+221 -1000 replies
2/7smartpqi: correct stream detectiondrivers/scsi/smartpqi/smartpqi_init.c+1 -10 replies
3/7smartpqi: add counter for parity write stream requestsdrivers/scsi/smartpqi/smartpqi.h drivers/scsi/smartpqi/smartpqi_init.c+55 -140 replies
4/7smartpqi: add new controller PCI IDsdrivers/scsi/smartpqi/smartpqi_init.c+24 -00 replies
5/7smartpqi: fix rare system hang during LUN resetdrivers/scsi/smartpqi/smartpqi_init.c+4 -60 replies
6/7smartpqi: fix volume size updatesdrivers/scsi/smartpqi/smartpqi_init.c+14 -80 replies
7/7smartpqi: update driver version to 2.1.30-031drivers/scsi/smartpqi/smartpqi_init.c+3 -30 replies

Reviews trailers per patch

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

PatchScott BeneshMike McGowenScott TeelDavid StrahanGerry Morong
1/7R-b R-b
2/7R-b R-b R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b R-b R-b
6/7
7/7R-b R-b R-b R-b R-b

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

Read the v1 thread

Cover letter [PATCH 0/7] smartpqi updates

These patches are based on Martin Petersen's 6.12/scsi-queue tree
https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git
6.12/scsi-queue

There are two functional changes:
smartpqi-add-fw-log-to-kdump smartpqi-add-counter-for-parity-write-stream-requests

There are three minor bug fixes:
smartpqi-fix-stream-detection smartpqi-fix-rare-system-hang-during-LUN-reset smartpqi-fix-volume-size-updates

The other two patches add PCI-IDs for new controllers and change the driver version.

This set of changes consists of:
* smartpqi-add-fw-log-to-kdump

During a kdump, the driver tells the controller to copy its logging information to some pre-allocated buffers that can be analyzed later.

This is a "feature" driven capability and is backward compatible with existing controller FW.

This patch renames some prefixes for OFA (Online-Firmware Activation ofa_*) buffers to host_memory_*. So, not a lot of actual functional changes to smartpqi_init.c, mainly determining the memory size allocation.

We added a function to notify the controller to copy debug data into host memory before continuing kdump.

Most of the functional changes are in smartpqi_sis.c where the actual handshaking is done.

* smartpqi-fix-stream-detection

Correct some false write-stream detections. The data structure used to check for write-streams was not initialized to all 0's causing some false write stream detections. The driver sends down streamed requests to the raid engine instead of using AIO bypass for some extra performance. (Potential full-stripe write verses Read Modify Write).

False detections have not caused any data corruption. Found by internal testing. No known externally reported bugs.

* smartpqi-add-counter-for-parity-write-stream-requests

Adding some counters for raid_bypass and write streams. These two counters are related because write stream detection is only checked if an I/O request is eligible for bypass (AIO).

The bypass counter (raid_bypass_cnt) was moved into a common structure (pqi_raid_io_stats) and changed to type __percpu. The write stream counter is (write_stream_cnt) has been added to this same structure.

These counters are __percpu counters for performance. We added a sysfs entry to show the write stream count. The raid bypass counter sysfs entry already exists.

Useful for checking streaming writes. The change in the sysfs entry write_stream_cnt can be checked during AIO eligible write operations.

* smartpqi-add-new-controller-PCI-IDs

Adding support for new controller HW.
No functional changes.

* smartpqi-fix-rare-system-hang-during-LUN-reset

We found a rare race condition that can occur during a LUN reset. We were not emptying our internal queue completely.

There have been some rare conditions where our internal request queue has requests for multiple LUNs and a reset comes in for one of the LUNs. The driver waits for this internal queue to empty. We were only clearing out the requests for the LUN being reset so the request queue was never empty causing a hang.

The Fix:
For all requests in our internal request queue:
Complete requests with DID_RESET for queued requests for the device undergoing a reset. Complete requests with DID_REQUEUE for all other queued requests.

Found by internal testing. No known externally reported bugs.

* smartpqi-fix-volume-size-updates

The current code only checks for a size change if there is also a queue depth change. We are separating the check for queue depth and the size changes.

Found by internal testing. No known bugs were filed.

* smartpqi-update-version-to-2.1.30-031
No functional changes.

---

David Strahan (1):
smartpqi: add new controller PCI IDs

Don Brace (2):
smartpqi: fix volume size updates
smartpqi: update driver version to 2.1.30-031

Mahesh Rajashekhara (2):
smartpqi: correct stream detection
smartpqi: add counter for parity write stream requests

Murthy Bhat (2):
smartpqi: Add fw log to kdump
smartpqi: fix rare system hang during LUN reset

 drivers/scsi/smartpqi/smartpqi.h      |  39 ++-
 drivers/scsi/smartpqi/smartpqi_init.c | 352 +++++++++++++++++---------
 drivers/scsi/smartpqi/smartpqi_sis.c  |  60 +++++
 drivers/scsi/smartpqi/smartpqi_sis.h  |   3 +
 4 files changed, 322 insertions(+), 132 deletions(-)
Signature · 1 line
2.46.0.421.g159f2d50e7