All of lore.kernel.org
 help / color / mirror / Atom feed
* chip idea: Crash on i.MX27
@ 2020-11-10 12:24 Fabio Estevam
  2020-11-11  1:37 ` Peter Chen
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2020-11-10 12:24 UTC (permalink / raw)
  To: Peter Chen; +Cc: USB list, Sascha Hauer, Li Jun

Hi Peter,

On a imx27-pdk board I see the following error.

Any suggestions?

Thanks,

Fabio Estevam

imx_usb 10024000.usb: No over current polarity defined
8<--- cut here ---
Unhandled fault: external abort on non-linefetch (0x808) at 0xf4424184
pgd = (ptrval)
[f4424184] *pgd=10000452(bad)
Internal error: : 808 [#1] PREEMPT ARM
Modules linked in:
CPU: 0 PID: 27 Comm: kworker/0:1 Not tainted
5.10.0-rc2-next-20201109-00002-g4bce163a428-dirty #135
Hardware name: Freescale i.MX27 (Device Tree Support)
Workqueue: events deferred_probe_work_func
PC is at hw_phymode_configure+0x4c/0x120
LR is at 0x80000000
pc : [<c0523108>]    lr : [<80000000>]    psr: 60000013
sp : c1185c70  ip : 00000000  fp : c0950638
r10: 3f888caf  r9 : c196e038  r8 : c196e08c
r7 : c11b1a20  r6 : c18fb200  r5 : c196f020  r4 : 40000000
r3 : 00000000  r2 : 8c000c04  r1 : 00000000  r0 : f4424184
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
Control: 0005317f  Table: a0004000  DAC: 00000053
Process kworker/0:1 (pid: 27, stack limit = 0x(ptrval))
Stack: (0xc1185c70 to 0xc1186000)
5c60:                                     c196e020 c0523f74 c12feb58 c12feb58
5c80: c18f5d68 c18f7160 c12fa280 c18fb210 00000000 c18fb210 00000000 c09b7814
5ca0: c09b7814 00000001 00000000 c09aae28 c0950638 c04359e0 c18fb210 c09f9a84
5cc0: 00000000 c043371c c18fb210 c09b7814 c0433b40 c0949028 00000001 00000000
5ce0: c09aae28 c0433a30 00000000 c1185d24 c0433b40 c04318ec 20000013 c10c9f5c
5d00: c12eb574 4da732e0 c0950638 c18fb210 c18fb254 c0949028 c0949028 c0433478
5d20: c12d2000 c18fb210 00000001 4da732e0 c18fb210 c09ab3f0 c18fb210 c0949028
5d40: 00000000 c043280c c18fb210 c10f6810 00000000 c042f5b0 c18fb210 c0398468
5d60: c094e9fc c0021038 c094e9fc 4da732e0 c12fa2a0 00000002 c18fb200 c18fb210
5d80: c094e9fc c094e9dc 00000000 c0435798 c1185dd8 00000000 c18fb200 c10b1f40
5da0: 00000002 00000000 c18faca0 c0523ad8 00000000 60000013 c18faca0 c10f6810
5dc0: c10f6800 c0949028 c7ef88a8 00000000 c18faca0 c052a2f4 c10f4420 00000100
5de0: 00000000 00000000 c11b1a20 00000003 0000000a 00000003 c0529924 00000000
5e00: 01010000 00000000 00000001 00000000 00000000 00000000 00000000 ffffffed
5e20: 00000000 c0524684 00000000 00000000 00000000 ffffffed 00000000 c0524684
5e40: 00000000 00000000 00000000 c12fa500 c12ffea0 00000000 00000000 4da732e0
5e60: c10f6810 00000000 c09b7990 c09b7990 00000001 00000000 c09ab198 c04359e0
5e80: c10f6810 c09f9a84 00000000 c043371c c10f6810 c09b7990 c0433b40 c0949028
5ea0: 00000001 00000000 c09ab198 c0433a30 00000000 c1185eec c0433b40 c04318ec
5ec0: 20000013 c10c9f5c c12eb454 4da732e0 c0950638 c10f6810 c10f6854 c0949028
5ee0: c09ab184 c0433478 c10f6810 c10f6810 00000001 4da732e0 c10f6810 c09ab3f0
5f00: c10f6810 c09ab184 00000000 c043280c c10f6810 c09ab178 c09ab178 c0432cbc
5f20: c09ab194 c1004920 c09d64a0 c7ee9400 00000000 c0036110 ffffe000 c095064c
5f40: c1004920 c0950638 c1004934 ffffe000 c095064c c0965940 00000008 c0036748
5f60: 00000000 c114a100 c114e2c0 c1184000 00000000 c109dec0 c00364ac c1004920
5f80: c114a120 c003d5c8 00000000 c114e2c0 c003d480 00000000 00000000 00000000
5fa0: 00000000 00000000 00000000 c0008568 00000000 00000000 00000000 00000000
5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[<c0523108>] (hw_phymode_configure) from [<c0523f74>]
(ci_hdrc_probe+0x35c/0x8f8)
[<c0523f74>] (ci_hdrc_probe) from [<c04359e0>] (platform_drv_probe+0x4c/0xa0)
[<c04359e0>] (platform_drv_probe) from [<c043371c>] (really_probe+0x228/0x3d0)
[<c043371c>] (really_probe) from [<c0433a30>] (driver_probe_device+0x54/0xb0)
[<c0433a30>] (driver_probe_device) from [<c04318ec>]
(bus_for_each_drv+0x58/0xc0)
[<c04318ec>] (bus_for_each_drv) from [<c0433478>] (__device_attach+0xd8/0x14c)
[<c0433478>] (__device_attach) from [<c043280c>] (bus_probe_device+0x8c/0x94)
[<c043280c>] (bus_probe_device) from [<c042f5b0>] (device_add+0x3b0/0x764)
[<c042f5b0>] (device_add) from [<c0435798>] (platform_device_add+0x100/0x208)
[<c0435798>] (platform_device_add) from [<c0523ad8>]
(ci_hdrc_add_device+0x414/0x4e0)
[<c0523ad8>] (ci_hdrc_add_device) from [<c052a2f4>]
(ci_hdrc_imx_probe+0x2fc/0x5ec)
[<c052a2f4>] (ci_hdrc_imx_probe) from [<c04359e0>]
(platform_drv_probe+0x4c/0xa0)
[<c04359e0>] (platform_drv_probe) from [<c043371c>] (really_probe+0x228/0x3d0)
[<c043371c>] (really_probe) from [<c0433a30>] (driver_probe_device+0x54/0xb0)
[<c0433a30>] (driver_probe_device) from [<c04318ec>]
(bus_for_each_drv+0x58/0xc0)
[<c04318ec>] (bus_for_each_drv) from [<c0433478>] (__device_attach+0xd8/0x14c)
[<c0433478>] (__device_attach) from [<c043280c>] (bus_probe_device+0x8c/0x94)
[<c043280c>] (bus_probe_device) from [<c0432cbc>]
(deferred_probe_work_func+0x60/0x90)
[<c0432cbc>] (deferred_probe_work_func) from [<c0036110>]
(process_one_work+0x210/0x5ac)
[<c0036110>] (process_one_work) from [<c0036748>] (worker_thread+0x29c/0x608)
[<c0036748>] (worker_thread) from [<c003d5c8>] (kthread+0x148/0x170)
[<c003d5c8>] (kthread) from [<c0008568>] (ret_from_fork+0x14/0x2c)
Exception stack(0xc1185fb0 to 0xc1185ff8)
5fa0:                                     00000000 00000000 00000000 00000000
5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
Code: e3530000 1a000002 e3c224d2 e182200e (e5802000)
---[ end trace 5e6eafe484314edc ]---

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: chip idea: Crash on i.MX27
  2020-11-10 12:24 chip idea: Crash on i.MX27 Fabio Estevam
@ 2020-11-11  1:37 ` Peter Chen
  2020-11-11  2:26   ` Fabio Estevam
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Chen @ 2020-11-11  1:37 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: USB list, Sascha Hauer, Jun Li

On 20-11-10 09:24:54, Fabio Estevam wrote:
> Hi Peter,
> 
> On a imx27-pdk board I see the following error.
> 
> Any suggestions?
> 
> Thanks,
> 
> Fabio Estevam
> 
> imx_usb 10024000.usb: No over current polarity defined
> 8<--- cut here ---
> Unhandled fault: external abort on non-linefetch (0x808) at 0xf4424184

0xf4424184 should be the virtual address for the register PORTSC. There are
two possible reasons for this issue:
- The PHY is not initialized correctly
- The related clock has not opened correctly.

Peter

> pgd = (ptrval)
> [f4424184] *pgd=10000452(bad)
> Internal error: : 808 [#1] PREEMPT ARM
> Modules linked in:
> CPU: 0 PID: 27 Comm: kworker/0:1 Not tainted
> 5.10.0-rc2-next-20201109-00002-g4bce163a428-dirty #135
> Hardware name: Freescale i.MX27 (Device Tree Support)
> Workqueue: events deferred_probe_work_func
> PC is at hw_phymode_configure+0x4c/0x120
> LR is at 0x80000000
> pc : [<c0523108>]    lr : [<80000000>]    psr: 60000013
> sp : c1185c70  ip : 00000000  fp : c0950638
> r10: 3f888caf  r9 : c196e038  r8 : c196e08c
> r7 : c11b1a20  r6 : c18fb200  r5 : c196f020  r4 : 40000000
> r3 : 00000000  r2 : 8c000c04  r1 : 00000000  r0 : f4424184
> Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
> Control: 0005317f  Table: a0004000  DAC: 00000053
> Process kworker/0:1 (pid: 27, stack limit = 0x(ptrval))
> Stack: (0xc1185c70 to 0xc1186000)
> 5c60:                                     c196e020 c0523f74 c12feb58 c12feb58
> 5c80: c18f5d68 c18f7160 c12fa280 c18fb210 00000000 c18fb210 00000000 c09b7814
> 5ca0: c09b7814 00000001 00000000 c09aae28 c0950638 c04359e0 c18fb210 c09f9a84
> 5cc0: 00000000 c043371c c18fb210 c09b7814 c0433b40 c0949028 00000001 00000000
> 5ce0: c09aae28 c0433a30 00000000 c1185d24 c0433b40 c04318ec 20000013 c10c9f5c
> 5d00: c12eb574 4da732e0 c0950638 c18fb210 c18fb254 c0949028 c0949028 c0433478
> 5d20: c12d2000 c18fb210 00000001 4da732e0 c18fb210 c09ab3f0 c18fb210 c0949028
> 5d40: 00000000 c043280c c18fb210 c10f6810 00000000 c042f5b0 c18fb210 c0398468
> 5d60: c094e9fc c0021038 c094e9fc 4da732e0 c12fa2a0 00000002 c18fb200 c18fb210
> 5d80: c094e9fc c094e9dc 00000000 c0435798 c1185dd8 00000000 c18fb200 c10b1f40
> 5da0: 00000002 00000000 c18faca0 c0523ad8 00000000 60000013 c18faca0 c10f6810
> 5dc0: c10f6800 c0949028 c7ef88a8 00000000 c18faca0 c052a2f4 c10f4420 00000100
> 5de0: 00000000 00000000 c11b1a20 00000003 0000000a 00000003 c0529924 00000000
> 5e00: 01010000 00000000 00000001 00000000 00000000 00000000 00000000 ffffffed
> 5e20: 00000000 c0524684 00000000 00000000 00000000 ffffffed 00000000 c0524684
> 5e40: 00000000 00000000 00000000 c12fa500 c12ffea0 00000000 00000000 4da732e0
> 5e60: c10f6810 00000000 c09b7990 c09b7990 00000001 00000000 c09ab198 c04359e0
> 5e80: c10f6810 c09f9a84 00000000 c043371c c10f6810 c09b7990 c0433b40 c0949028
> 5ea0: 00000001 00000000 c09ab198 c0433a30 00000000 c1185eec c0433b40 c04318ec
> 5ec0: 20000013 c10c9f5c c12eb454 4da732e0 c0950638 c10f6810 c10f6854 c0949028
> 5ee0: c09ab184 c0433478 c10f6810 c10f6810 00000001 4da732e0 c10f6810 c09ab3f0
> 5f00: c10f6810 c09ab184 00000000 c043280c c10f6810 c09ab178 c09ab178 c0432cbc
> 5f20: c09ab194 c1004920 c09d64a0 c7ee9400 00000000 c0036110 ffffe000 c095064c
> 5f40: c1004920 c0950638 c1004934 ffffe000 c095064c c0965940 00000008 c0036748
> 5f60: 00000000 c114a100 c114e2c0 c1184000 00000000 c109dec0 c00364ac c1004920
> 5f80: c114a120 c003d5c8 00000000 c114e2c0 c003d480 00000000 00000000 00000000
> 5fa0: 00000000 00000000 00000000 c0008568 00000000 00000000 00000000 00000000
> 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
> [<c0523108>] (hw_phymode_configure) from [<c0523f74>]
> (ci_hdrc_probe+0x35c/0x8f8)
> [<c0523f74>] (ci_hdrc_probe) from [<c04359e0>] (platform_drv_probe+0x4c/0xa0)
> [<c04359e0>] (platform_drv_probe) from [<c043371c>] (really_probe+0x228/0x3d0)
> [<c043371c>] (really_probe) from [<c0433a30>] (driver_probe_device+0x54/0xb0)
> [<c0433a30>] (driver_probe_device) from [<c04318ec>]
> (bus_for_each_drv+0x58/0xc0)
> [<c04318ec>] (bus_for_each_drv) from [<c0433478>] (__device_attach+0xd8/0x14c)
> [<c0433478>] (__device_attach) from [<c043280c>] (bus_probe_device+0x8c/0x94)
> [<c043280c>] (bus_probe_device) from [<c042f5b0>] (device_add+0x3b0/0x764)
> [<c042f5b0>] (device_add) from [<c0435798>] (platform_device_add+0x100/0x208)
> [<c0435798>] (platform_device_add) from [<c0523ad8>]
> (ci_hdrc_add_device+0x414/0x4e0)
> [<c0523ad8>] (ci_hdrc_add_device) from [<c052a2f4>]
> (ci_hdrc_imx_probe+0x2fc/0x5ec)
> [<c052a2f4>] (ci_hdrc_imx_probe) from [<c04359e0>]
> (platform_drv_probe+0x4c/0xa0)
> [<c04359e0>] (platform_drv_probe) from [<c043371c>] (really_probe+0x228/0x3d0)
> [<c043371c>] (really_probe) from [<c0433a30>] (driver_probe_device+0x54/0xb0)
> [<c0433a30>] (driver_probe_device) from [<c04318ec>]
> (bus_for_each_drv+0x58/0xc0)
> [<c04318ec>] (bus_for_each_drv) from [<c0433478>] (__device_attach+0xd8/0x14c)
> [<c0433478>] (__device_attach) from [<c043280c>] (bus_probe_device+0x8c/0x94)
> [<c043280c>] (bus_probe_device) from [<c0432cbc>]
> (deferred_probe_work_func+0x60/0x90)
> [<c0432cbc>] (deferred_probe_work_func) from [<c0036110>]
> (process_one_work+0x210/0x5ac)
> [<c0036110>] (process_one_work) from [<c0036748>] (worker_thread+0x29c/0x608)
> [<c0036748>] (worker_thread) from [<c003d5c8>] (kthread+0x148/0x170)
> [<c003d5c8>] (kthread) from [<c0008568>] (ret_from_fork+0x14/0x2c)
> Exception stack(0xc1185fb0 to 0xc1185ff8)
> 5fa0:                                     00000000 00000000 00000000 00000000
> 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
> Code: e3530000 1a000002 e3c224d2 e182200e (e5802000)
> ---[ end trace 5e6eafe484314edc ]---

-- 

Thanks,
Peter Chen

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: chip idea: Crash on i.MX27
  2020-11-11  1:37 ` Peter Chen
@ 2020-11-11  2:26   ` Fabio Estevam
  2020-11-11  6:32     ` Peter Chen
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2020-11-11  2:26 UTC (permalink / raw)
  To: Peter Chen; +Cc: USB list, Sascha Hauer, Jun Li

Hi Peter,

On Tue, Nov 10, 2020 at 10:37 PM Peter Chen <peter.chen@nxp.com> wrote:

> 0xf4424184 should be the virtual address for the register PORTSC. There are
> two possible reasons for this issue:
> - The PHY is not initialized correctly
> - The related clock has not opened correctly.

If you have a suggestion for a debug patch, I can give it a try.

Thanks

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: chip idea: Crash on i.MX27
  2020-11-11  2:26   ` Fabio Estevam
@ 2020-11-11  6:32     ` Peter Chen
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Chen @ 2020-11-11  6:32 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: USB list, Sascha Hauer, Jun Li

 
> 
> Hi Peter,
> 
> On Tue, Nov 10, 2020 at 10:37 PM Peter Chen <peter.chen@nxp.com> wrote:
> 
> > 0xf4424184 should be the virtual address for the register PORTSC.
> > There are two possible reasons for this issue:
> > - The PHY is not initialized correctly
> > - The related clock has not opened correctly.
> 
> If you have a suggestion for a debug patch, I can give it a try.
> 

Hi Fabio,

This platform should exist more than 10 years, and I have never used that platform.
You may try to find which kernel version could work, and which not, then,
I could have a check for difference.

Peter

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-11  6:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-10 12:24 chip idea: Crash on i.MX27 Fabio Estevam
2020-11-11  1:37 ` Peter Chen
2020-11-11  2:26   ` Fabio Estevam
2020-11-11  6:32     ` Peter Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.