[Letux-kernel] Boot problems on OpenPandora with 600MHz omap3530 since v5.6-rc1

H. Nikolaus Schaller hns at goldelico.com
Wed Apr 1 15:16:10 CEST 2020


Hi Tony,

> Am 26.03.2020 um 19:40 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> 
> 
>> Am 26.03.2020 um 19:37 schrieb Tony Lindgren <tony at atomide.com>:
>> 
>> Hi,
>> 
>> * H. Nikolaus Schaller <hns at goldelico.com> [200326 17:54]:
>>> Hi Tony,
>>> I have tried to boot the OpenPandora with our latest SGX 1.17 DDK
>>> driver, but have boot problems I haven't seen before.
>>> 
>>> It look as is something in v5.6-rc1 has broken boot. Symptoms
>>> are a little random. One example is attached.
>>> 
>>> Does the omap2plus kernel boot on BeagleBoard A/B/C? Or do
>>> you have an idea? If necessary we can extend the discussion
>>> to linux-omap, but at the moment I just want to find out if
>>> it is a reproducible problem with mainline kernel or not.
>> 
>> Well I checked that 3430 based n900 bots fine for me with my
>> v5.6-rc1 based fixes branch. I don't have any 35xx devices
>> hooked up currently.
>> 
>> At least the old beagleboards are using the workaround for
>> omap3_secure_sync32k_timer_init, but pandora should not
>> be using that one.
>> 
>> Eventually we need to configure the timer clock source in
>> the dts with assigned-clocks and parents, but I doubt that's
>> the issue here.
> 
> Ok,
> good to know.
> 
> I'll check some more ideas.

It turned out to be a problem with Offmode we have permanently
enabled in our kernel by a private patch to get standby power
consumption down for the GTA04.

This seems to have been broken since v5.6-rc1 (although I could
not find relevant patches yet so that some unrelated patch may
just have revealed an older problem).

We want to try next to setup the debugfs for enabling off-mode
after boot.

Some kernel panic logs I find with Offmode enabled are attached.

Anyways, with this I can build, install and start the SGX530-121
from the Zeus DDK 1.17 on the omap3530. Yay :)

BR and thanks,
Nikolaus

Often kernel hangs after:

[    4.604125] NET: Registered protocol family 17
[    4.609466] NET: Registered protocol family 15
[    4.614257] Key type dns_resolver registered
[    4.619537] ThumbEE CPU extension supported.
[    4.624053] Registering SWP/SWPB emulation handler
[    4.630249] omap2_set_init_voltage: unable to find boot up OPP for vdd_core
[    4.637542] omap2_set_init_voltage: unable to set vdd_core

Sometimes I got such a kernel panic (not always after finding mmc0):

