[Bug 191717] New: smartctl -H gives "ATA output registers missing" for a disk using the isci driver

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 7 18:16:50 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191717

            Bug ID: 191717
           Summary: smartctl -H gives "ATA output registers missing" for a
                    disk using the isci driver
           Product: Base System
           Version: 10.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: martin at lispworks.com

I am having problems with smartctl from smartmontools-6.2_2 failing with the
message:

SMART STATUS RETURN: incomplete response, ATA output registers missing

with a SATA disk connected like this:

isci0: <Intel(R) C600 Series Chipset SAS Controller (SATA mode)> port
0x2100-0x21ff,0x2000-0x20ff mem
0x38007f800000-0x38007f807fff,0x38007f000000-0x38007f7fffff irq 26 at device
0.0 on pci3
da2 at isci0 bus 0 scbus0 target 2 lun 0
da2: <ATA ST4000NM0033-9ZM SN03> Fixed Direct Access SCSI-5 device 
da2: Serial Number             Z1Z341YS
da2: 300.000MB/s transfers
da2: Command Queueing enabled
da2: 3815447MB (7814037168 512 byte sectors: 255H 63S/T 486401C)

The machine is running 10.0-RELEASE-p6 with the isci patches r265570, r265571
and r268073 but the problem also occurs when running from
FreeBSD-11.0-CURRENT-amd64-20140701-r268111-memstick-uefi.img.

I suspect a bug in the kernel or driver because the same version of smartctl
works when the machine is booted from a CentOS 6.3 LiveCD.


Here is the full output from smartctl (error at the end):

$ /usr/local/sbin/smartctl -H -r ioctl,2 /dev/da2
smartctl 6.2 2014-02-18 r3874 [FreeBSD 10.0-RELEASE-p6 amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

 [inquiry: 12 00 00 00 24 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=36:
 00     00 00 05 02 3e 00 00 02  41 54 41 20 20 20 20 20                        
 10     53 54 34 30 30 30 4e 4d  30 30 33 33 2d 39 5a 4d                        
 20     53 4e 30 33                                                             
  status=0x0
 [ata pass-through(16): 85 08 0e 00 00 00 01 00 00 00 00 00 00 00 ec 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=512 [only first 256 bytes shown]:
 00     5a 0c ff 3f 37 c8 10 00  00 00 00 00 3f 00 00 00                        
 10     00 00 00 00 20 20 20 20  20 20 20 20 20 20 20 20                        
 20     31 5a 33 5a 31 34 53 59  00 00 00 00 00 00 4e 53                        
 30     33 30 20 20 20 20 54 53  30 34 30 30 4d 4e 30 30                        
 40     33 33 39 2d 4d 5a 37 31  20 30 20 20 20 20 20 20                        
 50     20 20 20 20 20 20 20 20  20 20 20 20 20 20 10 80                        
 60     00 40 00 2f 00 40 00 02  00 02 07 00 ff 3f 10 00                        
 70     3f 00 10 fc fb 00 10 00  ff ff ff 0f 00 00 07 00                        
 80     03 00 78 00 78 00 78 00  78 00 00 00 00 00 00 00                        
 90     00 00 00 00 00 00 1f 00  0e 8d 04 00 cc 00 40 00                        
 a0     f0 03 00 00 6b 34 01 75  63 61 69 34 01 b4 63 61                        
 b0     7f 40 e9 00 e9 00 00 00  fe ff 00 00 00 fe 00 00                        
 c0     00 00 00 00 00 00 00 00  b0 be c0 d1 01 00 00 00                        
 d0     00 00 00 00 00 40 00 00  00 50 00 c5 e8 65 39 95                        
 e0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 de 40                        
 f0     9c 40 00 00 00 00 00 00  00 00 00 00 00 00 00 00                        
  status=0x0

REPORT-IOCTL: Device=/dev/da2 Command=IDENTIFY DEVICE
 Input:   FR=...., SC=0x01, LL=...., LM=...., LH=...., DEV=...., CMD=0xec IN
 [ata pass-through(16): 85 08 0e 00 00 00 01 00 00 00 00 00 00 00 ec 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=512 [only first 256 bytes shown]:
 00     5a 0c ff 3f 37 c8 10 00  00 00 00 00 3f 00 00 00                        
 10     00 00 00 00 20 20 20 20  20 20 20 20 20 20 20 20                        
 20     31 5a 33 5a 31 34 53 59  00 00 00 00 00 00 4e 53                        
 30     33 30 20 20 20 20 54 53  30 34 30 30 4d 4e 30 30                        
 40     33 33 39 2d 4d 5a 37 31  20 30 20 20 20 20 20 20                        
 50     20 20 20 20 20 20 20 20  20 20 20 20 20 20 10 80                        
 60     00 40 00 2f 00 40 00 02  00 02 07 00 ff 3f 10 00                        
 70     3f 00 10 fc fb 00 10 00  ff ff ff 0f 00 00 07 00                        
 80     03 00 78 00 78 00 78 00  78 00 00 00 00 00 00 00                        
 90     00 00 00 00 00 00 1f 00  0e 8d 04 00 cc 00 40 00                        
 a0     f0 03 00 00 6b 34 01 75  63 61 69 34 01 b4 63 61                        
 b0     7f 40 e9 00 e9 00 00 00  fe ff 00 00 00 fe 00 00                        
 c0     00 00 00 00 00 00 00 00  b0 be c0 d1 01 00 00 00                        
 d0     00 00 00 00 00 40 00 00  00 50 00 c5 e8 65 39 95                        
 e0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 de 40                        
 f0     9c 40 00 00 00 00 00 00  00 00 00 00 00 00 00 00                        
  status=0x0
 [Duration: 0.001s]
REPORT-IOCTL: Device=/dev/da2 Command=IDENTIFY DEVICE returned 0

===== [IDENTIFY DEVICE] DATA START (BASE-16) =====
000-015: 5a 0c ff 3f 37 c8 10 00 00 00 00 00 3f 00 00 00 |Z..?7.......?...|
016-031: 00 00 00 00 20 20 20 20 20 20 20 20 20 20 20 20 |....            |
032-047: 31 5a 33 5a 31 34 53 59 00 00 00 00 00 00 4e 53 |1Z3Z14SY......NS|
048-063: 33 30 20 20 20 20 54 53 30 34 30 30 4d 4e 30 30 |30    TS0400MN00|
064-079: 33 33 39 2d 4d 5a 37 31 20 30 20 20 20 20 20 20 |339-MZ71 0      |
080-095: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 10 80 |              ..|
096-111: 00 40 00 2f 00 40 00 02 00 02 07 00 ff 3f 10 00 |. at ./. at .......?..|
112-127: 3f 00 10 fc fb 00 10 00 ff ff ff 0f 00 00 07 00 |?...............|
128-143: 03 00 78 00 78 00 78 00 78 00 00 00 00 00 00 00 |..x.x.x.x.......|
144-159: 00 00 00 00 00 00 1f 00 0e 8d 04 00 cc 00 40 00 |.............. at .|
160-175: f0 03 00 00 6b 34 01 75 63 61 69 34 01 b4 63 61 |....k4.ucai4..ca|
176-191: 7f 40 e9 00 e9 00 00 00 fe ff 00 00 00 fe 00 00 |. at ..............|
192-207: 00 00 00 00 00 00 00 00 b0 be c0 d1 01 00 00 00 |................|
208-223: 00 00 00 00 00 40 00 00 00 50 00 c5 e8 65 39 95 |..... at ...P...e9.|
224-239: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 de 40 |...............@|
240-255: 9c 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |. at ..............|
256-271: 21 00 b0 be c0 d1 b0 be c0 d1 20 20 02 00 40 01 |!.........  .. at .|
272-287: 08 01 00 50 06 3c 0a 3c 00 00 3c 00 00 00 08 00 |...P.<.<..<.....|
288-303: 00 00 00 00 ff 7d 80 02 00 00 70 00 08 00 00 00 |.....}....p.....|
304-319: 00 00 00 00 00 00 00 00 00 00 8d 00 00 63 48 88 |.............cH.|
320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
336-351: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
352-367: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
368-383: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
384-399: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
400-415: 00 00 00 00 00 00 00 00 00 00 00 00 bd 50 00 00 |.............P..|
416-431: 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 |... at ............|
432-447: 00 00 20 1c 00 00 00 00 00 00 00 00 20 10 00 00 |.. ......... ...|
448-463: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
464-479: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
480-495: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a5 ed |................|
===== [IDENTIFY DEVICE] DATA END (512 Bytes) =====


REPORT-IOCTL: Device=/dev/da2 Command=SMART READ ATTRIBUTE VALUES
 Input:   FR=0xd0, SC=0x01, LL=...., LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0 IN
 [ata pass-through(16): 85 08 0e 00 d0 00 01 00 00 00 4f 00 c2 00 b0 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=512 [only first 256 bytes shown]:
 00     0a 00 01 0f 00 52 3f 44  7b 99 0a 00 00 00 03 03                        
 10     00 5d 5d 00 00 00 00 00  00 00 04 32 00 64 64 0b                        
 20     00 00 00 00 00 00 05 33  00 64 64 00 00 00 00 00                        
 30     00 00 07 0f 00 4b 3c bb  21 23 02 00 00 00 09 32                        
 40     00 64 64 06 01 00 00 00  00 00 0a 13 00 64 64 00                        
 50     00 00 00 00 00 00 0c 32  00 64 64 0b 00 00 00 00                        
 60     00 00 b8 32 00 64 64 00  00 00 00 00 00 00 bb 32                        
 70     00 64 64 00 00 00 00 00  00 00 bc 32 00 64 64 00                        
 80     00 00 00 00 00 00 bd 3a  00 64 64 00 00 00 00 00                        
 90     00 00 be 22 00 3d 3b 27  00 1a 29 00 00 00 bf 32                        
 a0     00 64 64 00 00 00 00 00  00 00 c0 32 00 64 64 0a                        
 b0     00 00 00 00 00 00 c1 32  00 64 64 15 00 00 00 00                        
 c0     00 00 c2 22 00 27 29 27  00 00 00 17 00 00 c3 1a                        
 d0     00 16 03 44 7b 99 0a 00  00 00 c5 12 00 64 64 00                        
 e0     00 00 00 00 00 00 c6 10  00 64 64 00 00 00 00 00                        
 f0     00 00 c7 3e 00 c8 c8 00  00 00 00 00 00 00 00 00                        
  status=0x0
 [Duration: 0.066s]
REPORT-IOCTL: Device=/dev/da2 Command=SMART READ ATTRIBUTE VALUES returned 0

===== [SMART READ ATTRIBUTE VALUES] DATA START (BASE-16) =====
000-015: 0a 00 01 0f 00 52 3f 44 7b 99 0a 00 00 00 03 03 |.....R?D{.......|
016-031: 00 5d 5d 00 00 00 00 00 00 00 04 32 00 64 64 0b |.]]........2.dd.|
032-047: 00 00 00 00 00 00 05 33 00 64 64 00 00 00 00 00 |.......3.dd.....|
048-063: 00 00 07 0f 00 4b 3c bb 21 23 02 00 00 00 09 32 |.....K<.!#.....2|
064-079: 00 64 64 06 01 00 00 00 00 00 0a 13 00 64 64 00 |.dd..........dd.|
080-095: 00 00 00 00 00 00 0c 32 00 64 64 0b 00 00 00 00 |.......2.dd.....|
096-111: 00 00 b8 32 00 64 64 00 00 00 00 00 00 00 bb 32 |...2.dd........2|
112-127: 00 64 64 00 00 00 00 00 00 00 bc 32 00 64 64 00 |.dd........2.dd.|
128-143: 00 00 00 00 00 00 bd 3a 00 64 64 00 00 00 00 00 |.......:.dd.....|
144-159: 00 00 be 22 00 3d 3b 27 00 1a 29 00 00 00 bf 32 |...".=;'..)....2|
160-175: 00 64 64 00 00 00 00 00 00 00 c0 32 00 64 64 0a |.dd........2.dd.|
176-191: 00 00 00 00 00 00 c1 32 00 64 64 15 00 00 00 00 |.......2.dd.....|
192-207: 00 00 c2 22 00 27 29 27 00 00 00 17 00 00 c3 1a |...".')'........|
208-223: 00 16 03 44 7b 99 0a 00 00 00 c5 12 00 64 64 00 |...D{........dd.|
224-239: 00 00 00 00 00 00 c6 10 00 64 64 00 00 00 00 00 |.........dd.....|
240-255: 00 00 c7 3e 00 c8 c8 00 00 00 00 00 00 00 00 00 |...>............|
256-271: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
272-287: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
288-303: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
304-319: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
336-351: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
352-367: 00 00 00 00 00 00 00 00 00 00 82 00 50 02 00 7b |............P..{|
368-383: 03 00 01 00 01 ff 02 e9 01 00 00 00 00 00 00 00 |................|
384-399: 00 00 05 00 00 00 00 00 03 08 08 08 08 07 08 08 |................|
400-415: 08 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 |................|
416-431: 00 00 00 00 00 00 00 00 b9 55 b7 26 dc 00 00 00 |.........U.&....|
432-447: 00 00 00 00 01 00 08 00 26 b3 2f 66 00 00 00 00 |........&./f....|
448-463: 8d eb b5 08 00 00 00 00 00 00 00 00 ff ff ff ff |................|
464-479: 00 00 00 00 00 00 00 00 1c 15 00 00 01 00 00 00 |................|
480-495: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dc |................|
===== [SMART READ ATTRIBUTE VALUES] DATA END (512 Bytes) =====


REPORT-IOCTL: Device=/dev/da2 Command=SMART READ ATTRIBUTE THRESHOLDS
 Input:   FR=0xd1, SC=0x01, LL=0x01, LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0 IN
 [ata pass-through(16): 85 08 0e 00 d1 00 01 00 01 00 4f 00 c2 00 b0 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=512 [only first 256 bytes shown]:
 00     01 00 01 2c 00 00 00 00  00 00 00 00 00 00 03 00                        
 10     00 00 00 00 00 00 00 00  00 00 04 14 00 00 00 00                        
 20     00 00 00 00 00 00 05 0a  00 00 00 00 00 00 00 00                        
 30     00 00 07 1e 00 00 00 00  00 00 00 00 00 00 09 00                        
 40     00 00 00 00 00 00 00 00  00 00 0a 61 00 00 00 00                        
 50     00 00 00 00 00 00 0c 14  00 00 00 00 00 00 00 00                        
 60     00 00 b8 63 00 00 00 00  00 00 00 00 00 00 bb 00                        
 70     00 00 00 00 00 00 00 00  00 00 bc 00 00 00 00 00                        
 80     00 00 00 00 00 00 bd 00  00 00 00 00 00 00 00 00                        
 90     00 00 be 2d 00 00 00 00  00 00 00 00 00 00 bf 00                        
 a0     00 00 00 00 00 00 00 00  00 00 c0 00 00 00 00 00                        
 b0     00 00 00 00 00 00 c1 00  00 00 00 00 00 00 00 00                        
 c0     00 00 c2 00 00 00 00 00  00 00 00 00 00 00 c3 00                        
 d0     00 00 00 00 00 00 00 00  00 00 c5 00 00 00 00 00                        
 e0     00 00 00 00 00 00 c6 00  00 00 00 00 00 00 00 00                        
 f0     00 00 c7 00 00 00 00 00  00 00 00 00 00 00 00 00                        
  status=0x0
 [Duration: 0.009s]
REPORT-IOCTL: Device=/dev/da2 Command=SMART READ ATTRIBUTE THRESHOLDS returned
0

===== [SMART READ ATTRIBUTE THRESHOLDS] DATA START (BASE-16) =====
000-015: 01 00 01 2c 00 00 00 00 00 00 00 00 00 00 03 00 |...,............|
016-031: 00 00 00 00 00 00 00 00 00 00 04 14 00 00 00 00 |................|
032-047: 00 00 00 00 00 00 05 0a 00 00 00 00 00 00 00 00 |................|
048-063: 00 00 07 1e 00 00 00 00 00 00 00 00 00 00 09 00 |................|
064-079: 00 00 00 00 00 00 00 00 00 00 0a 61 00 00 00 00 |...........a....|
080-095: 00 00 00 00 00 00 0c 14 00 00 00 00 00 00 00 00 |................|
096-111: 00 00 b8 63 00 00 00 00 00 00 00 00 00 00 bb 00 |...c............|
112-127: 00 00 00 00 00 00 00 00 00 00 bc 00 00 00 00 00 |................|
128-143: 00 00 00 00 00 00 bd 00 00 00 00 00 00 00 00 00 |................|
144-159: 00 00 be 2d 00 00 00 00 00 00 00 00 00 00 bf 00 |...-............|
160-175: 00 00 00 00 00 00 00 00 00 00 c0 00 00 00 00 00 |................|
176-191: 00 00 00 00 00 00 c1 00 00 00 00 00 00 00 00 00 |................|
192-207: 00 00 c2 00 00 00 00 00 00 00 00 00 00 00 c3 00 |................|
208-223: 00 00 00 00 00 00 00 00 00 00 c5 00 00 00 00 00 |................|
224-239: 00 00 00 00 00 00 c6 00 00 00 00 00 00 00 00 00 |................|
240-255: 00 00 c7 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
256-271: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
272-287: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
288-303: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
304-319: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
336-351: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
352-367: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
368-383: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
384-399: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
400-415: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
416-431: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
432-447: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
448-463: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
464-479: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
480-495: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 9e |................|
===== [SMART READ ATTRIBUTE THRESHOLDS] DATA END (512 Bytes) =====

=== START OF READ SMART DATA SECTION ===

REPORT-IOCTL: Device=/dev/da2 Command=SMART STATUS CHECK
 Input:   FR=0xda, SC=...., LL=...., LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0
 [ata pass-through(16): 85 06 2c 00 da 00 00 00 00 00 4f 00 c2 00 b0 00 ]
  CAM status=0x8c, SCSI status=0x2, resid=0x0
  sense_len=0x20, sense_resid=0xe
  >>> Sense buffer, len=18:
 00     f0 00 01 00 50 40 00 00  00 c2 4f 00 00 1d 00 00                        
 10     00 00                                                                   
  status=0x2: sense_key=0x1 asc=0x0 ascq=0x1d
 [Duration: 0.016s]
SMART STATUS RETURN: incomplete response, ATA output registers missing
REPORT-IOCTL: Device=/dev/da2 Command=SMART STATUS CHECK returned -1 errno=78
[Function not implemented]
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list