From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 28 23:52:24 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96FC2106566B for ; Wed, 28 Oct 2009 23:52:24 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id D90F18FC08 for ; Wed, 28 Oct 2009 23:52:23 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=l81dycmF7dalFmfYEZ0A:9 a=B5MghczvbGh37a_O11qS5tVLSP8A:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1226379119; Thu, 29 Oct 2009 00:52:18 +0100 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org, yuri@rawbw.com Date: Thu, 29 Oct 2009 00:53:27 +0100 User-Agent: KMail/1.11.4 (FreeBSD/9.0-CURRENT; KDE/4.2.4; i386; ; ) References: <4AE89F8C.60000@rawbw.com> In-Reply-To: <4AE89F8C.60000@rawbw.com> X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpOwEEQ+KWt[{J#x6ow~JO:,zwp.(t; @Aq :4:&nFCgDb8[3oIeTb^'",;u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910290053.29271.hselasky@c2i.net> Cc: Subject: Re: USB floppy fails to attach X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2009 23:52:24 -0000 On Wednesday 28 October 2009 20:46:20 Yuri wrote: > My USB floppy dive fails to attach to device (see debug log below). > VendorID=0x0409 ProductID=0x0040 not mentioned in > /usr/src/sys/dev/usb/storage/umass.c > > Can this be that some that there is a simple fix for this, like adding a > quirk? > > Yuri > > -----log------- > > ugen1.2: at usbus1 > umass0: on usbus1 > umass0: UFI over CBI with CCI; quirks = 0x0000 > umass0:umass_cam_action: 4:-1:-1:XPT_PATH_INQ:. > umass0:4:0:-1: Attached to scbus4 > umass0:umass_cam_rescan: scbus4: scanning for 4:0:-1 > umass0:umass_cam_action: 4:-1:-1:XPT_PATH_INQ:. > umass0:umass_cam_action: 4:0:0:XPT_PATH_INQ:. > umass0:umass_cam_action: 4:0:0:XPT_PATH_INQ:. > umass0:umass_cam_action: 4:0:0:XPT_GET_TRAN_SETTINGS:. > umass0:umass_cam_action: 4:0:0:XPT_SET_TRAN_SETTINGS:. > umass0:umass_cam_action: 4:0:0:XPT_PATH_INQ:. > umass0:umass_cam_action: 4:0:0:XPT_PATH_INQ:. > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x12, flags: 0x40, 6b > cmd/36b data/18b sense > umass0:umass_attach: Attach finishedumass0:umass_cbi_dump_cmd: cmd = 12b > (0x120000002400...), data = 36b, dir = in > > umass0:umass_transfer_start: transfer index = 4 > umass0:umass_t_cbi_data_read_callback: max_bulk=131072, data_rem=36 > umass0:umass_t_cbi_data_read_callback: max_bulk=131072, data_rem=0 > umass0:umass_transfer_start: transfer index = 8 > umass0:umass_t_cbi_status_callback: UFI CCI, ASC = 0x00, ASCQ = 0x00 > umass0:umass_cam_action: 4:0:0:XPT_PATH_INQ:. > umass0:umass_cam_action: 4:0:0:XPT_PATH_INQ:. > umass0:umass_cam_action: 4:0:0:XPT_GET_TRAN_SETTINGS:. > umass0:umass_cam_action: 4:0:0:XPT_SET_TRAN_SETTINGS:. > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x12, flags: 0x40, 6b > cmd/255b data/18b sense > umass0:umass_cbi_dump_cmd: cmd = 12b (0x12010000ff00...), data = 255b, > dir = in > umass0:umass_transfer_start: transfer index = 4 > umass0:umass_t_cbi_data_read_callback: max_bulk=131072, data_rem=255 > umass0:umass_t_cbi_data_read_callback: max_bulk=131072, data_rem=0 > umass0:umass_transfer_start: transfer index = 8 > umass0:umass_t_cbi_status_callback: UFI CCI, ASC = 0x00, ASCQ = 0x00 > umass0:umass_cam_action: 4:0:0:XPT_GET_TRAN_SETTINGS:. > umass0:umass_cam_action: 4:0:0:XPT_PATH_INQ:. > umass0:umass_cam_action: 4:0:0:XPT_GET_TRAN_SETTINGS:. > umass0:umass_cam_action: 4:0:0:XPT_SET_TRAN_SETTINGS:. > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x00, flags: 0xc0, 6b > cmd/0b data/32b sense > umass0:umass_cbi_dump_cmd: cmd = 12b (0x000000000000...), data = 0b, dir > = no data phase > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x00, flags: 0xc0, 6b > cmd/0b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x00, flags: 0xc0, 6b > cmd/0b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x00, flags: 0xc0, 6b > cmd/0b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x00, flags: 0xc0, 6b > cmd/0b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x00, flags: 0xc0, 6b > cmd/0b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x00, flags: 0xc0, 6b > cmd/0b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x00, flags: 0xc0, 6b > cmd/0b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x00, flags: 0xc0, 6b > cmd/0b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x00, flags: 0xc0, 6b > cmd/0b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x00, flags: 0xc0, 6b > cmd/0b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_PATH_INQ:. > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b > cmd/8b data/32b sense > umassX:umass_cam_rescan_callback: xpt0: Rescan succeeded > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b > cmd/8b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b > cmd/8b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b > cmd/8b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b > cmd/8b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > (da0:umass-sim0:0:0:0): got CAM status 0x4 > (da0:umass-sim0:0:0:0): fatal error, failed to attach to device > (da0:umass-sim0:0:0:0): lost device > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b > cmd/8b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b > cmd/8b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b > cmd/8b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b > cmd/8b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > umass0:umass_cam_action: 4:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b > cmd/8b data/32b sense > umass0:umass_t_cbi_reset1_callback: CBI reset! > umass0:umass_tr_error: transfer error, USB_ERR_STALLED -> reset > (da0:umass-sim0:0:0:0): removing device entry Hi, Your device is stalling on the CBI reset command. Maybe there is a bug in the umass.c driver. Please investigate/experiment more with umass.c until the device works. Link to PDF specification for CBI is mentioned somewhere inside umass.c. -_HPS