[    5.140350] mmc0: new high speed SDHC card at address 0007
[    5.161193] mmcblk0: mmc0:0007 SD08G 7.42 GiB 
[    5.183868]  mmcblk0: p1
[    5.283111] ------------[ cut here ]------------
[    5.287994] kernel BUG at drivers/bus/omap_l3_smx.c:177!
[    5.293548] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
[    5.299652] Modules linked in:
[    5.302886] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.6.0-letux+ #2389
[    5.309906] Hardware name: Generic OMAP3 (Flattened Device Tree)
[    5.316223] PC is at omap3_l3_app_irq+0x3c/0x124
[    5.321075] LR is at __handle_irq_event_percpu+0xa8/0x268
[    5.326721] pc : [<c047aa00>]    lr : [<c0179d4c>]    psr: 20000193
[    5.333282] sp : c0c01e18  ip : 00000000  fp : 00000001
[    5.338745] r10: c0c01e70  r9 : db01a400  r8 : 00000000
[    5.344238] r7 : 00000000  r6 : 00400000  r5 : 00000000  r4 : c0c00000
[    5.351043] r3 : 00000000  r2 : 00400000  r1 : f8000000  r0 : 00400000
[    5.357879] Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    5.365447] Control: 10c5387d  Table: 80004019  DAC: 00000051
[    5.371490] Process swapper/0 (pid: 0, stack limit = 0xd2312c52)
[    5.377777] Stack: (0xc0c01e18 to 0xc0c02000)
[    5.382324] 1e00:                                                       0000001a db266d40
[    5.390899] 1e20: 00010001 c0c00000 db266cc0 db01a400 0000001a 00000000 db01a400 c0179d4c
[    5.399475] 1e40: db01a400 c0c01e70 00010001 c0c03f48 db01a468 db01a400 db01a414 00000000
[    5.408050] 1e60: c0c00000 3a97a76b 00000001 c0179f30 00000000 bb5af996 db01a400 db01a468
[    5.416625] 1e80: db01a468 c0179fbc db01a400 00000000 db01a468 c017e578 c017e504 00000000
[    5.425170] 1ea0: 00000000 db009600 00000001 c0179088 000000c6 c0179624 c0c01ed0 c067d6a0
[    5.433746] 1ec0: 20000013 ffffffff c0c01f04 c0101acc 00000000 c0c0b5f0 c0b80500 00000060
[    5.442321] 1ee0: 00000004 c0c0b470 df999838 00000004 00000000 c0c0b5f0 3a97a76b 00000001
[    5.450897] 1f00: 0000000f c0c01f20 c067d690 c067d6a0 20000013 ffffffff 00000051 00000000
[    5.459472] 1f20: 3ae38e88 00000001 00000004 df999838 00000004 c0c0b470 c0c00000 00000001
[    5.468017] 1f40: c0b7f830 c0c01f60 00000004 c067d81c df999838 c0c0b470 c0c03f48 c015ca30
[    5.476593] 1f60: c0c03f48 c0c03f70 dfdffa80 c0cb5360 01c01f84 bb5af996 c0c00000 000000d1
[    5.485168] 1f80: c0c00000 c0b51f40 c0c03f48 c0c03f40 dfdffa80 c0cb5360 c0cb5300 c015cd7c
[    5.493743] 1fa0: bb5af996 c0b0112c ffffffff ffffffff 00000000 c0b006dc c0b51f40 c0cb5300
[    5.502319] 1fc0: 00000000 c0b51f40 bb5fff96 00000000 00000000 c0b00330 00000051 10c0387d
[    5.510894] 1fe0: 000006e1 83fec000 411fc083 10c5387d 00000000 00000000 00000000 00000000
[    5.519470] [<c047aa00>] (omap3_l3_app_irq) from [<c0179d4c>] (__handle_irq_event_percpu+0xa8/0x268)
[    5.529052] [<c0179d4c>] (__handle_irq_event_percpu) from [<c0179f30>] (handle_irq_event_percpu+0x24/0x78)
[    5.539184] [<c0179f30>] (handle_irq_event_percpu) from [<c0179fbc>] (handle_irq_event+0x38/0x5c)
[    5.548492] [<c0179fbc>] (handle_irq_event) from [<c017e578>] (handle_level_irq+0x74/0xb4)
[    5.557128] [<c017e578>] (handle_level_irq) from [<c0179088>] (generic_handle_irq+0x18/0x28)
[    5.565979] [<c0179088>] (generic_handle_irq) from [<c0179624>] (__handle_domain_irq+0x80/0xa0)
[    5.575103] [<c0179624>] (__handle_domain_irq) from [<c0101acc>] (__irq_svc+0x6c/0xa8)
[    5.583404] Exception stack(0xc0c01ed0 to 0xc0c01f18)
[    5.588684] 1ec0:                                     00000000 c0c0b5f0 c0b80500 00000060
[    5.597259] 1ee0: 00000004 c0c0b470 df999838 00000004 00000000 c0c0b5f0 3a97a76b 00000001
[    5.605834] 1f00: 0000000f c0c01f20 c067d690 c067d6a0 20000013 ffffffff
[    5.612792] [<c0101acc>] (__irq_svc) from [<c067d6a0>] (cpuidle_enter_state+0x1a8/0x2cc)
[    5.621276] [<c067d6a0>] (cpuidle_enter_state) from [<c067d81c>] (cpuidle_enter+0x44/0x54)
[    5.629943] [<c067d81c>] (cpuidle_enter) from [<c015ca30>] (do_idle+0x214/0x2ac)
[    5.637695] [<c015ca30>] (do_idle) from [<c015cd7c>] (cpu_startup_entry+0x18/0x1c)
[    5.645660] [<c015cd7c>] (cpu_startup_entry) from [<c0b0112c>] (start_kernel+0x638/0x72c)
[    5.654235] [<c0b0112c>] (start_kernel) from [<00000000>] (0x0)
[    5.660430] Code: e0066002 e0077003 e1960007 0a000002 (e7f001f2) 
[    5.666839] ---[ end trace f6a08c5a7adc454b ]---
[    5.671691] Kernel panic - not syncing: Fatal exception in interrupt
[    5.678344] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---


More information about the Letux-kernel mailing list