Linux SCSI subsystem development
 help / color / mirror / Atom feed
From: Xose Vazquez Perez <xose.vazquez@gmail.com>
Cc: Christoph Hellwig <hch@lst.de>,
	"James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
	"Martin K. Petersen" <martin.petersen@oracle.com>,
	SCSI-ML <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] scsi: devinfo: drop "Promise"/"" entry from scsi_static_device_list
Date: Sun, 24 May 2026 16:37:58 +0200	[thread overview]
Message-ID: <43c4907c-81cc-46cf-8665-73608fc175fa@gmail.com> (raw)
In-Reply-To: <20260523142027.352969-1-xose.vazquez@gmail.com>

On 5/23/26 4:20 PM, Xose Vazquez Perez wrote:

> "Promise" "" is too generic, and affects any device from this vendor,
> regardless of its actual bugs. Applying BLIST_SPARSELUN globally is an
> overbroad approach.
> 
> It was originally intended solely for "st_shasta" family of controllers
> (SuperTrak EX8350/8300/16350/16300/EX12350/EX4350/EX24350), as established
> in commit e0b2e597d5dd ([SCSI] stex: fix id mapping issue):
> "   -- add an entry in scsi_devindo.c to force sequential lun scan
>         (for st_shasta controllers)"
> 
> Removing this catch-all entry prevents unintended behavior on other
> Promise storage products that do not require this legacy workaround.
> 
> 
> Cc: Christoph Hellwig <hch@lst.de>
> Cc: James E.J. Bottomley <James.Bottomley@HansenPartnership.com>
> Cc: Martin K. Petersen <martin.petersen@oracle.com>
> Cc: SCSI-ML <linux-scsi@vger.kernel.org>
> Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
> ---
> All email addresses from @tw.promise.com or @promise.com, in the git
> rep, no longer exist.
> ---
>   drivers/scsi/scsi_devinfo.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/scsi/scsi_devinfo.c b/drivers/scsi/scsi_devinfo.c
> index 3a9b691d7e72..5988d941e76b 100644
> --- a/drivers/scsi/scsi_devinfo.c
> +++ b/drivers/scsi/scsi_devinfo.c
> @@ -216,7 +216,6 @@ static struct {
>   	{"PIONEER", "CD-ROM DRM-604X", NULL, BLIST_FORCELUN | BLIST_SINGLELUN},
>   	{"PIONEER", "CD-ROM DRM-624X", NULL, BLIST_FORCELUN | BLIST_SINGLELUN},
>   	{"Promise", "VTrak E610f", NULL, BLIST_SPARSELUN | BLIST_NO_RSOC},
> -	{"Promise", "", NULL, BLIST_SPARSELUN},
>   	{"QEMU", "QEMU CD-ROM", NULL, BLIST_SKIP_VPD_PAGES},
>   	{"QNAP", "iSCSI Storage", NULL, BLIST_MAX_1024},
>   	{"SYNOLOGY", "iSCSI Storage", NULL, BLIST_MAX_1024},

Please, drop this patch.

The stex driver forces a sequential LUN scan for st_shasta by failing
REPORT_LUNS:
         case REPORT_LUNS:
                 /*
                  * The shasta firmware does not report actual luns in the
                  * target, so fail the command to force sequential lun
                  * scan.
                  * Also, the console device does not support this command.
                  */
                 if (hba->cardtype == st_shasta || id == host->max_id - 1) {
                         stex_invalid_field(cmd, done);
                         return 0;
                 }
                 break;

Without the BLIST_SPARSELUN flag, this scan will truncate at the first LUN gap.

Although later firmware versions might fix this problem:
8<---
Version/Build - 1.1.0.25
Date Release - 11/2/2005
2. Compact Lun mapping during firmware initialize to avoid lun gap.
[...]
Version/Build - 1.2.0.10
Date Release - 02/09/2006
3. Add REPORT LUNS support. (not enabled yet)
[...]
Version/Build - 1.3.0.20
1. Enable ENGINE_SUPPORT_REPORT_LUNS,ENGINE_SUPPORT_SCSIOP_MODE_SENSE_SELECT
and ENGINE_SUPPORT_SCSIOP_INQUIRY_EVPD to support Vista SCSI compliance test.
2. To work with item 1, firmware needs to return actual transferred data
length.
         This requires driver update at the same time.
8<---

The driver logic remains tied to this legacy behavior. And given the lack
of active maintenance and vendor support to verify firmware-level changes,
it is safer to keep the current BLIST_SPARSELUN entry to prevent any regression.

      reply	other threads:[~2026-05-24 14:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-23 14:20 [PATCH] scsi: devinfo: drop "Promise"/"" entry from scsi_static_device_list Xose Vazquez Perez
2026-05-24 14:37 ` Xose Vazquez Perez [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43c4907c-81cc-46cf-8665-73608fc175fa@gmail.com \
    --to=xose.vazquez@gmail.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=hch@lst.de \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox