From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 12:30:07 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B60C37B401 for ; Fri, 13 Jun 2003 12:30:07 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35B5743FCB for ; Fri, 13 Jun 2003 12:30:06 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h5DJU2Hq025524 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 13 Jun 2003 21:30:03 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.9/8.12.9) with ESMTP id h5DJU1xZ082312 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 Jun 2003 21:30:01 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.9/8.12.9) with ESMTP id h5DJU09F067677; Fri, 13 Jun 2003 21:30:00 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.9/8.12.9/Submit) id h5DJTxjq067676; Fri, 13 Jun 2003 21:29:59 +0200 (CEST) Date: Fri, 13 Jun 2003 21:29:59 +0200 From: Bernd Walter To: Antoine Jacoutot Message-ID: <20030613192958.GZ26807@cicely12.cicely.de> References: <1055519112.3ee9f1889860e@webmail.lphp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1055519112.3ee9f1889860e@webmail.lphp.org> X-Operating-System: FreeBSD cicely12.cicely.de 5.1-RELEASE alpha User-Agent: Mutt/1.5.4i cc: "freebsd-hackers@freebsd.org" Subject: Re: problem with UMASS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 19:30:07 -0000 On Fri, Jun 13, 2003 at 05:45:12PM +0200, Antoine Jacoutot wrote: > Hi ! > > I'm using a USB adapter to plug a HDD into my FreeBSD-4.8 box. > If I boot with the device pluged-in, it works fine, but if I plug it in after > boot or unplug then replug it, it doesn't work anymore (I get timeout errors). > Here is some information about this device: > > from dmesg.boot: > umass0: QTS USB 2.0 ATAPI Bridge, rev 2.00/11.00, addr 2 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-0 device > da0: 650KB/s transfers > da0: 117800MB (241254720 512 byte sectors: 64H 32S/T 52264C) > > from /var/log/messages: > srv01 /kernel: (da0:umass-sim0:0:0:0): READ(6)/WRITE(6) not supported, > increasing minimum_cmd_size to 10. > > Someone told me to try adding the device to da_quirk_table in > src/sys/cam/scsi/scsi_da.c and recompiling, but I'm not sure how to add the > thing. > Any help would be greatly appreciated. Your device doesn't support 6 byte commands and the kernel switches to 10 byte alternatives. Where is your problem? Is it just because the kernel told you what he does? -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de