Re: Comment to "[PATCH 7/8] Add EHCI support for MX27 and MX31 based boards"

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

 



(Resending this because you didn't copy all addresses from the original
posting. Please care for that in the future. Your bug is almost
certainly ARM specific, and the appropriate list was copied on purpose.)


On Mon, Jul 13, 2009 at 05:52:43PM +0200, javier Martin wrote:
> Sorry for breaking thread but I missed the main one.
> 
> I am testing last version of Daniel Mack's patches in a i.mx27 based
> board and I am getting the error in the attached file.
> For some reason (probably a mistake of mine in platform code) USB
> transceiver is not being detected through ULPI
> interface, however, the driver continues registering EHCI untill it
> crashes.
> 
> Shouldn't be cleaner to unregister what has been registered and abort
> driver execution?

Well, we should probably, but there is broken boards - at least I
suspect mine to have a problem there which nobody else was to reproduce
with the same software stack. And these boards will still work fine even
if this part of initialization fails. Hence I didn't make that a hard
error.

> The system should be able to start although there is an error with the
> transceiver.

True, and the error you're seeing does not to be related to direct ULPI
communication but occurs at some later point. Could you put some
printk()s in the ehci driver part and see where exactly it crashes? The
logs won't currently show that. Also, posting your board-specific
platform data would help.

But I've never ran into a "Unhandled fault: external abort on
non-linefetch (0x808) at 0xc4846184". Maybe anyone else can explain
that?

Daniel


