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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Aug 18 10:36:30 UTC 2015


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

martin at lispworks.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #154205|0                           |1
        is obsolete|                            |

--- Comment #7 from martin at lispworks.com ---
Created attachment 159976
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=159976&action=edit
Patch to set byte 7 (ADDITIONAL SENSE LENGTH) of fixed format sense data

Here is a new patch that fixes the kernel to work with smartctl.  It also
allows camcontrol to report the correct error when trying to eject the fixed
disk with camcontrol eject 0:0:0 -v.

This patch does two things:

1) Sets the correct value for byte 7 (ADDITIONAL SENSE LENGTH) of the fixed
format sense data in sati_scsi_fixed_sense_data_construct and
sati_scsi_common_fixed_sense_construct.

2) Sets the lba fields correctly for the ATA PASS-THROUGH response in
sati_passthrough_construct_sense (the bytes were in the wrong order).  This is
needed for smartctl.

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


More information about the freebsd-scsi mailing list