This is a note to let you know that I've just added the patch titled scsi: mpi3mr: Propagate sense data for admin queue SCSI I/O to the 6.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: scsi-mpi3mr-propagate-sense-data-for-admin-queue-scsi-i-o.patch and it can be found in the queue-6.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From f762326b2baa86ae647e2ba6832bc87e238f68ad Mon Sep 17 00:00:00 2001 From: Sathya Prakash <sathya.prakash@xxxxxxxxxxxx> Date: Thu, 1 Jun 2023 00:10:25 +0530 Subject: scsi: mpi3mr: Propagate sense data for admin queue SCSI I/O From: Sathya Prakash <sathya.prakash@xxxxxxxxxxxx> commit f762326b2baa86ae647e2ba6832bc87e238f68ad upstream. Copy the sense data to internal driver buffer when the firmware completes any SCSI I/O command sent through admin queue with sense data for further use. Fixes: 506bc1a0d6ba ("scsi: mpi3mr: Add support for MPT commands") Cc: <stable@xxxxxxxxxxxxxxx> Signed-off-by: Sathya Prakash <sathya.prakash@xxxxxxxxxxxx> Signed-off-by: Sumit Saxena <sumit.saxena@xxxxxxxxxxxx> Link: https://lore.kernel.org/r/20230531184025.3803-1-sumit.saxena@xxxxxxxxxxxx Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/scsi/mpi3mr/mpi3mr_fw.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/scsi/mpi3mr/mpi3mr_fw.c +++ b/drivers/scsi/mpi3mr/mpi3mr_fw.c @@ -402,6 +402,11 @@ static void mpi3mr_process_admin_reply_d memcpy((u8 *)cmdptr->reply, (u8 *)def_reply, mrioc->reply_sz); } + if (sense_buf && cmdptr->sensebuf) { + cmdptr->is_sense = 1; + memcpy(cmdptr->sensebuf, sense_buf, + MPI3MR_SENSE_BUF_SZ); + } if (cmdptr->is_waiting) { complete(&cmdptr->done); cmdptr->is_waiting = 0; Patches currently in stable-queue which might be from sathya.prakash@xxxxxxxxxxxx are queue-6.4/scsi-mpi3mr-propagate-sense-data-for-admin-queue-scsi-i-o.patch