* [PATCH] mpi3mr: Prevent duplicate SAS/SATA device entries in channel 1
@ 2025-11-20 7:19 Suganath Prabu S
2025-11-29 20:09 ` Martin K. Petersen
2025-12-09 3:21 ` Martin K. Petersen
0 siblings, 2 replies; 3+ messages in thread
From: Suganath Prabu S @ 2025-11-20 7:19 UTC (permalink / raw)
To: linux-scsi, martin.petersen, stable
Cc: sathya.prakash, ranjan.kumar, chandrakanth.patil,
Suganath Prabu S
This fix avoids scanning of SAS/SATA devices in channel 1
when SAS transport is enabled as the SAS/SATA devices are
exposed through channel 0 when SAS transport is enabled.
Signed-off-by: Ranjan Kumar <ranjan.kumar@broadcom.com>
Signed-off-by: Suganath Prabu S <suganath-prabu.subramani@broadcom.com>
---
drivers/scsi/mpi3mr/mpi3mr.h | 4 ++--
drivers/scsi/mpi3mr/mpi3mr_os.c | 4 +++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/scsi/mpi3mr/mpi3mr.h b/drivers/scsi/mpi3mr/mpi3mr.h
index 6742684..31d68c1 100644
--- a/drivers/scsi/mpi3mr/mpi3mr.h
+++ b/drivers/scsi/mpi3mr/mpi3mr.h
@@ -56,8 +56,8 @@ extern struct list_head mrioc_list;
extern int prot_mask;
extern atomic64_t event_counter;
-#define MPI3MR_DRIVER_VERSION "8.15.0.5.50"
-#define MPI3MR_DRIVER_RELDATE "12-August-2025"
+#define MPI3MR_DRIVER_VERSION "8.15.0.5.51"
+#define MPI3MR_DRIVER_RELDATE "18-November-2025"
#define MPI3MR_DRIVER_NAME "mpi3mr"
#define MPI3MR_DRIVER_LICENSE "GPL"
diff --git a/drivers/scsi/mpi3mr/mpi3mr_os.c b/drivers/scsi/mpi3mr/mpi3mr_os.c
index b88633e..bca3671 100644
--- a/drivers/scsi/mpi3mr/mpi3mr_os.c
+++ b/drivers/scsi/mpi3mr/mpi3mr_os.c
@@ -1184,6 +1184,8 @@ static void mpi3mr_update_tgtdev(struct mpi3mr_ioc *mrioc,
if (is_added == true)
tgtdev->io_throttle_enabled =
(flags & MPI3_DEVICE0_FLAGS_IO_THROTTLING_REQUIRED) ? 1 : 0;
+ if(!mrioc->sas_transport_enabled)
+ tgtdev->non_stl = 1;
switch (flags & MPI3_DEVICE0_FLAGS_MAX_WRITE_SAME_MASK) {
case MPI3_DEVICE0_FLAGS_MAX_WRITE_SAME_256_LB:
@@ -4844,7 +4846,7 @@ static int mpi3mr_target_alloc(struct scsi_target *starget)
spin_lock_irqsave(&mrioc->tgtdev_lock, flags);
if (starget->channel == mrioc->scsi_device_channel) {
tgt_dev = __mpi3mr_get_tgtdev_by_perst_id(mrioc, starget->id);
- if (tgt_dev && !tgt_dev->is_hidden) {
+ if (tgt_dev && !tgt_dev->is_hidden && tgt_dev->non_stl) {
scsi_tgt_priv_data->starget = starget;
scsi_tgt_priv_data->dev_handle = tgt_dev->dev_handle;
scsi_tgt_priv_data->perst_id = tgt_dev->perst_id;
--
2.47.3
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] mpi3mr: Prevent duplicate SAS/SATA device entries in channel 1
2025-11-20 7:19 [PATCH] mpi3mr: Prevent duplicate SAS/SATA device entries in channel 1 Suganath Prabu S
@ 2025-11-29 20:09 ` Martin K. Petersen
2025-12-09 3:21 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2025-11-29 20:09 UTC (permalink / raw)
To: Suganath Prabu S
Cc: linux-scsi, martin.petersen, stable, sathya.prakash, ranjan.kumar,
chandrakanth.patil
Suganath,
> This fix avoids scanning of SAS/SATA devices in channel 1 when SAS
> transport is enabled as the SAS/SATA devices are exposed through
> channel 0 when SAS transport is enabled.
Applied to 6.19/scsi-staging, thanks!
--
Martin K. Petersen
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mpi3mr: Prevent duplicate SAS/SATA device entries in channel 1
2025-11-20 7:19 [PATCH] mpi3mr: Prevent duplicate SAS/SATA device entries in channel 1 Suganath Prabu S
2025-11-29 20:09 ` Martin K. Petersen
@ 2025-12-09 3:21 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2025-12-09 3:21 UTC (permalink / raw)
To: linux-scsi, stable, Suganath Prabu S
Cc: Martin K . Petersen, sathya.prakash, ranjan.kumar,
chandrakanth.patil
On Thu, 20 Nov 2025 12:49:55 +0530, Suganath Prabu S wrote:
> This fix avoids scanning of SAS/SATA devices in channel 1
> when SAS transport is enabled as the SAS/SATA devices are
> exposed through channel 0 when SAS transport is enabled.
>
>
Applied to 6.19/scsi-queue, thanks!
[1/1] mpi3mr: Prevent duplicate SAS/SATA device entries in channel 1
https://git.kernel.org/mkp/scsi/c/4588e65cfd66
--
Martin K. Petersen
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-12-09 3:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-20 7:19 [PATCH] mpi3mr: Prevent duplicate SAS/SATA device entries in channel 1 Suganath Prabu S
2025-11-29 20:09 ` Martin K. Petersen
2025-12-09 3:21 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox