Please post output from 'readcap' diagnostic.

af123

Administrator
Staff member
I have a theory about the broadcom hardware interface that I'd like to test. Please could a few people post the output of the readcap diagnostic for me?

Code:
Running: readcap
standard INQUIRY:
  PQual=0  Device_type=0  RMB=0  LU_CONG=0  version=0x05  [SPC-3]
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=2
  SCCS=0  ACC=0  TPGS=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
  [SPI: Clocking=0x0  QAS=0  IUS=0]
  length=96 (0x60)  Peripheral device type: disk
Vendor identification: ATA
Product identification: ST2000VM002-9UY1
Product revision level: SC01
00  e8 e0 88 af 00 00 02 00
00  00 00 00 00 00 00 e8 e0  88 af 00 00 02 00 00 00
10  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 

Black Hole

May contain traces of nut
HDR3 (oops! I think the diagnostic has picked up the UPD):
Code:
Running: readcap
standard INQUIRY:
  PQual=0  Device_type=0  RMB=1  LU_CONG=0  version=0x04  [SPC-2]
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=2
  SCCS=0  ACC=0  TPGS=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=36 (0x24)   Peripheral device type: disk
Vendor identification: Generic
Product identification: Flash Disk 
Product revision level: 8.07
00     00 ef ff ff 00 00 02 00
HDR4:
Code:
Running: readcap
standard INQUIRY:
  PQual=0  Device_type=0  RMB=0  LU_CONG=0  version=0x05  [SPC-3]
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=2
  SCCS=0  ACC=0  TPGS=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
  [SPI: Clocking=0x0  QAS=0  IUS=0]
    length=96 (0x60)   Peripheral device type: disk
Vendor identification: ATA  
Product identification: ST3500312CS  
Product revision level: SC13
00     3a 38 60 2f 00 00 02 00
00     00 00 00 00 00 00 3a 38  60 2f 00 00 02 00 00 00
10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
HDR1 got stuck, it may have two USB drives at the mo. Second try:
Code:
Running: readcap
standard INQUIRY:
  PQual=0  Device_type=0  RMB=0  LU_CONG=0  version=0x02  [SCSI-2]
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=1
  SCCS=0  ACC=0  TPGS=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=36 (0x24)   Peripheral device type: disk
Vendor identification: Samsung
Product identification: M2 Portable
Product revision level:
00     57 54 66 ef 00 00 02 00
I can re-run with the USBs out, but I think we know what the result will be!
 
Last edited:

MymsMan

Ad detector
Code:
Running: readcap
standard INQUIRY:
  PQual=0  Device_type=0  RMB=0  LU_CONG=0  version=0x05  [SPC-3]
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=2
  SCCS=0  ACC=0  TPGS=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
  [SPI: Clocking=0x0  QAS=0  IUS=0]
    length=96 (0x60)   Peripheral device type: disk
Vendor identification: ATA
Product identification: ST3500312CS
Product revision level: SC13
00     3a 38 60 2f 00 00 02 00
00     00 00 00 00 00 00 3a 38  60 2f 00 00 02 00 00 00
10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 

prpr

Well-Known Member
My 3 units (all ST3500312CS/SC13) are the same as the aforementioned posts.

Strangely, 2 of the units take about 3-4 seconds to perform this test and the other unit takes 15 seconds. The latter is the one that has complete lockups periodically though.
 

MontysEvilTwin

Well-Known Member
This is from an HDR-FOX with an original, factory-fitted 1TB disk:
Code:
 standard INQUIRY:                                                               
  PQual=0  Device_type=0  RMB=0  LU_CONG=0  version=0x05  [SPC-3]               
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=2                 
  SCCS=0  ACC=0  TPGS=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               
  [SPI: Clocking=0x0  QAS=0  IUS=0]                                             
    length=96 (0x60)   Peripheral device type: disk                             
Vendor identification: ATA                                                     
Product identification: ST31000424CS                                           
Product revision level: SC13                                                   
00     74 70 6d af 00 00 02 00                                                 
00     00 00 00 00 00 00 74 70  6d af 00 00 02 00 00 00                       
10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 

raydon

Well-Known Member
Code:
Running: readcap
standard INQUIRY:
  PQual=0  Device_type=0  RMB=0  LU_CONG=0  version=0x05  [SPC-3]
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=2
  SCCS=0  ACC=0  TPGS=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
  [SPI: Clocking=0x0  QAS=0  IUS=0]
    length=96 (0x60)   Peripheral device type: disk
Vendor identification: ATA    
Product identification: ST3500312CS    
Product revision level: SC13
00     3a 38 60 2f 00 00 02 00
00     00 00 00 00 00 00 3a 38  60 2f 00 00 02 00 00 00
10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 
OP
af123

af123

Administrator
Staff member
Thanks. They're all showing the same thing - the response to the READ CAPACITY(16) command is wrong. There are two extra zero bytes at the start.

This is what it should look like (taken from a Seagate in a server).

Code:
READ CAPACITY (10)
 00     74 70 6d af 00 00 02 00
READ CAPACITY (16)
 00     00 00 00 00 74 70 6d af  00 00 02 00 00 00 00 00
 10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

I can't find any examples of this elsewhere via web searches, nor can I find any changes in the Linux SCSI disk driver between 2.6.18 and 4.4 that suggest this is expected. I can only presume that this is being caused by the Broadcom layer but I plan to connect the same drive directly to a PC later and compare results.
 

Black Hole

May contain traces of nut
...and this design fault only manifests in the (unlikely) event that somebody happens to connect a BIG disk, and therefore has remained undiscovered until now?
 
OP
af123

af123

Administrator
Staff member
I don't know for sure where the problem lies however I can't believe that all of these disks are returning incorrect data..
 

HarveyB

Active Member
Original 1TB disk.
>>> Beginning diagnostic readcap
Code:
Running: readcap
standard INQUIRY:
  PQual=0  Device_type=0  RMB=0  LU_CONG=0  version=0x05  [SPC-3]
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=2
  SCCS=0  ACC=0  TPGS=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
  [SPI: Clocking=0x0  QAS=0  IUS=0]
    length=96 (0x60)   Peripheral device type: disk
 Vendor identification: ATA     
 Product identification: ST31000424CS    
 Product revision level: SC13
 00     74 70 6d af 00 00 02 00
 00     00 00 00 00 00 00 74 70  6d af 00 00 02 00 00 00
 10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00


>>> Ending diagnostic readcap

Sent from my iPad using iPad
 
Last edited:

sceptic

Member
Code:
>>> Beginning diagnostic readcap

Running: readcap
standard INQUIRY:
  PQual=0  Device_type=0  RMB=0  LU_CONG=0  version=0x05  [SPC-3]
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=2
  SCCS=0  ACC=0  TPGS=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
  [SPI: Clocking=0x0  QAS=0  IUS=0]
    length=96 (0x60)   Peripheral device type: disk
Vendor identification: ATA     
Product identification: WDC WD20PURX-64P
Product revision level: 80.0
00     e8 e0 88 af 00 00 02 00
00     00 00 00 00 00 00 e8 e0  88 af 00 00 02 00 00 00
10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00


>>> Ending diagnostic readcap
 

ian_j

Member
Code:
>>> Beginning diagnostic readcap

Running: readcap
standard INQUIRY:
  PQual=0  Device_type=0  RMB=0  LU_CONG=0  version=0x05  [SPC-3]
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=2
  SCCS=0  ACC=0  TPGS=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
  [SPI: Clocking=0x0  QAS=0  IUS=0]
    length=96 (0x60)   Peripheral device type: disk
Vendor identification: ATA     
Product identification: ST31000424CS   
Product revision level: SC13
00     74 70 6d af 00 00 02 00
00     00 00 00 00 00 00 74 70  6d af 00 00 02 00 00 00
10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00


>>> Ending diagnostic readcap
 
Top