Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Oct 2009 00:53:27 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-hackers@freebsd.org, yuri@rawbw.com
Subject:   Re: USB floppy fails to attach
Message-ID:  <200910290053.29271.hselasky@c2i.net>
In-Reply-To: <4AE89F8C.60000@rawbw.com>
References:  <4AE89F8C.60000@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <NEC> at usbus1
> umass0: <NEC NEC USB UF000x, class 0/0, rev 1.10/1.50, addr 2> 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




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