Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [PATCH v5 0/2] scsi: Add LeapRAID driver support
@ 2026-08-04  7:02 Dongdong Hao
  2026-08-04  7:02 ` [PATCH v5 1/2] scsi: leapraid: Add new SCSI driver Dongdong Hao
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Dongdong Hao @ 2026-08-04  7:02 UTC (permalink / raw)
  To: James.Bottomley, martin.petersen
  Cc: dlemoal, hare, hare, doubled, yjzhang, kezijie, jzzhang, baikefan,
	linux-scsi

This series adds the LeapRAID driver and its documentation.

This version addresses issues reported by Sashiko and the kernel test
robot, as well as issues identified through internal testing. Because
[PATCH v4 1/2] exceeded the line-count limit of the public Sashiko
service, it was not analyzed. We therefore deployed Sashiko locally
with an increased line-count limit to complete the analysis and have
fixed all identified issues.

Changes in v5:

[PATCH v5 1/2] scsi: leapraid: Add new SCSI driver
- Fix /dev/leapraid_ctl adapter lifetime races during concurrent probe
  and removal.
- Fix firmware log mmap teardown by tracking active VMAs.
- Fix passthrough data_sge_offset validation to prevent overwrites.
- Validate asynchronous firmware event lengths to prevent out-of-bounds
  accesses.
- Fix SMP passthrough payload validation to prevent size_t underflow.
- Fix teardown races among event queuing, host removal, and IRQ handling.
- Fix MSI-X CPU mapping for sparse CPU IDs by using nr_cpu_ids.
- Make host-memory cleanup idempotent to prevent double cleanup.
- Initialize the internal SCSI command mutex earlier to ensure safe
  error-path cleanup.
- Fix Clang -Wunaligned-access warnings for packed SGE structures and
  related cases.
- Add the missing unwind path in leapraid_request_host_memory() and fix
  related error-path issues.
- Prevent nested hard resets during asynchronous recovery to avoid
  deadlocks.
- Remove periodic timestamp synchronization.

[PATCH v5 2/2] scsi: leapraid: Add documentation
- Document the actual enable_mp module parameter instead of enable_mpio.
- Drop SMART polling, which remains available only in the vendor driver.
- Remove the custom sas_address sysfs attribute, as it is provided by the
  SAS transport class.
- Drop the user-selectable interrupt_mode and msix_disable parameters.
- Rename the NCQ parameter to ncq_cmd_prio_enable for clarity.

Review tags collected
=====================

  1/2  Reviewed-by: Damien Le Moal dlemoal@kernel.org  (given on v2)
       Reviewed-by: Hannes Reinecke hare@kernel.org    (given on v5)      
  2/2  Reviewed-by: Damien Le Moal dlemoal@kernel.org  (given on v2)
       Reviewed-by: Hannes Reinecke hare@kernel.org    (given on v5)

Dongdong Hao (2):
  scsi: leapraid: Add new SCSI driver
  scsi: leapraid: Add driver documentation

 Documentation/scsi/index.rst               |    1 +
 Documentation/scsi/leapraid.rst            |  110 +
 MAINTAINERS                                |    7 +
 drivers/scsi/Kconfig                       |    1 +
 drivers/scsi/Makefile                      |    1 +
 drivers/scsi/leapraid/Kconfig              |   14 +
 drivers/scsi/leapraid/Makefile             |   10 +
 drivers/scsi/leapraid/leapraid.h           | 2048 +++++
 drivers/scsi/leapraid/leapraid_app.c       |  803 ++
 drivers/scsi/leapraid/leapraid_func.c      | 8626 ++++++++++++++++++++
 drivers/scsi/leapraid/leapraid_func.h      | 1486 ++++
 drivers/scsi/leapraid/leapraid_os.c        | 2468 ++++++
 drivers/scsi/leapraid/leapraid_transport.c | 1403 ++++
 13 files changed, 16978 insertions(+)
 create mode 100644 Documentation/scsi/leapraid.rst
 create mode 100644 drivers/scsi/leapraid/Kconfig
 create mode 100644 drivers/scsi/leapraid/Makefile
 create mode 100644 drivers/scsi/leapraid/leapraid.h
 create mode 100644 drivers/scsi/leapraid/leapraid_app.c
 create mode 100644 drivers/scsi/leapraid/leapraid_func.c
 create mode 100644 drivers/scsi/leapraid/leapraid_func.h
 create mode 100644 drivers/scsi/leapraid/leapraid_os.c
 create mode 100644 drivers/scsi/leapraid/leapraid_transport.c

-- 
2.25.1


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

end of thread, other threads:[~2026-08-09 10:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-04  7:02 [PATCH v5 0/2] scsi: Add LeapRAID driver support Dongdong Hao
2026-08-04  7:02 ` [PATCH v5 1/2] scsi: leapraid: Add new SCSI driver Dongdong Hao
2026-08-04  7:02 ` [PATCH v5 2/2] scsi: leapraid: Add driver documentation Dongdong Hao
2026-08-04  9:33   ` sashiko-bot
2026-08-07 16:00 ` [PATCH v5 0/2] scsi: Add LeapRAID driver support Martin K. Petersen (Oracle)
2026-08-09  8:47   ` Hao Dongdong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox