scsi: devinfo: Add BLIST_SKIP_IO_HINTS for Iomega ZIP
PATCH 1/1 scsi: devinfo: Add BLIST_SKIP_IO_HINTS for Iomega ZIP
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
---
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(-)
drivers/scsi/scsi_devinfo.c +1 -1
@@ -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
Signature · 1 line
2.43.0
Hi Florian!
Quoted 6 lines
The Iomega ZIP 100 (Z100P2) can't process IO Advice Hints Grouping mode page query. It immediately switches to the status phase
0xb8after receiving the subpage code0x05ofMODE_SENSE_10command, which failsimm_out()and turns intoDID_ERRORof 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.
Great work! Applied to 7.0/scsi-fixes, thanks!
Signature · 1 line
Martin K. Petersen