This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5716: dpll_abe_ck failed transition to 'locked'

Part Number: AM5716


on customer's board, occasionally kernel panic on dpll_abe_ck failed transition to 'locked'. 

when boot up successfully, can reboot many times successfully continually.

When boot up fail, also reboot fail with  dpll_abe_ck failed transition to 'locked' error, no matter how many times reboot. Need to unplug power supply for a while, then there is chance to boot up successfully when power up again.

debug into find every failure hang on same place: arch/arm/mach-omap2/omap_hwmod.c:1208

From this post: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/740970/linux-tda2ex17evm-error-while-kernel-booting-clock-dpll_abe_ck-failed-transition-to-locked

it is related to sys_clk2 un-supplied, my customer board also has not SYS_CLK2, only have sys_clk1. I did not find where to configure source for ABE_DPLL in dts files, and on my customer board, there is chance to boot up successfully.  add print register CM_CLKSEL_ABE_PLL_SYS, it is always 0, so should not be clock source problem.

Please help analysis what cause this issue?

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.94-rt39-ga242ccf3f1 (baron@ubuntu) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #25 SMP PREEMPT RT Tue Oct 12 19:29:23 HKT 2021
[    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: TI AM5728 BeagleBoard-X15
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 24 MiB at 0x000000009e400000
[    0.000000] OMAP4: Map 0x000000009fe00000 to (ptrval) for dram barrier
[    0.000000] DRA752 ES2.0
[    0.000000] random: get_random_bytes called from start_kernel+0xb0/0x488 with crng_init=0
[    0.000000] percpu: Embedded 15 pages/cpu s32224 r8192 d21024 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 128864
[    0.000000] Kernel command line: mem=524160K earlyprintk=serial,ttyS2,115200 console=ttyS2,115200n8 root=PARTUUID=d479a9a2-2aba-4b07-a202-02667f4392e3 rw rootfstype=ext4 rootwait
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 474692K/520064K available (8192K kernel code, 336K rwdata, 2612K rodata, 2048K init, 273K bss, 20796K reserved, 24576K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0000000 - 0xff800000   ( 504 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdffe0000   ( 511 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (10208 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (2048 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 337 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 274 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU priority boosting: priority 1 delay 500 ms.
[    0.000000]  No expedited grace period (rcu_normal_after_boot).
[    0.000000]  Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] clock: dpll_abe_ck failed transition to 'locked'
[    0.000000] OMAP clockevent source: timer1 at 32786 Hz
[    0.000000] arch_timer: cp15 timer(s) running at 6.14MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
[    0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
[    0.000012] Switching to timer-based delay loop, resolution 162ns
[    0.000289] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[    0.000292] OMAP clocksource: 32k_counter at 32768 Hz
[    0.000746] Console: colour dummy device 80x30
[    0.263839] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
[    0.263847] pid_max: default: 32768 minimum: 301
[    0.263993] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.264001] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.264761] CPU: Testing write buffer coherency: ok
[    0.264799] CPU0: Spectre v2: using ICIALLU workaround
[    0.265086] /cpus/cpu@0 missing clock-frequency property
[    0.310027] /cpus/cpu@1 missing clock-frequency property
[    0.315476] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.380160] Setting up static identity map for 0x80200000 - 0x80200060
[    0.400154] rcu: Hierarchical SRCU implementation.
[    0.460409] EFI services will not be available.
[    0.480289] smp: Bringing up secondary CPUs ...
[    0.600663] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.600668] CPU1: Spectre v2: using ICIALLU workaround
[    0.600798] smp: Brought up 1 node, 2 CPUs
[    0.616055] SMP: Total of 2 processors activated (24.59 BogoMIPS).
[    0.622391] CPU: All CPU(s) started in HYP mode.
[    0.627122] CPU: Virtualization extensions available.
[    0.632842] devtmpfs: initialized
[    0.660732] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[    0.668851] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.678940] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.685891] pinctrl core: initialized pinctrl subsystem
[    0.691839] DMI not present or invalid.
[    0.696118] NET: Registered protocol family 16
[    0.702130] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.710141] omap_hwmod: l3_main_2 using broken dt data from ocp
[    2.128963] clock: dpll_abe_ck failed transition to 'locked'
[    3.422234] clock: dpll_abe_ck failed transition to 'locked'
[    4.715378] clock: dpll_abe_ck failed transition to 'locked'
[    4.721188] Unhandled fault: asynchronous external abort (0x1211) at 0x00000000
[    4.721192] pgd = (ptrval)
[    4.721195] [00000000] *pgd=80000080004003, *pmd=00000000
[    4.721208] Internal error: : 1211 [#1] PREEMPT SMP ARM
[    4.721211] Modules linked in:
[    4.721220] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.94-rt39-ga242ccf3f1 #25
[    4.721223] Hardware name: Generic DRA74X (Flattened Device Tree)
[    4.721235] PC is at _enable_sysc+0x5c/0x25c
[    4.721240] LR is at _enable_sysc+0x48/0x25c
[    4.721244] pc : [<c021dc10>]    lr : [<c021dbfc>]    psr: 40000013
[    4.721248] sp : dd88be38  ip : dd88be38  fp : dd88be64
[    4.721251] r10: c0e5a32c  r9 : c0e49824  r8 : 00000000
[    4.721254] r7 : c1012900  r6 : 00000000  r5 : c1007488  r4 : c101337c
[    4.721258] r3 : c1013418  r2 : c1013438  r1 : 00000004  r0 : c101337c
[    4.721263] Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[    4.721267] Control: 30c5387d  Table: 80003000  DAC: fffffffd
[    4.721270] Process swapper/0 (pid: 1, stack limit = 0x(ptrval))
[    4.721275] Stack: (0xdd88be38 to 0xdd88c000)
[    4.721279] be20:                                                       c0225178 c09c9364
[    4.721285] be40: dd88be64 a3f34873 c101337c c1054998 00000000 c1012900 dd88be8c dd88be68
[    4.721290] be60: c021df68 c021dbc0 c101337c c1010804 c101337c c10133a0 c1007488 c10133b4
[    4.721296] be80: dd88bebc dd88be90 c021e490 c021de1c dd88bebc dd88bea0 c021ca94 a3f34873
[    4.721301] bea0: c101337c c100c728 ffffe000 c0e0cf4c dd88bed4 dd88bec0 c0e0d06c c021e2d8
[    4.721306] bec0: c1054340 c1007488 dd88bf4c dd88bed8 c02023fc c0e0cf58 00000000 c0bb6c04
[    4.721311] bee0: c0bb6be4 c0bb6c00 c0bc3478 c1007488 00000000 c0bb6bbc 00000002 00000002
[    4.721316] bf00: 00000000 c0bac898 c0e004f0 c0c8b34c c10189c8 dff87a49 00000000 a3f34873
[    4.721321] bf20: c02805e0 a3f34873 c1054340 00000003 c1054340 c1054340 c0e004f0 c0e49844
[    4.721326] bf40: dd88bf94 dd88bf50 c0e01050 c0202384 00000002 00000002 00000000 c0e004f0
[    4.721331] bf60: c0c8b34c 000000d2 c09c93bc 00000000 c09c40b8 00000000 00000000 00000000
[    4.721336] bf80: 00000000 00000000 dd88bfac dd88bf98 c09c40c8 c0e00e48 00000000 c09c40b8
[    4.721341] bfa0: 00000000 dd88bfb0 c02010e0 c09c40c4 00000000 00000000 00000000 00000000
[    4.721345] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.721350] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[    4.721352] Backtrace: 
[    4.721362] [<c021dbb4>] (_enable_sysc) from [<c021df68>] (_enable+0x158/0x284)
[    4.721368]  r7:c1012900 r6:00000000 r5:c1054998 r4:c101337c
[    4.721376] [<c021de10>] (_enable) from [<c021e490>] (_setup.part.16+0x1c4/0x4e4)
[    4.721382]  r7:c10133b4 r6:c1007488 r5:c10133a0 r4:c101337c
[    4.721392] [<c021e2cc>] (_setup.part.16) from [<c0e0d06c>] (__omap_hwmod_setup_all+0x120/0x134)
[    4.721397]  r7:c0e0cf4c r6:ffffe000 r5:c100c728 r4:c101337c
[    4.721406] [<c0e0cf4c>] (__omap_hwmod_setup_all) from [<c02023fc>] (do_one_initcall+0x84/0x1b0)
[    4.721409]  r5:c1007488 r4:c1054340
[    4.721418] [<c0202378>] (do_one_initcall) from [<c0e01050>] (kernel_init_freeable+0x214/0x2a8)
[    4.721424]  r8:c0e49844 r7:c0e004f0 r6:c1054340 r5:c1054340 r4:00000003
[    4.721435] [<c0e00e3c>] (kernel_init_freeable) from [<c09c40c8>] (kernel_init+0x10/0x118)
[    4.721441]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c09c40b8
[    4.721444]  r4:00000000
[    4.721451] [<c09c40b8>] (kernel_init) from [<c02010e0>] (ret_from_fork+0x14/0x34)
[    4.721455] Exception stack(0xdd88bfb0 to 0xdd88bff8)
[    4.721459] bfa0:                                     00000000 00000000 00000000 00000000
[    4.721464] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.721468] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    4.721472]  r5:c09c40b8 r4:00000000
[    4.721479] Code: e3130080 1a000067 e5943004 e1a00004 (e5942044) 
[    5.086186] ---[ end trace 0000000000000001 ]---
[    5.086227] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    5.086227] 
[    5.086237] CPU1: stopping
[    5.086244] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D           4.19.94-rt39-ga242ccf3f1 #25
[    5.086247] Hardware name: Generic DRA74X (Flattened Device Tree)
[    5.086248] Backtrace: 
[    5.086261] [<c020c744>] (dump_backtrace) from [<c020ca7c>] (show_stack+0x18/0x1c)
[    5.086268]  r7:fa212000 r6:60000193 r5:00000000 r4:c10522dc
[    5.086276] [<c020ca64>] (show_stack) from [<c09afa4c>] (dump_stack+0x9c/0xb0)
[    5.086284] [<c09af9b0>] (dump_stack) from [<c020f1b8>] (handle_IPI+0x1bc/0x22c)
[    5.086289]  r7:fa212000 r6:00000001 r5:00000000 r4:c10545c0
[    5.086302] [<c020effc>] (handle_IPI) from [<c05637b8>] (gic_handle_irq+0x94/0x98)
[    5.086306]  r6:fa21200c r5:c102718c r4:c100796c
[    5.086313] [<c0563724>] (gic_handle_irq) from [<c02019f8>] (__irq_svc+0x58/0xa0)
[    5.086316] Exception stack(0xdd8d1f28 to 0xdd8d1f70)
[    5.086322] 1f20:                   00000000 00000d64 00000000 c021a440 ffffe000 c10074bc
[    5.086327] 1f40: c1007504 00000002 00000001 c1053f19 c0bb7428 dd8d1f84 dd8d1f88 dd8d1f78
[    5.086331] 1f60: c0208bf8 c0208bfc 60000013 ffffffff
[    5.086337]  r9:dd8d0000 r8:00000001 r7:dd8d1f5c r6:ffffffff r5:60000013 r4:c0208bfc
[    5.086349] [<c0208bbc>] (arch_cpu_idle) from [<c09c8dc0>] (default_idle_call+0x34/0x40)
[    5.086359] [<c09c8d8c>] (default_idle_call) from [<c025b924>] (do_idle+0x110/0x178)
[    5.086365] [<c025b814>] (do_idle) from [<c025bc78>] (cpu_startup_entry+0x20/0x28)
[    5.086372]  r10:00000000 r9:412fc0f2 r8:80007000 r7:c10545c8 r6:00000001 r5:dd8d0000
[    5.086375]  r4:00000087 r3:dd8d0000
[    5.086382] [<c025bc58>] (cpu_startup_entry) from [<c020ed54>] (secondary_start_kernel+0x178/0x180)
[    5.086389] [<c020ebdc>] (secondary_start_kernel) from [<8020210c>] (0x8020210c)
[    5.086394]  r7:c10545c8 r6:30c0387d r5:00000000 r4:9d862ec0

When boot up successfully, got below PLL parameters for analysis.

Google search out this post is similar as this issue, but there is not solution:https://www.pyra-handheld.com/pipermail/kernel/2016-May/000877.html