All of lore.kernel.org
 help / color / mirror / Atom feed
* scsi-sd fails with error "Invalid field in cdb" for SATA-to-USB adapter JMicron
@ 2015-11-07 12:18 Dmitry Katsubo
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Katsubo @ 2015-11-07 12:18 UTC (permalink / raw)
  To: linux-scsi; +Cc: linux-usb-general

Hello,

In continuation to the issue described in [1] and [2]:

Unfortunately, I still suffer from the same problem on Linux kernel
v4.2.3. The problem is in detailed described in [3], in particular I see
the following in dmesg:

sd 6:0:0:0: [sdd] 234441648 512-byte logical blocks: (120 GB/111 GiB)
sd 6:0:0:0: [sdd] 4096-byte physical blocks
sd 6:0:0:0: [sdd] Write Protect is off
sd 6:0:0:0: [sdd] Mode Sense: 53 00 10 08
sd 6:0:0:0: [sdd] Write cache: enabled, read cache: enabled, supports
DPO and FUA
...
sd 6:0:0:0: [sdd] tag#0 FAILED Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE
sd 6:0:0:0: [sdd] tag#0 Sense Key : Illegal Request [current]
sd 6:0:0:0: [sdd] tag#0 Add. Sense: Invalid field in cdb
sd 6:0:0:0: [sdd] tag#0 CDB: Write(10) 2a 08 00 00 10 80 00 00 08 00
blk_update_request: critical target error, dev sdd, sector 4224
BTRFS: lost page write due to I/O error on /dev/sdd1
BTRFS: bdev /dev/sdd1 errs: wr 9, rd 0, flush 0, corrupt 0, gen 0

I believe that according to patches [4], [5] I should see something like
"Disabling FUA" in logs.

Any information about how to fix the problem is appreciated.

> [1] http://permalink.gmane.org/gmane.linux.scsi/91997
> [2] http://permalink.gmane.org/gmane.linux.usb.general/120430
> [3] http://unix.stackexchange.com/questions/237204/
> [4] https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable/+blame/v4.2.3/drivers/scsi/sd.c#2446
> [5] https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable/+blame/v4.2.3/drivers/usb/storage/unusual_devs.h#1990

-- 
With best regards,
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

* scsi-sd fails with error "Invalid field in cdb" for SATA-to-USB adapter JMicron
@ 2015-10-27 19:47 Dmitry Katsubo
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Katsubo @ 2015-10-27 19:47 UTC (permalink / raw)
  To: linux-scsi

Hello,

In continuation to the issue described in [1] and [2]:

Unfortunately, I still suffer from the same problem on Linux kernel
v4.2.3. The problem is in detailed described in [3], in particular I see
the following in dmesg:

sd 6:0:0:0: [sdd] 234441648 512-byte logical blocks: (120 GB/111 GiB)
sd 6:0:0:0: [sdd] 4096-byte physical blocks
sd 6:0:0:0: [sdd] Write Protect is off
sd 6:0:0:0: [sdd] Mode Sense: 53 00 10 08
sd 6:0:0:0: [sdd] Write cache: enabled, read cache: enabled, supports
DPO and FUA
...
sd 6:0:0:0: [sdd] tag#0 FAILED Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE
sd 6:0:0:0: [sdd] tag#0 Sense Key : Illegal Request [current]
sd 6:0:0:0: [sdd] tag#0 Add. Sense: Invalid field in cdb
sd 6:0:0:0: [sdd] tag#0 CDB: Write(10) 2a 08 00 00 10 80 00 00 08 00
blk_update_request: critical target error, dev sdd, sector 4224
BTRFS: lost page write due to I/O error on /dev/sdd1
BTRFS: bdev /dev/sdd1 errs: wr 9, rd 0, flush 0, corrupt 0, gen 0

I believe that according to patches [4], [5] I should see something like
"Disabling FUA" in logs.

Any information about how to fix the problem is appreciated.

> [1] http://permalink.gmane.org/gmane.linux.scsi/91997
> [2] http://permalink.gmane.org/gmane.linux.usb.general/120430
> [3] http://unix.stackexchange.com/questions/237204/
> [4] https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable/+blame/v4.2.3/drivers/scsi/sd.c#2446
> [5] https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable/+blame/v4.2.3/drivers/usb/storage/unusual_devs.h#1990

-- 
With best regards,
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-07 12:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-07 12:18 scsi-sd fails with error "Invalid field in cdb" for SATA-to-USB adapter JMicron Dmitry Katsubo
  -- strict thread matches above, loose matches on Subject: below --
2015-10-27 19:47 Dmitry Katsubo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.