Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2007 19:30:51 +0200
From:      Joakim Bentholm <joakim.bentholm@servicefactory.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Quirks for Hitachi HD 120 GB 2.5" in /usr/src/sys/cam/scsi_da.c
Message-ID:  <465B11CB.7070100@servicefactory.com>

next in thread | raw e-mail | index | archive | help
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@jupiter.servicefactory.se:/usr/obj/usr/src/sys/GENERIC  i386





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?465B11CB.7070100>