Bug#513894: Re: Bug#513894: Oops: f3 with i2c-tiny-usbHello,
Hi,
You are using a heavily modified homemade version of the i2c-tiny-usb on some embedded arm plattform. You are even using a different CPU on the i2c-tiny-usb. Honestly, i don't fully understand what you expect me to do? I don't even have access to your hardware. How am i supposed to debug such an issue?
The origin of the problems seem to be a failing i2c-tiny-usb hardware or at least failing usb transfers to that device. This is a device you built and this is something you'll probably have to figure out yourself.
The fact that there's some nasty crash in the drivers involved in this is another issue. This shouldn't happen even if your modified i2c-tiny-usb is unable to provide reliable USB transfers. To solve this i suggest you test some things like e.g.:
a) verify that an original i2c-tiny-usb also triggers the same problem, so we at least have a chance to reproduce this
b) verify that these crashes also happen with other plattforms (e.g. a standard x86 unit)
c) verify if this also happens with different client hardware attached to the i2c-tiny-usb
d) verify that these crashes also happen with a different usb controller (e.g. a ohci one versus a uhci one)
Quoted 1 line
From the oops i can only see that there's some crash that seems to
be happening somewhere inside the i2c system. I can't even tell if it actually is my driver crashing. So you might want to add some debug printk()'s to the functions you expect to be involved in this. This way you should easily be able to tell if the crash happens inside the i2c-tiny-usb driver or in some other part.
Till
----- original Nachricht --------
Betreff: Re: Bug#513894: Oops: f3 with i2c-tiny-usbHello,
Gesendet: Di, 17. Feb 2009
Von: Thomas Koch<[email protected]>
Quoted 340 lines
Hello Mr. Harbaum,
First of all thanks for the feedback.
You did a great job by developing this interface!The PCB is home made but the hardware on the i2c - bus is working perfectly
with an ELV Parport interface on a different machine with suse 10.3. I tried to migrate the system to a low power consumption system.
The interface is also ported from the tiny to a mega32 and connected to an active powered usb hub.
I can see several disconnects and this error occurs directly after an reconnect:
This is the actual syslog message:
Feb 16 06:25:08 fhz kernel: [43029038.330000] i2c-adapter i2c-1: failure reading status Feb 16 06:25:08 fhz kernel: [43029038.430000] hub 1-1:1.0: port 1 disabled by hub (EMI?), re-enabling... Feb 16 06:25:08 fhz kernel: [43029038.440000] usb 1-1.1: USB disconnect, address 9 Feb 16 06:25:08 fhz kernel: [43029038.530000] usb 1-1.1: new low speed USB device using ehci_hcd and address 10 Feb 16 06:25:08 fhz kernel: [43029038.650000] usb 1-1.1: configuration #1 chosen from 1 choice Feb 16 06:25:08 fhz kernel: [43029038.660000] i2c-tiny-usb 1-1.1:1.0: version 2.05 found at bus 001 address 010 Feb 16 06:25:08 fhz kernel: [43029038.690000] i2c-adapter i2c-1: connected i2c-tiny-usb device Feb 16 06:25:08 fhz kernel: [43029038.690000] usb 1-1.1: New USB device found, idVendor=0403, idProduct=c631 Feb 16 06:25:08 fhz kernel: [43029038.700000] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 Feb 16 06:25:08 fhz kernel: [43029038.710000] usb 1-1.1: Product: i2c-tiny-usb Feb 16 06:25:08 fhz kernel: [43029038.710000] usb 1-1.1: Manufacturer: TillHarbaum
Feb 16 06:25:08 fhz kernel: [43029104.230000] hub 1-1:1.0: port 1 disabled by hub (EMI?), re-enabling... Feb 16 06:25:08 fhz kernel: [43029104.230000] usb 1-1.1: USB disconnect, address 10 Feb 16 06:25:08 fhz kernel: [43029104.330000] usb 1-1.1: new low speed USB device using ehci_hcd and address 11 Feb 16 06:25:08 fhz kernel: [43029104.450000] usb 1-1.1: configuration #1 chosen from 1 choice Feb 16 06:25:08 fhz kernel: [43029104.460000] i2c-tiny-usb 1-1.1:1.0: version 2.05 found at bus 001 address 011 Feb 16 06:25:08 fhz kernel: [43029104.480000] i2c-adapter i2c-1: connected i2c-tiny-usb device Feb 16 06:25:08 fhz kernel: [43029104.490000] Unable to handle kernel pagingrequest at virtual address
00c0ec10Feb 16 06:25:08 fhz kernel: [43029104.490000] pgd = c0004000 Feb 16 06:25:08 fhz kernel: [43029104.490000] [00c0ec10] *pgd=00000000 Feb 16 06:25:08 fhz kernel: [43029104.490000] Internal error: Oops: f5 [#2] Feb 16 06:25:08 fhz kernel: [43029104.490000] Modules linked in: ipv6 nfsd
auth_rpcgssexportfs nfs lockdnfs_aclsunrpcnls_utf8ntfsnls_baseext2 evdev usbhidftdi_sioi2c_tiny_usbhidff_memlessixp4xx_ethusbserialixp4xx_npefirmware_classixp4xx_beeperixp4xx_qmgrohci_hcdext3 jbd mbcachesd_modehci_hcdusb_storageusbcorescsi_modFeb 16 06:25:08 fhz kernel: [43029104.490000] CPU: 0 Tainted: G D(2.6.26-1-ixp4xx #1)
Feb 16 06:25:08 fhz kernel: [43029104.490000] PC is at __up+0x10/0x4c Feb 16 06:25:08 fhz kernel: [43029104.490000] LR is at up+0x3c/0x44 Feb 16 06:25:08 fhz kernel: [43029104.490000] pc : [<c021ccec>] lr : [<c0056bc8>] psr: 00000093 Feb 16 06:25:08 fhz kernel: [43029104.490000] sp : c0e5dd38 ip : c0e5dd48fp :
c0e5dd44Feb 16 06:25:08 fhz kernel: [43029104.490000] r10: c0f44ce0 r9 : 00000000r8 :
bf03b9dcFeb 16 06:25:08 fhz kernel: [43029104.490000] r7 : 00000000 r6 : c0ec10c8r5 : 00000001 r4 : 60000013
Feb 16 06:25:08 fhz kernel: [43029104.490000] r3 : c0ec10cc r2 : 00c0ec10r1 : 00000041 r0 :
c0ec10c8Feb 16 06:25:08 fhz kernel: [43029104.490000] Flags: nzcv IRQs off FIQs onMode
SVC_32ISA ARM Segment kernelFeb 16 06:25:08 fhz kernel: [43029104.490000] Control: 0000397f Table: 00734000 DAC: 00000017 Feb 16 06:25:08 fhz kernel: [43029104.490000] Process khubd (pid: 289, stacklimit =
0xc0e5c268)Feb 16 06:25:08 fhz kernel: [43029104.490000] Stack: (0xc0e5dd38 to 0xc0e5e000) Feb 16 06:25:08 fhz kernel: [43029104.490000] dd20:
c0e5dd5cc0e5dd48Feb 16 06:25:08 fhz kernel: [43029104.490000] dd40: c0056bc8 c021cce8 c0ec1020 c0ec1020 c0e5dd7c c0e5dd60 c0172218 c0056b98 Feb 16 06:25:08 fhz kernel: [43029104.490000] dd60: c0ea6000 bf03b9f4 c0ec1020 c0ec10ac c0e5dd94 c0e5dd80 c01711b0 c01721bc Feb 16 06:25:08 fhz kernel: [43029104.490000] dd80: c0ec1020 c0ea6000 c0e5ddcc c0e5dd98 c0170050 c017118c c0ea6060 c0ec1088 Feb 16 06:25:08 fhz kernel: [43029104.490000] dda0: c013e008 c0ec1000 c0ea6000 c0f47800 00000000 00000000 00000000 c0f44ce0 Feb 16 06:25:08 fhz kernel: [43029104.490000] ddc0: c0e5de2c c0e5ddd0 bf024310 c016fd20 00000001 00000000 00000000 00000000 Feb 16 06:25:08 fhz kernel: [43029104.490000] dde0: 00001388 c0e5ddfc c09f41e0 00000001 00000000 c0f47804 c0f47800 00000001 Feb 16 06:25:08 fhz kernel: [43029104.490000] de00: c0ea60ec c0ea6000 00000001 bf03bfbc 00000000 bf03b8a8 00000000 c0e57400 Feb 16 06:25:08 fhz kernel: [43029104.490000] de20: c0e5de54 c0e5de30 bf02b0c0 bf023f14 00000000 00000000 c0e5de64 c0ea6060 Feb 16 06:25:08 fhz kernel: [43029104.490000] de40: c0172170 bf03bfbc c0e5de64 c0e5de58 bf025438 bf02b078 c0e5de84 c0e5de68 Feb 16 06:25:08 fhz kernel: [43029104.490000] de60: c0172048 bf0253fc c0217ed0 00000000 c0172170 c0ea6060 c0e5de94 c0e5de88 Feb 16 06:25:08 fhz kernel: [43029104.490000] de80: c0172180 c0171f60 c0e5dec4 c0e5de98 c017137c c017217c 000000d0 c0e62f28 Feb 16 06:25:08 fhz kernel: [43029104.490000] dea0: c0e62f28 c0e09dd4 c0e173a0 c0ea6060 c0ea6060 c0ea6108 c0e5dee4 c0e5dec8 Feb 16 06:25:08 fhz kernel: [43029104.490000] dec0: c017220c c0171338
c0ea6060bf03b9f4c0ea6060c0ea60ecc0e5defcc0e5dee8What I also noticed is when I do an i2cdetect the bus type of the interface is
shown as dummy. Normaly the type is i2c.Thanks,
Thomas.Am Montag 09 Februar 2009 20:29:04 schrieb Till Harbaum:
Quoted 3 lines
Hi,
this is an unknown problem. In fact it's the first time i ever got an
error
Quoted 17 lines
report for the device. And therefore there isn't any patch.
There seems to be a usb write error. This is a diy hardware. There may be several reasons causing such problems:
Hardware problems on the i2c-tiny-usb:
- Have correct zener diodes (fast ones!) been used?
- Is the PCB home made? If yes is it really reliable?
- How long is the usb cable?General problems:
- What is connected to the i2c-tiny-usb?
- How much power does it draw?
- Is the nslu really able to power everything via usb? (e.g. what happens if the i2c-tiny-usb is connected through a self powered hub?)Quoted 19 lines
Maybe the arm kernel barfs on i2c/usb transfer problems?
Till
Am Montag 09 Februar 2009 schrieb Martin Michlmayr:
Quoted 14 lines
Hi Till and other I2C developers,
Thomas Koch, a Debian user, reported the following backtrace with 2.6.26 related to i2c and possibly related to the i2c-tiny-usb driver. This is on an ARM device.
Do you know if this is a known issue for which a patch is available in newer kernels, or is this a new bug?
Quoted 5 lines
[42994982.810000] Unable to handle kernel paging request at virtual address 692f7473 [42994982.810000] pgd = c1da0000 [42994982.810000] [692f7473] *pgd=00000000 [42994982.810000] Internal error: Oops: f3 [#2] [42994982.810000] Modules linked in: ipv6 nfsd auth_rpcgss exportfsnfs
Quoted 1 line
Quoted 1 line
Quoted 1 line
lockd
nfs_aclsunrpcnls_utf8ntfsnls_baseext2 evdevftdi_siousbhid
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
hid
i2c_tiny_usbff_memlessusbserialixp4xx_ethixp4xx_npefirmware_classixp4xx_qmgrixp4xx_beeperohci_hcdext3 jbd mbcachesd_modehci_hcdusb_storageusbcorescsi_mod[42994982.810000] CPU: 0Tainted: G D (2.6.26-1-ixp4xx #1) [42994982.810000] PC is at module_put+0x20/0x48 [42994982.810000] LR is at i2c_put_adapter+0x14/0x18 [42994982.810000] pc : [<c0060b00>] lr : [<c01940f4>] psr:20000093 [42994982.810000] sp :
c0fc3c68ip :c0fc3c78fp :
c0fc3c74Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
[42994982.810000] r10: c18d3dd8 r9 : c1c0d120 r8 : 00000000 [42994982.810000] r7 : c1c1a208 r6 : 00000008 r5 : c1daaac0 r4 :
c13fe000[42994982.810000] r3 : 20000093 r2 : 20000013 r1 :c1daaac0r0 :
692f7373[42994982.810000] Flags: nzCv IRQs off FIQs on ModeSVC_32ISA ARM Segment user [42994982.810000] Control:0000397f
Table:01da0000DAC: 00000015 [42994982.810000] Process hcontrol(pid:
Quoted 1 line
Quoted 1 line
Quoted 1 line
2671, stack limit =
0xc0fc2268) [42994982.810000] Stack: (0xc0fc3c68to
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
0xc0fc4000)[42994982.810000] 3c60: c0fc3c84 c0fc3c78 c01940f4
c0060aecc0fc3c9cc0fc3c88[42994982.810000] 3c80:c0195d94c01940ecc1daaac0c0f0ea60c0fc3cd4c0fc3ca0c009813cc0195d84[42994982.810000]Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
3ca0: 00000000
c0ef9d3000000000c1daaac0c1c1a20000000000c1c1a20800000000 [42994982.810000] 3cc0:000000f300000001c0fc3ce4c0fc3cd8c00984c4c0098090c0fc3d04c0fc3ce8[42994982.810000] 3ce0:c0094dd0c009849cc0f16e00c1c1a200000000030000000cc0fc3d2cc0fc3d08[42994982.810000] 3d00: c0040980 c0094d64 c0f16e00 c0fc2000 c1e68060
0000000bc01941f800000008 [42994982.810000] 3d20:c0fc3d3cc0fc3d30c0040a00c0040904c0fc3d54c0fc3d40c0041cf8c00409e4[42994982.810000]Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
3d40:
c003e550c003e420c0fc3d64c0fc3d58c0029de4c0041aecc0fc3d84c0fc3d68[42994982.810000] 3d60:c002c460c0029b70c0fc3ea0000000f3692f7265c0fc3ea0c0fc3dacc0fc3d88[42994982.810000] 3d80:c002c718c002c400e5933000c021db3800000013 00000000e593300000000000[42994982.810000] 3da0: c0fc3dec c0fc3db0 c002e584 c002c6b4 00000000
c02c0a68288419630000b229[42994982.810000] 3dc0:c0fc3df4ffffffffc02bc1bc000000f3c0fc3ea0692f726560000013 00000000[42994982.810000]Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
3de0:
c0fc3e9cc0fc3df0c00251f0c002e150c005b76cc02bc4ccc0fc3e24c0fc3e08[42994982.810000] 3e00:c003080cc00307a8c02c1680c02c168000000005 00000000c0fc3e3cc0fc3e28[42994982.810000] 3e20:c0043e2cc003746800000005 00000005c0fc3e5cc0fc3e40c002504cc0043dd4[42994982.810000] 3e40: c005b878 ffffffff 0000001f 00000020 c0fc3eec
c0fc3e60c00256b0c002500c[42994982.810000] 3e60: 00000001c02c0a70c0f374c0000000012883b65f0000b229c0fc3f10ffffffff[42994982.810000]Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
3e80:
c0fc3ed4be932b55c051d360c0025c48c0fc3f04c0fc3ea0c002566cc00251c0[42994982.810000] 3ea0:c0fc2028c0fc3f0c00000001692f7265c1c73a0800000001be932b55c051d360[42994982.810000] 3ec0:c0025c48c0fc200000000000c0fc3f04c0fc3f08c0fc3ee8c0194cd4c01941f8[42994982.810000] 3ee0: a0000013 ffffffff 00000001 00000001 be932b55
c051d360c0fc3f2cc0fc3f08[42994982.810000] 3f00:c0194cd4c01941ecc0fc3f4c0001004bc13f0001c051d360be932b55fffffff4[42994982.810000]Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
3f20:
c0fc3f4cc0fc3f30c01961acc0194c98c1daaac0be932b55c0fc3f7800000001 [42994982.810000] 3f40:c0fc3f74c0fc3f50c0097778c0196170006d656100000a6fc1daaac0fffffff7[42994982.810000] 3f60: 00000000 00000000c0fc3fa4c0fc3f78c0097c44c00976d000000000 00000000[42994982.810000] 3f80: 00000000 00000000 0000d6fc 00000000 000090a000000003 00000000
c0fc3fa8[42994982.810000] 3fa0:c0025aa0c0097c0c0000d6fc00000000 00000003be932b5500000001be932b55[42994982.810000]Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
3fc0:
0000d6fc00000000000090a000000003 00000000 00000000 40025000be932b6c[42994982.810000] 3fe0: 00000000be932a400000b4ac40209eac40000010 000000030002003d00000000 [42994982.810000] Backtrace:[42994982.810000] [<c0060ae0>] (module_put+0x0/0x48) from[<
c01940f4>]Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
(
i2c_put_adapter+0x14/0x18) [42994982.810000] [<c01940e0>] (i2c_put_adapter+0x0/0x18) from [<c0195d94>](
i2cdev_release+0x1c/0x30)Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
[42994982.810000] [<c0195d78>] (i2cdev_release+0x0/0x30) from [<c009813c>] (__fput+0xb8/0x178) [42994982.810000] r5:c0f0ea60 r4:c1daaac0 [42994982.810000] [<c0098084>] (__fput+0x0/0x178) from [<c00984c4>] (fput+0x34/0x38) [42994982.810000] [<c0098490>] (fput+0x0/0x38) from [<c0094dd0>] (filp_close+0x78/0x84) [42994982.810000] [<c0094d58>] (filp_close+0x0/0x84) from [<c0040980>] (put_files_struct+0x88/0xe0) [42994982.810000] r6:0000000c r5:00000003 r4:c1c1a200 [42994982.810000] [<c00408f8>] (put_files_struct+0x0/0xe0) fromQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
[<
c0040a00>] (exit_files+0x28/0x2c) [42994982.810000] r8:00000008 r7:c01941f8 r6:0000000b r5:c1e68060 r4:c0fc2000 [42994982.810000] [<c00409d8>] (exit_files+0x0/0x2c) from [<c0041cf8>] (do_exit+0x218/0x6a4) [42994982.810000] [<c0041ae0>] (do_exit+0x0/0x6a4) from [<c0029de4>] (die+0x280/0x304)[42994982.810000] [<c0029b64>] (die+0x0/0x304) from [<c002c460>](
__do_kernel_fault+0x6c/0x80) [42994982.810000] [<c002c3f4>] (__do_kernel_fault+0x0/0x80) from [<c002c718>](
do_bad_area+0x70/0x7c)Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
[42994982.810000] r7:c0fc3ea0 r6:692f7265 r5:000000f3 r4:c0fc3ea0 [42994982.810000] [<c002c6a8>] (do_bad_area+0x0/0x7c) from[<
c002e584>]Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
(
do_alignment+0x440/0x59c) [42994982.810000] r6:00000000 r5:e5933000 r4:00000000[42994982.810000] [<c002e144>] (do_alignment+0x0/0x59c) from [<c00251f0>] (do_DataAbort+0x3c/0xa0) [42994982.810000] [<c00251b4>] (do_DataAbort+0x0/0xa0) from [<c002566c>] (__dabt_svc+0x4c/0x60) [42994982.810000] Exception stack(0xc0fc3ea0 to 0xc0fc3ee8) [42994982.810000] 3ea0: c0fc2028 c0fc3f0c 00000001 692f7265 c1c73a0800000001
be932b55c051d360[42994982.810000] 3ec0:c0025c48c0fc200000000000c0fc3f04c0fc3f08c0fc3ee8c0194cd4c01941f8[42994982.810000]Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
3ee0:
a0000013ffffffff[42994982.810000] r8:c0025c48 r7:c051d360 r6:be932b55 r5:c0fc3ed4r4:ffffffff [42994982.810000] [<
c01941e0>] (i2c_transfer+0x0/0x98)from
Quoted 1 line
Quoted 1 line
Quoted 1 line
[<
c0194cd4>] (i2c_master_recv+0x48/0x58) [42994982.810000]r7:c051d360
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
r6:be932b55 r5:00000001 r4:00000001 [42994982.810000] [<
c0194c8c>] (i2c_master_recv+0x0/0x58) from [<c01961ac>] (i2cdev_read+0x48/0xa0)[42994982.810000] r4:fffffff4 [42994982.810000] [<c0196164>] (i2cdev_read+0x0/0xa0) from[<
c0097778>]Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
(
vfs_read+0xb4/0x18c) [42994982.810000] r7:00000001 r6:c0fc3f78 r5:be932b55 r4:c1daaac0 [42994982.810000] [<c00976c4>] (vfs_read+0x0/0x18c) from [<c0097c44>] (sys_read+0x44/0x70)[42994982.810000] r7:00000000 r6:00000000 r5:fffffff7 r4:c1daaac0 [42994982.810000] [<c0097c00>] (sys_read+0x0/0x70) from [<c0025aa0>](
ret_fast_syscall+0x0/0x2c) [42994982.810000] r7:00000003r6:000090a0
Quoted 10 lines
Quoted 10 lines
Quoted 3 lines
r5:00000000 r4:0000d6fc [42994982.810000] Code:
0a00000be10f2000e3823080e121f003(e5903100) [42994983.440000] ---[ end trace051f259b86cac584]---and:
Quoted 3 lines · Thomas Koch
Quoted 2 lines
Can you please tell us more: when does this happen, how often, how reliably can you reproduce this problem, etc?
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
This happens several times a day.
The system is a linksys nslu2.
It looks like it has something to do with the i2c-tiny-usb driver.[43177942.750000] i2c-adapter i2c-1: failure writing data [43177942.880000] hub 1-1:1.0: port 1 disabled by hub (EMI?),re-enabling... [43177942.880000] usb 1-1.1: USB disconnect, address
17
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
[43177942.970000] usb 1-1.1: new low speed USB device using ehci_hcd and address 18 [43177943.090000] usb 1-1.1: configuration #1 chosen from 1 choice [43177943.100000] i2c-tiny-usb 1-1.1:1.0: version 2.05 found at bus
Quoted 18 lines
001
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
address 018
[43177943.130000] i2c-adapter i2c-1: connected i2c-tiny-usb device [43177943.140000] usb 1-1.1: New USB device found, idVendor=0403, idProduct=c631 [43177943.140000] usb 1-1.1: New USB device strings: Mfr=1,Product=2,
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
SerialNumber=0
[43177943.150000] usb 1-1.1: Product: i2c-tiny-usb [43177943.160000] usb 1-1.1: Manufacturer: Till HarbaumMost of the time I can see it after the device is registered again.
Thanks,
Thomas
--- original Nachricht Ende ----