Re: [BISECTED] Re: [BUG] Linux-2.6.31-rc1 Fails To Recognize Some USB Disks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/24/2009 05:02 PM, Martin K. Petersen wrote:
Tarkan>  Today, I had time to bisect and you were right: The below commit
Tarkan>  related to capacity detection changes in SCSI subsystem,as you
Tarkan>  mentioned, seems the cause of the problem.

Thanks for bisecting this.

You're welcome ;-)
Tarkan>      Detect non-rotational devices and set the queue flag
Tarkan>      accordingly.

Aha, so you're getting USB resets because your USB-ATA bridge gets
confused when we ask it a simple question.  What a marvel of modern
engineering that thing is...

Please send me the output of:

sg_inq -e /dev/foo
sg_inq -l 16 /dev/foo
sg_inq -l 16 -e /dev/foo
sg_inq -l 36 /dev/foo
sg_inq -l 36 -e /dev/foo
sg_vpd -p sv /dev/foo
sg_vpd -p bl /dev/foo
sg_vpd -p bdc /dev/foo


Here are the results of the commands you asked :

root@tarkane:~# sg_inq -e /dev/sdb
VPD INQUIRY: extended INQUIRY data page

inquiry: transport: Host_status=0x05 [DID_ABORT]
Driver_status=0x00 [DRIVER_OK, SUGGEST_OK]

    inquiry: failed, res=-1


root@tarkane:~# sg_inq -l 16 /dev/sdb
standard INQUIRY:
  PQual=0  Device_type=0  RMB=0  version=0x00  [no conformance claimed]
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=0
  SCCS=0  ACC=0  TGPS=0  3PC=0  Protect=0  BQue=0
  EncServ=0  MultiP=0  [MChngr=0]  [ACKREQQ=0]  Addr16=0
  [RelAdr=0]  WBus16=0  Sync=0  Linked=0  [TranDis=0]  CmdQue=0
length=74 (0x4a), but only fetched 16 bytes Peripheral device type: disk
 Vendor identification: WD
 Product identification: <none>
 Product revision level: <none>


root@tarkane:~# sg_inq -l 16 -e /dev/sdb
VPD INQUIRY: extended INQUIRY data page
inquiry: transport: Host_status=0x05 [DID_ABORT]
Driver_status=0x00 [DRIVER_OK, SUGGEST_OK]

    inquiry: failed, res=-1


root@tarkane:~# sg_inq -l 36 /dev/sdb
standard INQUIRY:
  PQual=0  Device_type=0  RMB=0  version=0x00  [no conformance claimed]
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=0
  SCCS=0  ACC=0  TGPS=0  3PC=0  Protect=0  BQue=0
  EncServ=0  MultiP=0  [MChngr=0]  [ACKREQQ=0]  Addr16=0
  [RelAdr=0]  WBus16=0  Sync=0  Linked=0  [TranDis=0]  CmdQue=0
length=74 (0x4a), but only fetched 36 bytes Peripheral device type: disk
 Vendor identification: WD
 Product identification: 2500JB External
 Product revision level: 0108


root@tarkane:~# sg_inq -l 36 -e /dev/sdb
VPD INQUIRY: extended INQUIRY data page
inquiry: transport: Host_status=0x05 [DID_ABORT]
Driver_status=0x00 [DRIVER_OK, SUGGEST_OK]

    inquiry: failed, res=-1


root@tarkane:~# sg_vpd -p sv /dev/sdb
Supported VPD pages VPD page:
inquiry: transport: Host_status=0x05 [DID_ABORT]
Driver_status=0x00 [DRIVER_OK, SUGGEST_OK]

fetching VPD page failed


root@tarkane:~# sg_vpd -p bl /dev/sdb
inquiry: transport: Host_status=0x05 [DID_ABORT]
Driver_status=0x00 [DRIVER_OK, SUGGEST_OK]

VPD page=0xb0
fetching VPD page failed


root@tarkane:~# sg_vpd -p bdc /dev/sdb
abbreviation doesn't match a VPD page
available VPD pages:
  ai         0x89      ATA information (SAT)
  aod        0x82      ASCII implemented operating definition (obs)
  bl         0xb0      Block limits (SBC)
  di         0x83      Device identification
  di_asis    0x83      Like 'di' but designators ordered as found
  di_lu      0x83      Device identification, lu only
  di_port    0x83      Device identification, target port only
  di_target  0x83      Device identification, target device only
  ei         0x86      Extended inquiry data
  iod        0x81      Implemented operating definition (obs)
  mas        0xb1      Manufacturer assigned serial number (SSC)
  mna        0x85      Management network addresses
  mpp        0x87      Mode page policy
  oi         0xb0      OSD information
  sad        0xb0      Sequential access device capabilities (SSC)
  sii        0x84      Software interface identification
  sn         0x80      Unit serial number
  sp         0x88      SCSI ports
  st         0xb1      Security token (OSD)
  sv         0x00      Supported VPD pages
  tas        0xb2      TapeAlert supported flags (SSC)

Vendor specific VPD pages:
  datc       0xc1,0      Date code (Seagate)
  devb       0xc3,0      Device behavior (Seagate)
  firm       0xc0,0      Firmware numbers (Seagate)
  jump       0xc2,0      Jump setting (Seagate)
  sver       0xc2,1      Software version (RDAC)
  upr        0xc0,1      Unit path report (EMC)
  vac        0xc9,0      Volume access control (RDAC)

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux