From nobody@FreeBSD.org  Tue Aug  7 21:15:24 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 1820D37B401
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 Aug 2001 21:15:24 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f784FO631724;
	Tue, 7 Aug 2001 21:15:24 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200108080415.f784FO631724@freefall.freebsd.org>
Date: Tue, 7 Aug 2001 21:15:24 -0700 (PDT)
From: "Eugene M. Kim" <gene@nttmcl.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: KingByte USB Pen Drive doesn't work with FreeBSD
X-Send-Pr-Version: www-1.0

>Number:         29530
>Category:       kern
>Synopsis:       KingByte USB Pen Drive doesn't work with FreeBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 07 21:20:00 PDT 2001
>Closed-Date:    Sun Sep 2 02:27:16 PDT 2001
>Last-Modified:  Sun Sep 02 02:31:27 PDT 2001
>Originator:     Eugene M. Kim
>Release:        4-STABLE (based on 4.3-RELEASE)
>Organization:
NTT Multimedia Communications Laboratories, Inc.
>Environment:
Any FreeBSD machine with KingByte USB Pen Drive (http://www.kingbyte.com/products/pendrive.htm) installed.

FreeBSD daal.astralblue.net 4.3-STABLE FreeBSD 4.3-STABLE #2: Wed Aug  8 05:58:25 KST 2001     root@daal.astralblue.net:/home/root/build/usr/obj/usr/src/sys/PL-DAAL-4  i386
>Description:
Any program that tries to read/write data from/to KingByte Pen Drives will hang in a non-killable state.  This is because Pen Drives, like some other flash-based drives, don't support 6-byte SCSI READ commands.
>How-To-Repeat:
Access the Pen Drive using programs like dd(1) as in: dd if=/dev/da0 of=/dev/null count=1
>Fix:
Add the following quirk entry to src/sys/cam/scsi/scsi_da.c:

	{
		/*
		 * KingByte Pen Drives
		 * do not support READ_6 commands, only READ_10. 
		 */
		{T_DIRECT, SIP_MEDIA_REMOVABLE, "NO BRAND", "PEN DRIVE", "*"},
		/*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
	},
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: n_hibma 
State-Changed-When: Sun Sep 2 02:27:16 PDT 2001 
State-Changed-Why:  
Committed. Thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29530 
>Unformatted:
