OHCI hang after cc 9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm using an embedded system (IXP42x) with an ISP1563 HC,
with kernel 2.6.29-rc6.
When only the OHCI driver is loaded, the storage driver does not
recognise an attached high-speed or full-speed MSC device.

The problem seems to be some sort of hang after a short read.
What could cause this ?

Thanks,
Zoltan

Log with verbose debug:

[ 1889.220000] usb-storage: Command MODE_SENSE (6 bytes)
[ 1889.230000] usb-storage:  1a 00 3f 00 c0 00
[ 1889.230000] usb-storage: Bulk Command S 0x43425355 T 0x4 L 192 F
128 Trg 0 LUN 0 CL 6
[ 1889.240000] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
[ 1889.250000] drivers/usb/host/ohci-dbg.c: SUB c1e07200 dev=2
ep=1out-bulk flags=c len=0/31 stat=-115
[ 1889.250000] drivers/usb/host/ohci-dbg.c: data(0/31): 55 53 42 43 00
00 00 04 c0 00 00 00 80 00 06 1a... stat:-115
[ 1889.270000] drivers/usb/host/ohci-dbg.c: RET c1e07200 dev=2
ep=1out-bulk flags=c len=31/31 stat=0
[ 1889.280000] usb-storage: Status code 0; transferred 31/31
[ 1889.280000] usb-storage: -- transfer complete
[ 1889.290000] usb-storage: Bulk command transfer result=0
[ 1889.290000] usb-storage: usb_stor_bulk_transfer_sglist: xfer 192
bytes, 1 entries
[ 1889.300000] drivers/usb/host/ohci-dbg.c: SUB c1de1d00 dev=2
ep=1in-bulk flags=205 len=0/192 stat=-115
[ 1889.310000] ohci_hcd 0000:00:01.1: urb c1de1d00 path 2 ep1in
91120000 cc 9 --> status -121
[ 1889.310000] ohci_hcd 0000:00:01.1: urb c1de1d00 td ffc050c0 (1) cc
9, len=12/192
[ 1889.310000] drivers/usb/host/ohci-dbg.c: RET c1de1d00 dev=2
ep=1in-bulk flags=205 len=12/192 stat=-121
[ 1889.310000] drivers/usb/host/ohci-dbg.c: data(12/192): 0b 00 00 08
00 03 e3 11 00 00 08 00 stat:-121
[ 1889.350000] usb-storage: Status code -121; transferred 12/192
[ 1889.350000] usb-storage: -- short read transfer
[ 1889.360000] usb-storage: Bulk data transfer result 0x1
[ 1889.360000] usb-storage: Attempting to get CSW...
[ 1889.370000] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[ 1889.370000] drivers/usb/host/ohci-dbg.c: SUB c1e07200 dev=2
ep=1in-bulk flags=20c len=0/13 stat=-115
[ 1920.000000] usb-storage: command_abort called
[ 1920.000000] usb-storage: usb_stor_stop_transport called
[ 1920.000000] usb-storage: -- cancelling URB
[ 1920.000000] drivers/usb/host/ohci-dbg.c: UNLINK c1e07200 dev=2
ep=1in-bulk flags=20c len=0/13 stat=-104
[ 1920.020000] ohci_hcd 0000:00:01.1: urb c1e07200 td ffc05000 (1) cc
3, len=0/13
[ 1920.020000] drivers/usb/host/ohci-dbg.c: RET c1e07200 dev=2
ep=1in-bulk flags=20c len=0/13 stat=0
[ 1920.020000] drivers/usb/host/ohci-dbg.c: data(0/13): stat:0
[ 1920.040000] usb-storage: Status code -104; transferred 0/13
[ 1920.050000] usb-storage: -- transfer cancelled
[ 1920.050000] usb-storage: Bulk status result = 4
[ 1920.060000] usb-storage: -- command was aborted
[ 1920.060000] usb-storage: storage_pre_reset
[ 1920.070000] ohci_hcd 0000:00:01.1: rhsc
[ 1920.080000] ohci_hcd 0000:00:01.1: rhsc
[ 1920.080000] hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0004
[ 1920.150000] ohci_hcd 0000:00:01.1: GetStatus roothub.portstatus [1]
= 0x00100103 PRSC PPS PES CCS
[ 1920.210000] usb 2-2: reset full speed USB device using ohci_hcd and address 2

Log with some extra debug added:

[42949416.850000] usb-storage: usb_stor_bulk_transfer_sglist: xfer 192
bytes, 1 entries
[42949416.850000] drivers/usb/host/ohci-dbg.c: SUB c1cc6080 dev=2
ep=1in-bulk flags=205 len=0/192 stat=-115
[42949416.860000] ohci_hcd 0000:00:01.1: OHCI controller state
[42949416.860000] ohci_hcd 0000:00:01.1: OHCI 1.0, NO legacy support registers
[42949416.860000] ohci_hcd 0000:00:01.1: control 0x0a3
HCFS=operational BLE CBSR=3
[42949416.860000] ohci_hcd 0000:00:01.1: cmdstatus 0x00000 SOC=0
[42949416.860000] ohci_hcd 0000:00:01.1: intrstatus 0x00000006 SF WDH
[42949416.860000] ohci_hcd 0000:00:01.1: intrenable 0x8000005a MIE
RHSC UE RD WDH
[42949416.860000] ohci_hcd 0000:00:01.1: ed_controlhead 01de9000
[42949416.860000] ohci_hcd 0000:00:01.1: ed_bulkhead 01de9080
[42949416.860000] ohci_hcd 0000:00:01.1: hcca frame #56b4
[42949416.860000] ohci_hcd 0000:00:01.1: roothub.a ff000202 POTPGT=255
NPS NDP=2(2)
[42949416.860000] ohci_hcd 0000:00:01.1: roothub.b 00000000 PPCM=0000 DR=0000
[42949416.860000] ohci_hcd 0000:00:01.1: roothub.status 00008000 DRWE
[42949416.860000] ohci_hcd 0000:00:01.1: roothub.portstatus [0] 0x00000100 PPS
[42949416.860000] ohci_hcd 0000:00:01.1: roothub.portstatus [1]
0x00000103 PPS PES CCS
[42949416.860000] ohci_hcd 0000:00:01.1: -----, ed ffc04080 state 0x2
type bulk; next ed 00000000
[42949416.860000] ohci_hcd 0000:00:01.1:   info 00401082 MAX=64 EP=1-IN DEV=2
[42949416.860000] ohci_hcd 0000:00:01.1:   tds: head 01e5d0c1 DATA0
HALT tail 01e5d0c0
[42949416.860000] ohci_hcd 0000:00:01.1:   -> td ffc05000 (DONE); urb
c1cc6080 index 0; hw next td 00000000
[42949416.860000] ohci_hcd 0000:00:01.1:      info 90120000 CC=9 (CARRY) DI=0 IN
[42949416.860000] ohci_hcd 0000:00:01.1:      cbp 01e60024 be 01e600bf (len 156)
[42949416.860000] ohci_hcd 0000:00:01.1: urb c1cc6080 path 2 ep1in
90120000 cc 9 --> status -121
[42949416.860000] ohci_hcd 0000:00:01.1: urb c1cc6080 td ffc05000 (1)
cc 9, len=36/192
[42949416.860000] drivers/usb/host/ohci-dbg.c: RET c1cc6080 dev=2
ep=1in-bulk flags=205 len=36/192 stat=-121
[42949416.860000] drivers/usb/host/ohci-dbg.c: data(36/192): 23 00 00
00 05 1e f0 00 10 20 02 00 3b b8 00 00... stat:-121
[42949417.070000] usb-storage: Status code -121; transferred 36/192
[42949417.080000] usb-storage: -- short read transfer
[42949417.080000] usb-storage: Bulk data transfer result 0x1
[42949417.090000] usb-storage: Attempting to get CSW...
[42949417.090000] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[42949417.100000] drivers/usb/host/ohci-dbg.c: SUB c1cbfd00 dev=2
ep=1in-bulk flags=20c len=0/13 stat=-115
[42949417.110000] ohci_hcd 0000:00:01.1: OHCI controller state
[42949417.110000] ohci_hcd 0000:00:01.1: OHCI 1.0, NO legacy support registers
[42949417.110000] ohci_hcd 0000:00:01.1: control 0x083 HCFS=operational CBSR=3
[42949417.110000] ohci_hcd 0000:00:01.1: cmdstatus 0x00000 SOC=0
[42949417.110000] ohci_hcd 0000:00:01.1: intrstatus 0x00000004 SF
[42949417.110000] ohci_hcd 0000:00:01.1: intrenable 0x8000005a MIE
RHSC UE RD WDH
[42949417.110000] ohci_hcd 0000:00:01.1: ed_controlhead 01de9000
[42949417.110000] ohci_hcd 0000:00:01.1: ed_bulkhead 01de9080
[42949417.110000] ohci_hcd 0000:00:01.1: hcca frame #57ab
[42949417.110000] ohci_hcd 0000:00:01.1: roothub.a ff000202 POTPGT=255
NPS NDP=2(2)
[42949417.110000] ohci_hcd 0000:00:01.1: roothub.b 00000000 PPCM=0000 DR=0000
[42949417.110000] ohci_hcd 0000:00:01.1: roothub.status 00008000 DRWE
[42949417.110000] ohci_hcd 0000:00:01.1: roothub.portstatus [0] 0x00000100 PPS
[42949417.110000] ohci_hcd 0000:00:01.1: roothub.portstatus [1]
0x00000103 PPS PES CCS
[42949417.110000] ohci_hcd 0000:00:01.1: ----- td c1dea310; urb (null)
index 0; hw next td 00000000
[42949417.110000] ohci_hcd 0000:00:01.1:      info 0050c0ff CC=0 (CARRY) DI=2 IN
[42949417.110000] ohci_hcd 0000:00:01.1:      cbp 00000000 be 00000000 (len 0)
[42949417.110000] ohci_hcd 0000:00:01.1: -----, ed ffc04080 state 0x0
type bulk; next ed 00000000
[42949417.110000] ohci_hcd 0000:00:01.1:   info 00401082 MAX=64 EP=1-IN DEV=2
[42949417.110000] ohci_hcd 0000:00:01.1:   tds: head 01e5d0c0 DATA0
tail 01e5d0c0
[42949447.000000] usb-storage: command_abort called
[42949447.000000] usb-storage: usb_stor_stop_transport called
[42949447.000000] usb-storage: -- cancelling URB
[42949447.000000] drivers/usb/host/ohci-dbg.c: UNLINK c1cbfd00 dev=2
ep=1in-bulk flags=20c len=0/13 stat=-104
[42949447.000000] ohci_hcd 0000:00:01.1: OHCI controller state
[42949447.000000] ohci_hcd 0000:00:01.1: OHCI 1.0, NO legacy support registers
[42949447.000000] ohci_hcd 0000:00:01.1: control 0x0a3
HCFS=operational BLE CBSR=3
[42949447.000000] ohci_hcd 0000:00:01.1: cmdstatus 0x00000 SOC=0
[42949447.000000] ohci_hcd 0000:00:01.1: intrstatus 0x00000024 FNO SF
[42949447.000000] ohci_hcd 0000:00:01.1: intrenable 0x8000005a MIE
RHSC UE RD WDH
[42949447.000000] ohci_hcd 0000:00:01.1: ed_controlhead 01de9000
[42949447.000000] ohci_hcd 0000:00:01.1: ed_bulkhead 01de9080
[42949447.000000] ohci_hcd 0000:00:01.1: hcca frame #cdac
[42949447.000000] ohci_hcd 0000:00:01.1: roothub.a ff000202 POTPGT=255
NPS NDP=2(2)
[42949447.000000] ohci_hcd 0000:00:01.1: roothub.b 00000000 PPCM=0000 DR=0000
[42949447.000000] ohci_hcd 0000:00:01.1: roothub.status 00008000 DRWE
[42949447.000000] ohci_hcd 0000:00:01.1: roothub.portstatus [0] 0x00000100 PPS
[42949447.000000] ohci_hcd 0000:00:01.1: roothub.portstatus [1]
0x00000103 PPS PES CCS
[42949447.000000] ohci_hcd 0000:00:01.1: -----, ed ffc04080 state 0x2
type bulk; next ed 00000000
[42949447.000000] ohci_hcd 0000:00:01.1:   info 00401082 MAX=64 EP=1-IN DEV=2
[42949447.000000] ohci_hcd 0000:00:01.1:   tds: head 01e5d0c0 DATA0
tail 01e5d000
[42949447.000000] ohci_hcd 0000:00:01.1:   -> td ffc050c0; urb
c1cbfd00 index 0; hw next td 01e5d000
[42949447.000000] ohci_hcd 0000:00:01.1:      info 34140000 CC=3
(CARRY) DI=0 IN R
[42949447.000000] ohci_hcd 0000:00:01.1:      cbp 01ded000 be 01ded00c (len 13)
[42949447.160000] ohci_hcd 0000:00:01.1: urb c1cbfd00 td ffc050c0 (1)
cc 3, len=0/13
[42949447.160000] drivers/usb/host/ohci-dbg.c: RET c1cbfd00 dev=2
ep=1in-bulk flags=20c len=0/13 stat=0
[42949447.160000] drivers/usb/host/ohci-dbg.c: data(0/13): stat:0
[42949447.180000] usb-storage: Status code -104; transferred 0/13
[42949447.190000] usb-storage: -- transfer cancelled
[42949447.190000] usb-storage: Bulk status result = 4
[42949447.200000] usb-storage: -- command was aborted
[42949447.200000] usb-storage: storage_pre_reset
[42949447.210000] ohci_hcd 0000:00:01.1: rhsc
[42949447.220000] ohci_hcd 0000:00:01.1: rhsc
[42949447.220000] hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0004
[42949447.250000] hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0004
[42949447.290000] ohci_hcd 0000:00:01.1: GetStatus roothub.portstatus
[1] = 0x00100103 PRSC PPS PES CCS
[42949447.350000] usb 2-2: reset full speed USB device using ohci_hcd
and address 2
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux