Linux SCSI subsystem development
 help / color / mirror / Atom feed
From: Florian Fuchs <fuchsfl@gmail.com>
To: "James E . J . Bottomley" <James.Bottomley@HansenPartnership.com>,
	"Martin K . Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
	fuchsfl@gmail.com
Subject: [PATCH] scsi: devinfo: Add BLIST_SKIP_IO_HINTS for Iomega ZIP
Date: Fri, 27 Feb 2026 19:18:23 +0100	[thread overview]
Message-ID: <20260227181823.892932-1-fuchsfl@gmail.com> (raw)

The Iomega ZIP 100 (Z100P2) can't process IO Advice Hints Grouping mode
page query. It immediately switches to the status phase 0xb8 after
receiving the subpage code 0x05 of MODE_SENSE_10 command, which fails
imm_out() and turns into DID_ERROR of this command, which leads to
unusable device. This was tested with an Iomega ZIP 100 (Z100P2)
connected with a StarTech PEX1P2 AX99100 PCIe parallel port card.

Prior to this fix, Test Unit Ready fails and the drive can't be used:
        IMM: returned SCSI status b8
        sd 7:0:6:0: [sdh] Test Unit Ready failed: Result: hostbyte=0x01 driverbyte=DRIVER_OK

Signed-off-by: Florian Fuchs <fuchsfl@gmail.com>
---
The processed CDB, where 0xb8 was set after subpage code 0x05:
	5a 08 0a 05 00 00 00 02 00 00

Prior error message, no partitions found and Test Unit Ready failed:

	imm: Found device at ID 6, Attempting to use EPP 8 bit
	imm: Communication established at 0xd010 with ID 6 using EPP 8 bit
	scsi host7: Iomega VPI2 (imm) interface
	scsi 7:0:6:0: Direct-Access     IOMEGA   ZIP 100          P.04 PQ: 0 ANSI: 2
	sd 7:0:6:0: Power-on or device reset occurred
	sd 7:0:6:0: Power-on or device reset occurred
	sd 7:0:6:0: [sdh] 196608 512-byte logical blocks: (101 MB/96.0 MiB)
	sd 7:0:6:0: [sdh] Write Protect is off
	sd 7:0:6:0: [sdh] Mode Sense: 25 00 00 08
	sd 7:0:6:0: [sdh] Cache data unavailable
	sd 7:0:6:0: [sdh] Assuming drive cache: write through
	IMM: returned SCSI status b8
	sd 7:0:6:0: [sdh] Test Unit Ready failed: Result: hostbyte=0x01 driverbyte=DRIVER_OK
	sdh: detected capacity change from 196608 to 0
	sd 7:0:6:0: [sdh] Attached SCSI removable disk

Ater this fix, the partition is detected and the drive works like we deserve:

	imm: Found device at ID 6, Attempting to use EPP 8 bit
	imm: Communication established at 0xd010 with ID 6 using EPP 8 bit
	scsi host7: Iomega VPI2 (imm) interface
	scsi 7:0:6:0: Direct-Access     IOMEGA   ZIP 100          P.04 PQ: 0 ANSI: 2
	sd 7:0:6:0: Power-on or device reset occurred
	sd 7:0:6:0: Power-on or device reset occurred
	sd 7:0:6:0: [sdh] 196608 512-byte logical blocks: (101 MB/96.0 MiB)
	sd 7:0:6:0: [sdh] Write Protect is off
	sd 7:0:6:0: [sdh] Mode Sense: 25 00 00 08
	sd 7:0:6:0: [sdh] Cache data unavailable
	sd 7:0:6:0: [sdh] Assuming drive cache: write through
	 sdh: sdh4
	sd 7:0:6:0: [sdh] Attached SCSI removable disk
---
 drivers/scsi/scsi_devinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/scsi_devinfo.c b/drivers/scsi/scsi_devinfo.c
index 0dada89d8d99..68a992494b12 100644
--- a/drivers/scsi/scsi_devinfo.c
+++ b/drivers/scsi/scsi_devinfo.c
@@ -190,7 +190,7 @@ static struct {
 	{"IBM", "2076", NULL, BLIST_NO_VPD_SIZE},
 	{"IBM", "2105", NULL, BLIST_RETRY_HWERROR},
 	{"iomega", "jaz 1GB", "J.86", BLIST_NOTQ | BLIST_NOLUN},
-	{"IOMEGA", "ZIP", NULL, BLIST_NOTQ | BLIST_NOLUN},
+	{"IOMEGA", "ZIP", NULL, BLIST_NOTQ | BLIST_NOLUN | BLIST_SKIP_IO_HINTS},
 	{"IOMEGA", "Io20S         *F", NULL, BLIST_KEY},
 	{"INSITE", "Floptical   F*8I", NULL, BLIST_KEY},
 	{"INSITE", "I325VM", NULL, BLIST_KEY},

base-commit: 2f38fd99c0004676d835ae96ac4f3b54edc02c82
-- 
2.43.0


             reply	other threads:[~2026-02-27 18:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-27 18:18 Florian Fuchs [this message]
2026-02-28 23:16 ` [PATCH] scsi: devinfo: Add BLIST_SKIP_IO_HINTS for Iomega ZIP Martin K. Petersen

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=20260227181823.892932-1-fuchsfl@gmail.com \
    --to=fuchsfl@gmail.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=linux-kernel@vger.kernel.org \
    --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