Michael,
Problem is- the patch- "256bd4f23d9c scsi: mpi3mr: Return I/Os to an
unrecoverable HBA with DID_ERROR" is calling "scmd_done(scmd)" directly
whereas Ubuntu kernel expects "scmd->scsi_done(scmd)".
So the patch causing issue has to be adjusted for Ubuntu kernel as below
[scmd_done(scmd) replaced with scmd->scsi_done(scmd)]:
-------
drivers/scsi/mpi3mr/mpi3mr_os.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/scsi/mpi3mr/mpi3mr_os.c b/drivers/scsi/mpi3mr/mpi3mr_os.c
index 89a4918..5c57519 100644
--- a/drivers/scsi/mpi3mr/mpi3mr_os.c
+++ b/drivers/scsi/mpi3mr/mpi3mr_os.c
@@ -3996,6 +3996,12 @@ static int mpi3mr_qcmd(struct Scsi_Host *shost,
int iprio_class;
u8 is_pcie_dev = 0;
+ if (mrioc->unrecoverable) {
+ scmd->result = DID_ERROR << 16;
+ scmd->scsi_done(scmd);
+ goto out;
+ }
+
sdev_priv_data = scmd->device->hostdata;
if (!sdev_priv_data || !sdev_priv_data->tgt_priv_data) {
scmd->result = DID_NO_CONNECT << 16;
------
Please let me know if it works for you.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1971151
Title:
[Ubuntu 22.04.1] mpi3mr: Add management application interface(BSG)
support
Status in linux package in Ubuntu:
In Progress
Bug description:
Request to include below mpi3mr driver bug fix patches in Ubuntu
22.04.1(5.15 kernel). These patches got accepted by the upstream and
please find the corresponding commit IDs as below:
ed567615f7ec scsi: mpi3mr: Fix build errors in uapi header scsi_bsg_mpi3mr.h
dde822e21700 scsi: mpi3mr: Update driver version to 8.0.0.69.0
04dfa01e77ea scsi: mpi3mr: Add support for NVMe passthrough
937a6f2c4f2e scsi: mpi3mr: Expose adapter state to sysfs
83959ce5204a scsi: mpi3mr: Add support for PEL commands
eb8a3217cd7d scsi: mpi3mr: Add support for MPT commands
455aac4f7a13 scsi: mpi3mr: Move data structures/definitions from MPI headers
to uapi header
a212ebe7d4b1 scsi: mpi3mr: Add support for driver commands
7fbaf8b0d8b8 scsi: mpi3mr: Add bsg device support
Thanks,
Sumit
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1971151/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp