Skip to content

Introducing mpi3mr driver

Kashyap Desai linux-scsi 6 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest24 patches 11 repliesApplied
  2. v524 patches 13 repliesSuperseded
  3. v424 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v324 patches38 repliesSuperseded
v224 patches28 repliesSuperseded
v124 patches44 repliesSuperseded

Changes in v6 from the cover letter

- Removed special case handling of REPORT_LUN (Patch #5) - comment provided by Hannes.
- Added Reviewed-by tag from Hannes,Tomas and Himanshu to appropriate patches. Addressed below feedback from Christoph H
- Removed meta-header mpi30_api.h
- Drop the leading underscore from the various type names.
- Removed history and extra information from Copyright headers.

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/24mpi3mr: add mpi30 Rev-R headers and Kconfigdrivers/scsi/Kconfig drivers/scsi/Makefile drivers/scsi/mpi3mr/Kconfig +4 more+1851 -01 reply
2/24mpi3mr: base driver codedrivers/scsi/mpi3mr/Makefile drivers/scsi/mpi3mr/mpi3mr.h drivers/scsi/mpi3mr/mpi3mr_debug.h +2 more+2761 -00 replies
3/24mpi3mr: create operational request and reply queue pairdrivers/scsi/mpi3mr/mpi3mr.h drivers/scsi/mpi3mr/mpi3mr_fw.c drivers/scsi/mpi3mr/mpi3mr_os.c+655 -10 replies
4/24mpi3mr: add support of queue command processingdrivers/scsi/mpi3mr/mpi3mr.h drivers/scsi/mpi3mr/mpi3mr_fw.c drivers/scsi/mpi3mr/mpi3mr_os.c+927 -21 reply
5/24mpi3mr: add support of internal watchdog threaddrivers/scsi/mpi3mr/mpi3mr.h drivers/scsi/mpi3mr/mpi3mr_fw.c drivers/scsi/mpi3mr/mpi3mr_os.c+140 -10 replies
6/24mpi3mr: add support of event handling part-1drivers/scsi/mpi3mr/mpi/mpi30_cnfg.h drivers/scsi/mpi3mr/mpi/mpi30_sas.h drivers/scsi/mpi3mr/mpi3mr.h +2 more+3768 -31 reply
7/24mpi3mr: add support of event handling pcie devices part-2drivers/scsi/mpi3mr/mpi3mr_fw.c drivers/scsi/mpi3mr/mpi3mr_os.c+203 -00 replies
8/24mpi3mr: add support of event handling part-3drivers/scsi/mpi3mr/mpi3mr_fw.c drivers/scsi/mpi3mr/mpi3mr_os.c+39 -00 replies
9/24mpi3mr: add support for recovering controllerdrivers/scsi/mpi3mr/mpi3mr.h drivers/scsi/mpi3mr/mpi3mr_fw.c drivers/scsi/mpi3mr/mpi3mr_os.c+478 -420 replies
10/24mpi3mr: add support of timestamp sync with firmwaredrivers/scsi/mpi3mr/mpi3mr.h drivers/scsi/mpi3mr/mpi3mr_fw.c+77 -00 replies
11/24mpi3mr: print ioc info for debuggingdrivers/scsi/mpi3mr/mpi3mr_fw.c drivers/scsi/mpi3mr/mpi3mr_os.c+96 -01 reply
12/24mpi3mr: add bios_param shost template hookdrivers/scsi/mpi3mr/mpi3mr_os.c+41 -00 replies
13/24mpi3mr: implement scsi error handler hooksdrivers/scsi/mpi3mr/mpi3mr.h drivers/scsi/mpi3mr/mpi3mr_fw.c drivers/scsi/mpi3mr/mpi3mr_os.c+385 -01 reply
14/24mpi3mr: add change queue depth supportdrivers/scsi/mpi3mr/mpi3mr.h drivers/scsi/mpi3mr/mpi3mr_os.c+33 -00 replies
15/24mpi3mr: allow certain commands during pci-remove hookdrivers/scsi/mpi3mr/mpi3mr_os.c+22 -10 replies
16/24mpi3mr: hardware workaround for UNMAP commands to nvme drivesdrivers/scsi/mpi3mr/mpi3mr_os.c+100 -00 replies
17/24mpi3mr: add support of threaded isrdrivers/scsi/mpi3mr/mpi3mr.h drivers/scsi/mpi3mr/mpi3mr_fw.c+88 -30 replies
18/24mpi3mr: add complete support of soft resetdrivers/scsi/mpi3mr/mpi3mr.h drivers/scsi/mpi3mr/mpi3mr_fw.c+247 -20 replies
19/24mpi3mr: print pending host ios for debugdrivers/scsi/mpi3mr/mpi3mr_os.c+69 -00 replies
20/24mpi3mr: wait for pending IO completions upon detection of VD IO timeoutdrivers/scsi/mpi3mr/mpi3mr.h drivers/scsi/mpi3mr/mpi3mr_fw.c drivers/scsi/mpi3mr/mpi3mr_os.c+58 -00 replies
21/24mpi3mr: add support of PM suspend and resumedrivers/scsi/mpi3mr/mpi3mr_os.c+84 -03 replies
22/24mpi3mr: add support of DSN secure fw checkdrivers/scsi/mpi3mr/mpi3mr.h drivers/scsi/mpi3mr/mpi3mr_os.c+89 -00 replies
23/24mpi3mr: add eedp dif dix supportdrivers/scsi/mpi3mr/mpi3mr.h drivers/scsi/mpi3mr/mpi3mr_fw.c drivers/scsi/mpi3mr/mpi3mr_os.c+308 -50 replies
24/24mpi3mr: add event handling debug printsdrivers/scsi/mpi3mr/mpi3mr_fw.c drivers/scsi/mpi3mr/mpi3mr_os.c+280 -10 replies

Reviews trailers per patch

All 24 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHannes ReineckeTomas HenzlHimanshu Madhani
SeriesR-b R-b R-b R-b R-b R-b
1/24R-b R-b R-b
2/24R-b R-b R-b
3/24R-b R-b R-b
4/24R-b R-b R-b
5/24R-b R-b R-b
6/24R-b R-b R-b
7/24R-b R-b R-b
8/24R-b R-b R-b
9/24R-b R-b R-b
10/24R-b R-b R-b
11/24R-b R-b R-b
12/24R-b R-b R-b
13/24R-b R-b R-b
14/24R-b R-b R-b
15/24R-b R-b R-b
16/24R-b R-b R-b
17/24R-b R-b R-b
18/24R-b R-b R-b
19/24R-b R-b R-b
20/24R-b R-b R-b
21/24R-b R-b R-b
22/24R-b R-b R-b
23/24R-b R-b R-b
24/24R-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 3 reviewers.

Read the v6 thread

Cover letter [PATCH v6 00/24] Introducing mpi3mr driver

v5->v6:
- Removed special case handling of REPORT_LUN (Patch #5) - comment provided by Hannes.
- Added Reviewed-by tag from Hannes,Tomas and Himanshu to appropriate patches. Addressed below feedback from Christoph H
- Removed meta-header mpi30_api.h
- Drop the leading underscore from the various type names.
- Removed history and extra information from Copyright headers.

v4->v5:
- Fix error reported by kernel test robot <[email protected]> in Patch #6.

v3->v4
- Addressed comments from Christoph Hellwig and Bart Van Assche to make MPI headers compliant with Linux kernel coding guidelines.
- Added Reviewed-by tag from Hannes and Himanshu to appropriate patches.
- Use correct return type in scsi error handler (Patch #6) - comment provided by Hannes.
- Fix array overflow while printing ioc info(Patch #11) - comment provided by Hannes.
- Remove redundant kfree of dev_rmhs_cmds (Patch #13) - comment provided by Tomas.
- Replaced few strcpy with strncpy to avoid string overflow.
- Updated Copyright.

v2->v3
- further removed unused pointer typedef from mpi30_type.h
- Add Tomas Henzl's reviewed-tag to appropriate patches
- Fix added which is Reported-by kernel test robot <[email protected]>
- Removed .eh_abort_handler suggested by Hannes.

v1->v2
- removed undefined entries from mpi30_type.h
- removed DRV_CMD_CALLBACK typedef
- Use IRQF_SHARED instead of IRQF_ONESHOT
- Use READ_ONCE, WRITE_ONCE while accessing operational request queue consumer index
- removed in_interrup()
- remove pr_cont.
- move some code from error handling to device handling patch.
- used direct values instead of macro MPI3_SECTOR_SIZE_XYZ
- Add Hannes's reviewed-tag to appropriate patches
- Add Reported-by kernel test robot <[email protected]> to appropriate patches.

This patch series covers logical patches of the new device driver for the MPI3MR high performance storage I/O & RAID controllers (Avenger series). The mpi3mr has true multiple h/w queue interfacing like nvme.

See more info -
https://www.spinics.net/lists/linux-scsi/msg147868.html

The controllers managed by the mpi3mr driver are capable of reaching a very high performance numbers compared to existing controller due to the new hardware architectures. This Driver is tested with the internal versions of the MPI3MR I/O & RAID controllers.

Patches are logical split mainly for better code review. Full patch set is required for functional stability of this new driver.

You can find the source at -
https://github.com/kadesai16/mpi3mr

Kashyap Desai (24):
mpi3mr: add mpi30 Rev-R headers and Kconfig
mpi3mr: base driver code
mpi3mr: create operational request and reply queue pair
mpi3mr: add support of queue command processing
mpi3mr: add support of internal watchdog thread
mpi3mr: add support of event handling part-1
mpi3mr: add support of event handling pcie devices part-2
mpi3mr: add support of event handling part-3
mpi3mr: add support for recovering controller
mpi3mr: add support of timestamp sync with firmware
mpi3mr: print ioc info for debugging
mpi3mr: add bios_param shost template hook
mpi3mr: implement scsi error handler hooks
mpi3mr: add change queue depth support
mpi3mr: allow certain commands during pci-remove hook
mpi3mr: hardware workaround for UNMAP commands to nvme drives
mpi3mr: add support of threaded isr
mpi3mr: add complete support of soft reset
mpi3mr: print pending host ios for debug
mpi3mr: wait for pending IO completions upon detection of VD IO
timeout
mpi3mr: add support of PM suspend and resume
mpi3mr: add support of DSN secure fw check
mpi3mr: add eedp dif dix support
mpi3mr: add event handling debug prints

 drivers/scsi/Kconfig                      |    1 +
 drivers/scsi/Makefile                     |    1 +
 drivers/scsi/mpi3mr/Kconfig               |    7 +
 drivers/scsi/mpi3mr/Makefile              |    4 +
 drivers/scsi/mpi3mr/mpi/mpi30_cnfg.h      | 1880 ++++++++++
 drivers/scsi/mpi3mr/mpi/mpi30_image.h     |  216 ++
 drivers/scsi/mpi3mr/mpi/mpi30_init.h      |  159 +
 drivers/scsi/mpi3mr/mpi/mpi30_ioc.h       | 1004 +++++
 drivers/scsi/mpi3mr/mpi/mpi30_sas.h       |   33 +
 drivers/scsi/mpi3mr/mpi/mpi30_transport.h |  463 +++
 drivers/scsi/mpi3mr/mpi3mr.h              |  900 +++++
 drivers/scsi/mpi3mr/mpi3mr_debug.h        |   60 +
 drivers/scsi/mpi3mr/mpi3mr_fw.c           | 3956 ++++++++++++++++++++
 drivers/scsi/mpi3mr/mpi3mr_os.c           | 4054 +++++++++++++++++++++
 14 files changed, 12738 insertions(+)
 create mode 100644 drivers/scsi/mpi3mr/Kconfig
 create mode 100644 drivers/scsi/mpi3mr/Makefile
 create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_cnfg.h
 create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_image.h
 create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_init.h
 create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_ioc.h
 create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_sas.h
 create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_transport.h
 create mode 100644 drivers/scsi/mpi3mr/mpi3mr.h
 create mode 100644 drivers/scsi/mpi3mr/mpi3mr_debug.h
 create mode 100644 drivers/scsi/mpi3mr/mpi3mr_fw.c
 create mode 100644 drivers/scsi/mpi3mr/mpi3mr_os.c
Signature · 1 line
2.18.1