> 
> ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> mxc-ehci mxc-ehci.0: initializing i.MX USB Controller
> timeout polling for ULPI device
> timeout polling for ULPI device
> timeout polling for ULPI device
> timeout polling for ULPI device
> ULPI transceiver vendor/product ID 0xffffff92/0xffffff92
> No ISP1504 found
> mxc-ehci mxc-ehci.0: unable to init transceiver
> mxc-ehci mxc-ehci.0: Freescale On-Chip EHCI Host Controller
> mxc-ehci mxc-ehci.0: new USB bus registered, assigned bus number 1
> Unhandled fault: external abort on non-linefetch (0x808) at 0xc4846184
> Internal error: : 808 [#1]
> CPU: 0    Not tainted  (2.6.30 #1)
> PC is at ehci_hub_control+0x1c0/0x7cc
> LR is at 0x8
> pc : [<c0125a64>]    lr : [<00000008>]    psr: 00000093
> sp : c381dd58  ip : 00000001  fp : c381dd9c
> r10: 00000038  r9 : c022b8ec  r8 : 00001000
> r7 : 20000013  r6 : 00000000  r5 : c3859ac0  r4 : c4846184
> r3 : 80000000  r2 : c4846140  r1 : 80000000  r0 : 00000001
> Flags: nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
> Control: 0005317f  Table: a0004000  DAC: 00000017
> Process swapper (pid: 1, stack limit = 0xc381c268)
> Stack: (0xc381dd58 to 0xc381e000)
> dd40:                                                       c022b8ec 00000038 
> dd60: c3859ac0 c3859a00 c3859ac0 00000000 c381dd9c c3859ac0 00000000 00000000 
> dd80: 00000000 00001000 c022b8ec 00000038 c381ddcc c381dda0 c012a540 c01258b4 
> dda0: 00000000 00000000 c3859a00 c3859a00 00000001 c3859a00 c38b3800 000000a0 
> ddc0: c381de0c c381ddd0 c0117890 c012a224 c0217bec 00000001 c381ddfc c381dde8 
> dde0: c003087c 00000000 c022b8ec c0229568 c0229560 c3859a00 c022b8ec c3905020 
> de00: c381de4c c381de10 c012ad6c c01176a8 00000000 c0229570 c00143ac 00000038 
> de20: c381de3c c0229568 c022959c c0239100 c00143ac c02382d0 00000000 c38bca80 
> de40: c381de5c c381de50 c0102dc0 c012aa00 c381de7c c381de60 c0101ebc c0102db4 
> de60: c01da50c c0229568 c022959c c0239100 c381de9c c381de80 c0101fdc c0101dec 
> de80: c381de9c 00000000 c0101f70 c0239100 c381dec4 c381dea0 c0101354 c0101f80 
> dea0: c38035b8 c3846e70 c00d7260 c38bca80 c0239100 00000000 c381ded4 c381dec8 
> dec0: c0101ce8 c0101310 c381df0c c381ded8 c0101950 c0101cd8 c020b424 c00dabd8 
> dee0: c0267c38 c0267c38 c0239100 00000000 c00143ac 00000000 00000000 00000000 
> df00: c381df34 c381df10 c0102304 c01018b4 c381df34 c0267c38 c001aeac 00000000 
> df20: c00143ac 00000000 c381df44 c381df38 c010307c c0102260 c381df5c c381df48 
> df40: c0014420 c0103020 c001aeac c001ae34 c381dfdc c381df60 c001d2d4 c00143bc 
> df60: c0263470 000000ff c381df94 c381df78 c00b6de8 c00b6b2c c381df00 c383aba0 
> df80: c00b6ee4 c381df9e c381dfc4 c381df98 c0054bcc c00b6d6c c01001c8 35324290 
> dfa0: 00000035 00000000 0000010f c022de30 00000000 00000000 c381dfdc c001ae34 
> dfc0: c001aeac 00000000 00000000 00000000 c381dff4 c381dfe0 c00087b8 c001d290 
> dfe0: 00000000 00000000 00000000 c381dff8 c003283c c000873c ffffffff ffffffff 
> Backtrace: 
> [<c01258a4>] (ehci_hub_control+0x0/0x7cc) from [<c012a540>] (ehci_mxc_setup+0x32c/0x378)
> [<c012a214>] (ehci_mxc_setup+0x0/0x378) from [<c0117890>] (usb_add_hcd+0x1f8/0x5b0)
>  r8:000000a0 r7:c38b3800 r6:c3859a00 r5:00000001 r4:c3859a00
> [<c0117698>] (usb_add_hcd+0x0/0x5b0) from [<c012ad6c>] (ehci_mxc_drv_probe+0x37c/0x434)
> [<c012a9f0>] (ehci_mxc_drv_probe+0x0/0x434) from [<c0102dc0>] (platform_drv_probe+0x1c/0x20)
> [<c0102da4>] (platform_drv_probe+0x0/0x20) from [<c0101ebc>] (driver_probe_device+0xe0/0x194)
> [<c0101ddc>] (driver_probe_device+0x0/0x194) from [<c0101fdc>] (__driver_attach+0x6c/0x90)
>  r6:c0239100 r5:c022959c r4:c0229568
> [<c0101f70>] (__driver_attach+0x0/0x90) from [<c0101354>] (bus_for_each_dev+0x54/0x84)
>  r6:c0239100 r5:c0101f70 r4:00000000
> [<c0101300>] (bus_for_each_dev+0x0/0x84) from [<c0101ce8>] (driver_attach+0x20/0x28)
>  r6:00000000 r5:c0239100 r4:c38bca80
> [<c0101cc8>] (driver_attach+0x0/0x28) from [<c0101950>] (bus_add_driver+0xac/0x248)
> [<c01018a4>] (bus_add_driver+0x0/0x248) from [<c0102304>] (driver_register+0xb4/0x14c)
> [<c0102250>] (driver_register+0x0/0x14c) from [<c010307c>] (platform_driver_register+0x6c/0x88)
>  r8:00000000 r7:c00143ac r6:00000000 r5:c001aeac r4:c0267c38
> [<c0103010>] (platform_driver_register+0x0/0x88) from [<c0014420>] (ehci_hcd_init+0x74/0xb0)
> [<c00143ac>] (ehci_hcd_init+0x0/0xb0) from [<c001d2d4>] (do_one_initcall+0x54/0x190)
>  r4:c001ae34
> [<c001d280>] (do_one_initcall+0x0/0x190) from [<c00087b8>] (kernel_init+0x8c/0xf8)
>  r8:00000000 r7:00000000 r6:00000000 r5:c001aeac r4:c001ae34
> [<c000872c>] (kernel_init+0x0/0xf8) from [<c003283c>] (do_exit+0x0/0x5e4)
>  r5:00000000 r4:00000000
> Code: e595300c e3130010 13c13a01 13c3302a (15843000) 
> ---[ end trace 4d71561794c24c07 ]---
> Kernel panic - not syncing: Attempted to kill init!
> Backtrace: 
> [<c00213f0>] (dump_backtrace+0x0/0x108) from [<c00218a0>] (dump_stack+0x18/0x1c)
>  r6:c0125a64 r5:00000000 r4:c02400b2
> [<c0021888>] (dump_stack+0x0/0x1c) from [<c002f950>] (panic+0x48/0x148)
> [<c002f908>] (panic+0x0/0x148) from [<c0032a48>] (do_exit+0x20c/0x5e4)
>  r3:c022d8f8 r2:c381dc08 r1:c381dc08 r0:c020c570
> [<c003283c>] (do_exit+0x0/0x5e4) from [<c0021720>] (die+0x228/0x26c)
> [<c00214f8>] (die+0x0/0x26c) from [<c0021814>] (baddataabort+0x0/0x58)
> [<c00217bc>] (arm_notify_die+0x0/0x58) from [<c001d268>] (do_DataAbort+0x8c/0xa0)
> [<c001d1dc>] (do_DataAbort+0x0/0xa0) from [<c001d9cc>] (__dabt_svc+0x4c/0x60)
> Exception stack(0xc381dd10 to 0xc381dd58)
> dd00:                                     00000001 80000000 c4846140 80000000 
> dd20: c4846184 c3859ac0 00000000 20000013 00001000 c022b8ec 00000038 c381dd9c 
> dd40: 00000001 c381dd58 00000008 c0125a64 00000093 ffffffff                   
>  r7:20000013 r6:00000000 r5:c381dd44 r4:ffffffff
> [<c01258a4>] (ehci_hub_control+0x0/0x7cc) from [<c012a540>] (ehci_mxc_setup+0x32c/0x378)
> [<c012a214>] (ehci_mxc_setup+0x0/0x378) from [<c0117890>] (usb_add_hcd+0x1f8/0x5b0)
>  r8:000000a0 r7:c38b3800 r6:c3859a00 r5:00000001 r4:c3859a00
> [<c0117698>] (usb_add_hcd+0x0/0x5b0) from [<c012ad6c>] (ehci_mxc_drv_probe+0x37c/0x434)
> [<c012a9f0>] (ehci_mxc_drv_probe+0x0/0x434) from [<c0102dc0>] (platform_drv_probe+0x1c/0x20)
> [<c0102da4>] (platform_drv_probe+0x0/0x20) from [<c0101ebc>] (driver_probe_device+0xe0/0x194)
> [<c0101ddc>] (driver_probe_device+0x0/0x194) from [<c0101fdc>] (__driver_attach+0x6c/0x90)
>  r6:c0239100 r5:c022959c r4:c0229568
> [<c0101f70>] (__driver_attach+0x0/0x90) from [<c0101354>] (bus_for_each_dev+0x54/0x84)
>  r6:c0239100 r5:c0101f70 r4:00000000
> [<c0101300>] (bus_for_each_dev+0x0/0x84) from [<c0101ce8>] (driver_attach+0x20/0x28)
>  r6:00000000 r5:c0239100 r4:c38bca80
> [<c0101cc8>] (driver_attach+0x0/0x28) from [<c0101950>] (bus_add_driver+0xac/0x248)
> [<c01018a4>] (bus_add_driver+0x0/0x248) from [<c0102304>] (driver_register+0xb4/0x14c)
> [<c0102250>] (driver_register+0x0/0x14c) from [<c010307c>] (platform_driver_register+0x6c/0x88)
>  r8:00000000 r7:c00143ac r6:00000000 r5:c001aeac r4:c0267c38
> [<c0103010>] (platform_driver_register+0x0/0x88) from [<c0014420>] (ehci_hcd_init+0x74/0xb0)
> [<c00143ac>] (ehci_hcd_init+0x0/0xb0) from [<c001d2d4>] (do_one_initcall+0x54/0x190)
>  r4:c001ae34
> [<c001d280>] (do_one_initcall+0x0/0x190) from [<c00087b8>] (kernel_init+0x8c/0xf8)
>  r8:00000000 r7:00000000 r6:00000000 r5:c001aeac r4:c001ae34
> [<c000872c>] (kernel_init+0x0/0xf8) from [<c003283c>] (do_exit+0x0/0x5e4)
>  r5:00000000 r4:00000000
--
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