Quirks for Hitachi HD 120 GB 2.5" in /usr/src/sys/cam/scsi_da.c

Joakim Bentholm joakim.bentholm at servicefactory.com
Mon May 28 17:43:11 UTC 2007


Hello!


To be able to use the Hitachi 2.5" HD, 120 GB as an USB device, the 
following quirk needs to be set:
DA_Q_NO_SYNC_CACHE

Excerpt from /var/log/messages:
<<<
May  8 12:48:43 jupiter kernel: da0: <Hitachi HTS541212H9A HP4O> Fixed 
Direct Access SCSI-2 device
May  8 12:48:43 jupiter kernel: da0: 40.000MB/s transfers
May  8 12:48:43 jupiter kernel: da0: 114473MB (234441648 512 byte 
sectors: 255H 63S/T 14593C)
May  8 12:48:43 jupiter kernel: umass0: Invalid CSW: tag 7 should be 8
May  8 12:48:43 jupiter kernel: (da0:umass-sim0:0:0:0): Synchronize 
cache failed, status == 0x10, scsi status == 0x0
 >>>

Adding the following to scsi_da.c solved the prolem:

{
               /*
                * This particular Hitachi drive doesn't like the
                * synchronize cache command.
                * Reported by:
                */
               {T_DIRECT, SIP_MEDIA_FIXED, "Hitachi", "HTS541212H9A*", "*"},
               /*quirks*/ DA_Q_NO_SYNC_CACHE
},


jupiter# uname -a
FreeBSD jupiter.servicefactory.se 6.2-STABLE FreeBSD 6.2-STABLE #2: Sun 
May 13 01:17:11 CEST 2007     
joakim at jupiter.servicefactory.se:/usr/obj/usr/src/sys/GENERIC  i386




More information about the freebsd-bugs mailing list