On Sun, 21 Sep 2003, Linus Torvalds wrote:
> > 
> > Odd... why do we ask for the first 8 bytes of page 8?  The header alone is
> > 8 bytes.... anyway, the response looks good.
> 
> It tries to read the cache type. It tries to read the header first, in 
> order to figure out how much of page 8 it can read. The next command will 
> read the header, up to a maximum of 128 bytes.
> 
> That 128-byte maximum is strange, since we actually have a buffer of at 
> least 512 bytes for it, but whatever.. The same device definitely can 
> handle this in EHCI mode.
> 
> I'll try to change that max size thing (maybe it really always wants to 
> transfer just the header, or then the full page?), but regardless it looks 
> like OHCI is a bit fragile.

Actually, turning the max size _down_ to 64 bytes fixed the babble 
problem. Don't ask me why, though.

However, it does _not_ fix the more fundamental problem. Babble is gone, 
but now the trace looks like the appended..

So it's not the babbling, but something _else_ with reading page 8 causes 
problems.

                Linus

----
ohci-hcd: 2003 Feb 24 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci-hcd: block sizes: ed 64 td 64
ohci-hcd 0000:00:02.0: OHCI Host Controller
ohci-hcd 0000:00:02.0: irq 10, pci mem e183d000
ohci-hcd 0000:00:02.0: new USB bus registered, assigned bus number 1

hub 1-0:0: USB hub found
hub 1-0:0: 3 ports detected
ohci-hcd 0000:00:0f.0: OHCI Host Controller
ohci-hcd 0000:00:0f.0: irq 10, pci mem e183f000
ohci-hcd 0000:00:0f.0: new USB bus registered, assigned bus number 2
hub 2-0:0: USB hub found
hub 2-0:0: 3 ports detected
drivers/usb/core/usb.c: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
drivers/usb/core/usb.c: registered new driver usb-storage
USB Mass Storage support registered.
drivers/usb/core/usb.c: registered new driver hid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver

hub 2-0:0: new USB device on port 1, assigned address 2
usb-storage: USB Mass Storage device detected
usb-storage: act_altsetting is 0, id_index is 76
usb-storage: -- associate_dev
usb-storage: Transport: Bulk
usb-storage: Protocol: Transparent SCSI
usb-storage: Endpoints: In: 0xdf64f540 Out: 0xdf64f554 Int: 0x00000000 (Period 0)
usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00 len=1
usb-storage: GetMaxLUN command result is -32, data is 0
usb-storage: *** thread sleeping.

scsi0 : SCSI emulation for USB Mass Storage devices

usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command INQUIRY (6 bytes)
usb-storage:  12 00 00 00 24 00
usb-storage: Bulk Command S 0x43425355 T 0x1 L 36 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_buf: xfer 36 bytes
usb-storage: Status code 0; transferred 36/36
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x1 R 0 Stat 0x0
usb-storage: Fixing INQUIRY data to show SCSI rev 2 - was 0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command INQUIRY (6 bytes)
usb-storage:  12 00 00 00 25 00
usb-storage: Bulk Command S 0x43425355 T 0x2 L 37 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_buf: xfer 37 bytes
usb-storage: Status code 0; transferred 36/37
usb-storage: -- short transfer
usb-storage: Bulk data transfer result 0x1
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x2 R 0 Stat 0x0
usb-storage: Fixing INQUIRY data to show SCSI rev 2 - was 0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.

  Vendor: TOSHIBA   Model: THNCF1G02MA       Rev: 0811
  Type:   Direct-Access                      ANSI SCSI revision: 02

usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command TEST_UNIT_READY (6 bytes)
usb-storage:  00 00 00 00 00 00
usb-storage: Bulk Command S 0x43425355 T 0x3 L 0 F 0 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x3 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command READ_CAPACITY (10 bytes)
usb-storage:  25 00 00 00 00 00 00 00 00 00
usb-storage: Bulk Command S 0x43425355 T 0x4 L 8 F 128 Trg 0 LUN 0 CL 10
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_buf: xfer 8 bytes
usb-storage: Status code 0; transferred 8/8
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x4 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.

SCSI device sda: 2000880 512-byte hdwr sectors (1024 MB)

usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command MODE_SENSE_10 (10 bytes)
usb-storage:  5a 00 3f 00 00 00 00 00 08 00
usb-storage: Bulk Command S 0x43425355 T 0x5 L 8 F 128 Trg 0 LUN 0 CL 10
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_buf: xfer 8 bytes
usb-storage: Status code 0; transferred 8/8
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x5 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.

sda: Write Protect is off
sda: Mode Sense: 06 00 00 00

usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command MODE_SENSE_10 (10 bytes)
usb-storage:  5a 00 08 00 00 00 00 00 08 00
usb-storage: Bulk Command S 0x43425355 T 0x6 L 8 F 128 Trg 0 LUN 0 CL 10
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_buf: xfer 8 bytes
usb-storage: Status code 0; transferred 8/8
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x6 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command MODE_SENSE_10 (10 bytes)
usb-storage:  5a 00 08 00 00 00 00 00 40 00
usb-storage: Bulk Command S 0x43425355 T 0x7 L 64 F 128 Trg 0 LUN 0 CL 10
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_buf: xfer 64 bytes
usb-storage: Status code 0; transferred 64/64
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 0/13
usb-storage: -- short transfer
usb-storage: Bulk status result = 1
usb-storage: -- transport indicates error, resetting
usb-storage: usb_stor_Bulk_reset called
usb-storage: usb_stor_control_msg: rq=ff rqtype=21 value=0000 index=00 len=0
usb-storage: Soft reset: clearing bulk-in endpoint halt
usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=81 len=0
usb-storage: usb_stor_clear_halt: result = 0
usb-storage: Soft reset: clearing bulk-out endpoint halt
usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=02 len=0
usb-storage: usb_stor_clear_halt: result = 0
usb-storage: Soft reset done
usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command MODE_SENSE_10 (10 bytes)
usb-storage:  5a 00 08 00 00 00 00 00 40 00
usb-storage: Bulk Command S 0x43425355 T 0x8 L 64 F 128 Trg 0 LUN 0 CL 10
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_buf: xfer 64 bytes
usb-storage: Status code 0; transferred 64/64
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x8 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.

SCSI device sda: drive cache: write through

usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command TEST_UNIT_READY (6 bytes)
usb-storage:  00 00 00 00 00 00
usb-storage: Bulk Command S 0x43425355 T 0x9 L 0 F 0 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: command_abort called
usb-storage: usb_stor_stop_transport called
usb-storage: -- cancelling URB
usb-storage: Status code -104; transferred 0/13
usb-storage: -- transfer cancelled
usb-storage: Bulk status result = 4
usb-storage: -- command was aborted
usb-storage: usb_stor_Bulk_reset called
usb-storage: usb_stor_control_msg: rq=ff rqtype=21 value=0000 index=00 len=0
usb-storage: Timeout -- cancelling URB
usb-storage: Soft reset failed: -104
usb-storage: scsi command aborted
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command TEST_UNIT_READY (6 bytes)
usb-storage:  00 00 00 00 00 00
usb-storage: Bulk Command S 0x43425355 T 0x9 L 0 F 0 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: command_abort called
usb-storage: usb_stor_stop_transport called
usb-storage: -- cancelling URB
usb-storage: Status code -104; transferred 0/13
usb-storage: -- transfer cancelled
usb-storage: Bulk status result = 4
usb-storage: -- command was aborted
usb-storage: usb_stor_Bulk_reset called
usb-storage: usb_stor_control_msg: rq=ff rqtype=21 value=0000 index=00 len=0

                         free                        sibling
  task             PC    stack   pid father child younger older

khubd         D 83103DE0 4293246608     5      1             6     4 (L-TLB)
dfceb7e0 00000046 d4412ee0 83103de0 0000002b dfc27400 d79d0cd4 d79d0c80 
       00000000 df532800 83103de0 0000002b d4412ee0 00016989 8310498c 0000002b 
       dfe8db00 dfcea000 dfceb898 dfcea000 dfceb854 c011f5f7 c044c44d 000006b8 
Call Trace:
 [<c011f5f7>] wait_for_completion+0x150/0x339
 [<c011ee20>] default_wake_function+0x0/0x2e
 [<c011ee20>] default_wake_function+0x0/0x2e
 [<c02f0bf3>] scsi_insert_special_req+0x3b/0x41
 [<c02f0fcb>] scsi_wait_req+0xca/0xe3
 [<c02f0d2a>] scsi_wait_done+0x0/0x1d7
 [<c011d654>] recalc_task_prio+0xb2/0x1ea
 [<c02eb0d8>] scsi_allocate_request+0x28/0x6b
 [<c02ed5a1>] ioctl_internal_command+0x5a/0x17f
 [<c02edd08>] scsi_ioctl+0x13d/0x2c1
 [<c02b0000>] parport_pc_interrupt+0x6a/0x80
 [<c02f6f7a>] sd_media_changed+0x90/0x94
 [<c017df1a>] check_disk_change+0x30/0x81
 [<c02f6b3c>] sd_open+0x72/0x101
 [<c02bacc8>] get_gendisk+0x22/0x32
 [<c017e265>] do_open+0x25c/0x702
 [<c017e778>] blkdev_get+0x6d/0x77
 [<c01bdc28>] register_disk+0xc1/0x170
 [<c02babbe>] blk_register_region+0x3e/0x42
 [<c02bac62>] add_disk+0x4f/0x5d
 [<c02babe8>] exact_match+0x0/0xb
 [<c02babf3>] exact_lock+0x0/0x20
 [<c02f824e>] sd_probe+0x26a/0x457
 [<c023e6e9>] sprintf+0x1f/0x23
 [<c02b2958>] bus_match+0x3d/0x65
 [<c02b29d2>] device_attach+0x52/0xae
 [<c02b2bd4>] bus_add_device+0x75/0xb8
 [<c02b19c6>] device_add+0xec/0x104
 [<c02f52be>] scsi_device_register+0xee/0x224
 [<c02f3e82>] scsi_add_lun+0x3ba/0x5cf
 [<c02f41c0>] scsi_probe_and_add_lun+0x129/0x1b0
 [<c02f4852>] scsi_scan_target+0x94/0x110
 [<c01b9e1d>] proc_register+0x18/0xa4
 [<c02f492c>] scsi_scan_channel+0x5e/0x95
 [<c02f4a41>] scsi_scan_host_selected+0xde/0xe8
 [<c02f4a7c>] scsi_scan_host+0x31/0x35
 [<c03478fb>] storage_probe+0x264/0x2a2
 [<c032c9d1>] usb_probe_interface+0x8f/0xb5
 [<c02b2958>] bus_match+0x3d/0x65
 [<c02b29d2>] device_attach+0x52/0xae
 [<c02b2bd4>] bus_add_device+0x75/0xb8
 [<c02b19c6>] device_add+0xec/0x104
 [<c032dddb>] usb_new_device+0x355/0x490
 [<c033071a>] hub_port_connect_change+0x1e8/0x347
 [<c0330c69>] hub_events+0x3f0/0x570
 [<c0127242>] allow_signal+0xcc/0x200
 [<c0330e19>] hub_thread+0x30/0xe4
 [<c011ee20>] default_wake_function+0x0/0x2e
 [<c0330de9>] hub_thread+0x0/0xe4
 [<c01082a5>] kernel_thread_helper+0x5/0xb

usb-storage   D CF4346C3 12036788  1509      1          1510  1478 (L-TLB)
d4f8fd58 00000046 df656fe0 cf4346c3 00000034 00000000 dfc04800 00000246 
       d4f8fd70 00000246 cf4346c3 00000034 df656fe0 00007031 cf4382ad 00000034 
       d4412ee0 d4f8e000 d4f8fe3c d4f8e000 d4f8fdcc c011f5f7 c044c44d 000006b8 
Call Trace:
 [<c011f5f7>] wait_for_completion+0x150/0x339
 [<c0332b28>] hcd_submit_urb+0x1b4/0x2ac
 [<c011ee20>] default_wake_function+0x0/0x2e
 [<c011ee20>] default_wake_function+0x0/0x2e
 [<c0344ddc>] usb_stor_msg_common+0x1b3/0x207
 [<c0344be7>] timeout_handler+0x0/0x42
 [<c0344f35>] usb_stor_control_msg+0x105/0x11a
 [<c0346129>] usb_stor_reset_common+0x51/0x132
 [<c03462f4>] usb_stor_Bulk_reset+0x5b/0x62
 [<c0345981>] usb_stor_invoke_transport+0x328/0x3c4
 [<c0125e82>] printk+0x27b/0x3f8
 [<c011ee20>] default_wake_function+0x0/0x2e
 [<c0344ba3>] usb_stor_transparent_scsi_command+0x1e/0x53
 [<c03468d2>] usb_stor_control_thread+0x303/0x750
 [<c012910c>] do_group_exit+0x1df/0x21d
 [<c010b04e>] ret_from_fork+0x6/0x14
 [<c03465cf>] usb_stor_control_thread+0x0/0x750
 [<c03465cf>] usb_stor_control_thread+0x0/0x750
 [<c01082a5>] kernel_thread_helper+0x5/0xb

scsi_eh_0     D CF3BA367 11950408  1510      1                1509 (L-TLB)
d4f77db8 00000046 df656fe0 cf3ba367 00000034 d622af00 00000286 dfc04a48 
       d4f77e0c c03330db cf3ba367 00000034 df656fe0 00006336 cf3bcc34 00000034 
       d4410080 d4f76000 d6f0a374 d4f76000 d4f77e2c c011f5f7 c044c44d 000006b8 
Call Trace:
 [<c03330db>] hcd_unlink_urb+0x425/0x72b
 [<c011f5f7>] wait_for_completion+0x150/0x339
 [<c0125e82>] printk+0x27b/0x3f8
 [<c011ee20>] default_wake_function+0x0/0x2e
 [<c011ee20>] default_wake_function+0x0/0x2e
 [<c0345a9c>] usb_stor_stop_transport+0x7f/0x81
 [<c03440fa>] command_abort+0xef/0x212
 [<c01098e3>] __down_failed+0xb/0x14
 [<c02eefd9>] scsi_send_eh_cmnd+0x3cb/0x4e6
 [<c02eeba3>] scsi_eh_times_out+0x0/0x21
 [<c02ef594>] scsi_eh_tur+0x94/0xcb
 [<c02ef62a>] scsi_eh_abort_cmds+0x5f/0x74
 [<c02f05f3>] scsi_unjam_host+0x141/0x1e5
 [<c011ee20>] default_wake_function+0x0/0x2e
 [<c02f091d>] scsi_error_handler+0x286/0x2c2
 [<c02f0697>] scsi_error_handler+0x0/0x2c2
 [<c01082a5>] kernel_thread_helper+0x5/0xb

usb-storage: Timeout -- cancelling URB
usb-storage: Soft reset failed: -104
usb-storage: scsi command aborted
usb-storage: *** thread sleeping.
usb-storage: device_reset called
usb-storage: usb_stor_Bulk_reset called
usb-storage: usb_stor_control_msg: rq=ff rqtype=21 value=0000 index=00 len=0




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to