Bug 142957 - [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE CACHE problem
Summary: [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE CACHE problem
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 8.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-19 08:20 UTC by Tom Vijlbrief
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments
file.diff (803 bytes, patch)
2010-01-19 08:20 UTC, Tom Vijlbrief
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Vijlbrief 2010-01-19 08:20:06 UTC
When using a noname USB drive with ZFS the messages log is filled with:

Jan 18 21:18:53 nomadbsd kernel: (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0
Jan 18 21:18:53 nomadbsd kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
Jan 18 21:18:53 nomadbsd kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check Condition
Jan 18 21:18:53 nomadbsd kernel: (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:20,0
Jan 18 21:18:53 nomadbsd kernel: (da0:umass-sim0:0:0:0): Invalid command operation code
Jan 18 21:18:53 nomadbsd kernel: (da0:umass-sim0:0:0:0): Unretryable error

Fix: Apply this patch for adding a quirck specification to the usbdevs

Patch attached with submission follows:
How-To-Repeat: Attach my USB drive and use ZFS
Comment 1 Hans Petter Selasky 2010-01-19 15:34:58 UTC
Can you try to cvsup to 9-current and try the following patch:

http://p4web.freebsd.org/chv.cgi?CH=173371

http://perforce.freebsd.org/chv.cgi?CH=173371

--HPS
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2010-02-08 06:28:41 UTC
State Changed
From-To: open->feedback

Note that submitter has been asked to test patch that has been committed 
to p4.
Comment 3 Tom Vijlbrief 2010-02-09 05:40:20 UTC
I did test on 9-current and the patch works OK!
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:30 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped