cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32mp157 optee ETC panic 0 0 ECO 5.0.3

MWoło.2
Senior III

Hello,

I encountered a problem with optee that I could not resolve due to a misunderstanding of debug information.

During boot up the board, I get the following debug log

Spoiler
...
F/TC:0 0 __clk_enable:1195 Clock 192 has been enabled
D/TC:0 0 probe_driver_node:550 element: stm32-rtc on node rtc@5c004000 initialized
F/TC:0 0 probe_driver_node:543 Probing stm32-iwdg on node watchdog@5a002000
F/TC:0 0 pager_deploy_page:1469 Mapped 0x30023000 -> 0x2fffa000
F/TC:0 0 pager_deploy_page:1469 Mapped 0x30056000 -> 0x2ffea000
F/TC:0 0 pager_deploy_page:1469 Mapped 0x30021000 -> 0x2fffd000
D/TC:0 0 gic_it_set_cpu_mask:410 cpu_mask: writing 0xff000000 to 0x349218b4
D/TC:0 0 gic_it_set_cpu_mask:412 cpu_mask: 0x3000000
D/TC:0 0 gic_it_set_prio:426 prio: writing 0x1 to 0x349214b7
D/TC:0 0 dt_driver_device_from_node_idx_prop:370 Property resets missing in node watchdog@5a002000
F/TC:0 0 __clk_enable:1195 Clock 58 has been enabled
D/TC:0 0 iwdg_wdt_get_version_and_status:528 Watchdog is enabled
F/TC:0 0 pager_deploy_page:1469 Mapped 0x30055000 -> 0x2ffed000
F/TC:0 0 pager_deploy_page:1469 Mapped 0x3001c000 -> 0x2fffb000
D/TC:0 0 register_periph_iomem:331 IO for non-secure resource 0x5a002000
E/TC:0 0 Panic

and with Panic at the end. I have to admit that I don't see any trouble with the debug text above.

I also attached two dts files tf-a and optee and full log. 

The files were generated from the latest STMCubeIde 1.17.0 with the necessary supplementation.

Thanks for any help

BR Michal

8 REPLIES 8
GatienC
ST Employee

Hello Michal,

In order to have some more information on what causes the panic, you can print the call stack. Please have a look at https://optee.readthedocs.io/en/latest/debug/abort_dumps.html.

This will heavily narrow down the search to the root cause.

Br,

Gatien

Hi GatienC,

I think Your suggestion did not resolve my problem because in my debug-log.txt there are no records with just empty addresses or data dumps like

"E/TC:0  0x001044a8" 

 Besides in my log, I have no records like "E/TC" without the last 'panic'.

Can I find the example dts of optee for DK2 board or ED1.

In my opinion Cube generator did something improper or I defined something wrong in it.

BR,

Michal

GatienC
ST Employee

It most probably is linked to this but the backtrace will allow you to know which part of the code makes the platform panic.

Can you check in the "conf.mk" file in the build directory, that you have 

 

 

CFG_UNWIND=y

 

 

 

You can also set 

 

 

CFG_TEE_CORE_DEBUG=y

 

 

as well.

BR,

Gatien

MWoło.2
Senior III

OK, I check and try new options and let You know soon.

Thanks for now.

BR,

Michal

My activity now is

Enabled options

 

 

CFG_UNWIND=y
CFG_TEE_CORE_DEBUG=y

 

 

cat debug-full-log.txt | ./scripts/symbolize.py -d tee-stm32mp157c-telemach-mx-optee.elf > debug-log-full-info.txt

How to correct read such log

Spoiler
E/TC:0 0 Panic at /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r1/core/arch/arm/plat-stm32mp1/shared_resources.c:333 <register_periph_iomem>
E/TC:0 0 TEE load address @ 0x2ffc0000
E/TC:0 0 Call stack:
E/TC:0 0 0x2ffc2155 print_kernel_stack w /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r1/core/arch/arm/kernel/unwind_arm32.c:109
E/TC:0 0 0x2ffc8623 __do_panic w /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r1/core/kernel/panic.c:88
E/TC:0 0 0x300311ef register_periph_iomem w /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r1/core/arch/arm/plat-stm32mp1/shared_resources.c:338
E/TC:0 0 0x30039549 stm32_iwdg_register w /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r1/core/drivers/stm32_iwdg.c:585
E/TC:0 0 0x3004726b probe_driver_node w /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r1/core/kernel/dt_driver.c:545
E/TC:0 0 0x300474b7 process_probe_list w /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r1/core/kernel/dt_driver.c:680
E/TC:0 0 0x30047dcd probe_dt_drivers_early w /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r1/core/kernel/dt_driver.c:881
E/TC:0 0 0x3004a741 call_initcalls w /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r1/core/kernel/initcall.c:41
E/TC:0 0 0x3006eae5 init_tee_runtime w /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r1/core/arch/arm/kernel/boot.c:1118
E/TC:0 0 0x3002f7cb boot_init_primary_late w /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r1/core/arch/arm/kernel/boot.c:1240
E/TC:0 0 0x2ffc01ac clear_bss w /home/mw/openstlinux-6.6-yocto-scarthgap-mpu-v24.12.05/build-openstlinuxweston-telemach-som/workspace/sources/optee-os-stm32mp/core/arch/arm/kernel/entry_a32.S:565

BR,

Michal

MWoło.2
Senior III

Finally, I resolved a panic problem. The problem was related to iwdg2. Cube generates an iwdg2 section but without providing information into 

&etzpc {

DECPROT(STM32MP1_ETZPC_IWDG2_ID, DECPROT_S_RW, DECPROT_UNLOCK)

}

When I change iwdg2 to iwdg1 cube put the above information for IWDG1. I'm not sure if it is a feature or a bug.

Now log look much better

Spoiler

NOTICE: CPU: STM32MP157CAA Rev.Z
NOTICE: Model: Telemach SOM
INFO: PMIC version = 0x21
WARNING: VDD unknown
NOTICE: Reset reason (0x15):
INFO: Power-on Reset (rst_por)
INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000
INFO: FCONF: Reading firmware configuration information for: stm32mp_fuse
INFO: FCONF: Reading firmware configuration information for: stm32mp_io
INFO: Using EMMC
INFO: Instance 2
INFO: Boot used partition fsbl1
NOTICE: BL2: v2.10-stm32mp1-r1.0(debug):lts-v2.10.5-dirty(7c229848)
NOTICE: BL2: Built : 16:19:31, Jun 28 2024
INFO: BL2: Doing platform setup
INFO: RAM: DDR3-DDR3L 16bits 533000kHz
INFO: Memory size = 0x20000000 (512 MB)
INFO: BL2: Loading image id 1
INFO: Loading image id=1 at address 0x2ffff000
INFO: Image id=1 loaded: 0x2ffff000 - 0x2ffff1ea
INFO: FCONF: Reading FW_CONFIG firmware configuration file from: 0x2ffff000
INFO: FCONF: Reading firmware configuration information for: dyn_cfg
INFO: FCONF: Reading firmware configuration information for: stm32mp1_firewall
INFO: BL2: Loading image id 4
INFO: Loading image id=4 at address 0x2ffc0000
INFO: Image id=4 loaded: 0x2ffc0000 - 0x2ffc002c
INFO: OPTEE ep=0x2ffc0000
INFO: OPTEE header info:
INFO: magic=0x4554504f
INFO: version=0x2
INFO: arch=0x0
INFO: flags=0x0
INFO: nb_images=0x2
INFO: BL2: Loading image id 8
INFO: Loading image id=8 at address 0x2ffc0000
INFO: Image id=8 loaded: 0x2ffc0000 - 0x2ffd0a50
INFO: BL2: Loading image id 9
INFO: Loading image id=9 at address 0xde000000
INFO: Image id=9 loaded: 0xde000000 - 0xde06d000
INFO: BL2: Loading image id 2
INFO: Loading image id=2 at address 0xc0500000
INFO: Image id=2 loaded: 0xc0500000 - 0xc0514d50
INFO: BL2: Skip loading image id 16
INFO: BL2: Loading image id 5
INFO: Loading image id=5 at address 0xc0100000
INFO: Image id=5 loaded: 0xc0100000 - 0xc021e500
NOTICE: BL2: Booting BL32
INFO: Entry point address = 0x2ffc0000
INFO: SPSR = 0x1d3
I/TC: Early console on UART#4
I/TC:
I/TC: Pager is enabled. Hashes: 3584 bytes
I/TC: Pager pool size: 104kB
I/TC: Embedded DTB found
I/TC: OP-TEE version: devtool-patched-1-g548bebf78 (gcc version 13.3.0 (GCC)) #37 Sat Jan 11 19:21:36 UTC 2025 arm
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: Override the OTP 18: 0x7b4f0000 to 0x7b4f01e0
I/TC: WARNING: Embeds insecure stm32mp_provisioning driver
I/TC: Platform stm32mp1: flavor PLATFORM_FLAVOR - DT stm32mp157c-telemach-mx.dts
I/TC: OP-TEE ST profile: secure_and_system_services
E/TC:0 0 call_initcalls:43 Initcall __text_start + 0x000276b0 failed
I/TC: Primary CPU switching to normal world boot
I/TC: Reserved shared memory is disabled
I/TC: Dynamic shared memory is enabled
I/TC: Normal World virtualization support is disabled
I/TC: Asynchronous notifications are disabled
optee optee: OP-TEE: revision 4.0 (548bebf7)
serial_stm32 serial@40010000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19


U-Boot 2023.10-stm32mp-r1 (Oct 02 2023 - 14:39:59 +0000)

CPU: STM32MP157CAA Rev.Z
Model: Telemach SOM
Board: stm32mp1 in trusted mode (st,stm32mp157c-telemach-mx)
DRAM: no /fwu-mdata node ?
512 MiB
optee optee: OP-TEE: revision 4.0 (548bebf7)
I/TC: Reserved shared memory is disabled
I/TC: Dynamic shared memory is enabled
I/TC: Normal World virtualization support is disabled
I/TC: Asynchronous notifications are disabled
Clocks:
- MPU : 650 MHz
- MCU : 200 MHz
- AXI : 64 MHz
- PER : 64 MHz
- DDR : 533 MHz
Core: 122 devices, 39 uclasses, devicetree: board
NAND: 0 MiB
MMC: STM32 SD/MMC: 0, STM32 SD/MMC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
invalid MAC address 0 in OTP 00:00:00:00:00:00
Net:
Error: ethernet@5800a000 address not set.
No ethernet found.

MMC: no card present
No EFI system partition
No EFI system partition
Failed to persist EFI variables

Error: ethernet@5800a000 address not set.

Error: ethernet@5800a000 address not set.
Hit any key to stop autoboot: 0
Boot over mmc1!
Saving Environment to MMC... Writing to MMC(1)... OK
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:6...
Found U-Boot script /boot.scr.uimg
4187 bytes read in 72 ms (56.6 KiB/s)
## Executing script at c6100000
Executing SCRIPT on target=mmc1
FOUND /mmc1_extlinux/extlinux.conf
Saving Environment to MMC... Writing to MMC(1)... OK
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:6...
Found /mmc1_extlinux/extlinux.conf
Retrieving file: /mmc1_extlinux/extlinux.conf
Retrieving file: /splash_portrait.bmp
1: OpenSTLinux
Enter choice: 1: OpenSTLinux
Retrieving file: /uImage
Retrieving file: /st-image-resize-initrd
append: root=PARTUUID=491f6117-415d-4f53-88c9-6e0de54deac6 rootwait rw console=ttySTM0,115200
Retrieving file: /stm32mp157c-telemach-mx.dtb
## Booting kernel from Legacy Image at c2000000 ...
Image Name: Linux-6.6.48
Created: 2024-08-29 15:33:59 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 8613632 Bytes = 8.2 MiB
Load Address: c2000040
Entry Point: c2000040
Verifying Checksum ... OK
## Flattened Device Tree blob at c6000000
Booting using the fdt blob at 0xc6000000
Working FDT set to c6000000
XIP Kernel Image
Loading Ramdisk to cf9d1000, end cfffff6a ... OK
Loading Device Tree to cf9b9000, end cf9d04b9 ... OK
Working FDT set to cf9b9000

Starting kernel ...

I/TC: Secondary CI/TC: Secondary CPU 1 switching to normal world boot

Of course, there is still in the log some error but go up to the Kernel booting. Unfortunately stuck on the last line in the log and that's all. Do I need to add something special to the Kernel dts?

Shall I again add more debug logs to see a problem or it is something obvious I omit?

BR,

Michal

GatienC
ST Employee

Hello Michal,

Be aware that only secure peripherals will have their driver probed in OP-TEE, as you have figured while fixing this issue. I don't think the CubeMX is supposed to omit the firewall configuration if you select OP-TEE AFAIK but the IWDG2 peripheral is non-securable on stm32mp15x platforms so it's normal that it was not generated. Only securable watchdog is IWDG1 on these platforms.

Please note that if you're using a peripheral in the secure world (hence configuring it as secure) you cannot expect the non-secure world to access it directly.

The error log in OP-TEE indicates that a service failed to initialize so I would try to fix or understand this before going further. Adding more debug log will hopefully allow you to identify the service that failed, so yes, I would add a higher log level in OP-TEE.

Regarding the freeze in the kernel, I would also add the early console on the kernel side to get some more information as well.

Hi GatienC,

First, thanks for the explanation. I'm a newbie in the trust zone, optee, and other security-related topics. Understanding it at a minimal level is necessary to go further.

Regarding IWDG2 I misunderstand the checkbox in the cube

MWoo2_0-1736845651744.png

The checkbox does not always mean that the peripheral is secured. In the documentation, I found confirmation of what You wrote above.

MWoo2_1-1736846947720.png

Documentation source RM0436 Rev 6 page 1121

Now I understand how many things I do wrong, and what I should fix in my dts files.

Today, I am going to try to re-enable all debug features of OP-TEE to investigate why the kernel is not starting and to remove all OP-TEE errors, even if they do not affect the boot process.

BR,

Michal

MWoło.2
Senior III

After adding earlycon into the kernel param I get something like

Spoiler

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 6.6.48 (oe-user@oe-host) (arm-ostl-linux-gnueabi-gcc (GCC) 13.3.0, GNU ld (GN4
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Telemach SOM
[ 0.000000] earlycon: stm32 at MMIO 0x40010000 (options '115200n8')
[ 0.000000] printk: bootconsole [stm32] enabled
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Reserved memory: created DMA memory pool at 0x10000000, size 0 MiB
[ 0.000000] OF: reserved mem: initialized node mcuram2@10000000, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x10000000..0x1003ffff (256 KiB) nomap non-reusable mcuram2@10000000
[ 0.000000] Reserved memory: created DMA memory pool at 0x10040000, size 0 MiB
[ 0.000000] OF: reserved mem: initialized node vdev0vring0@10040000, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x10040000..0x10040fff (4 KiB) nomap non-reusable vdev0vring0@10040000
[ 0.000000] Reserved memory: created DMA memory pool at 0x10041000, size 0 MiB
[ 0.000000] OF: reserved mem: initialized node vdev0vring1@10041000, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x10041000..0x10041fff (4 KiB) nomap non-reusable vdev0vring1@10041000
[ 0.000000] Reserved memory: created DMA memory pool at 0x10042000, size 0 MiB
[ 0.000000] OF: reserved mem: initialized node vdev0buffer@10042000, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x10042000..0x10045fff (16 KiB) nomap non-reusable vdev0buffer@10042000
[ 0.000000] Reserved memory: created DMA memory pool at 0x30000000, size 0 MiB
[ 0.000000] OF: reserved mem: initialized node mcuram@0x30000000, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x30000000..0x3003ffff (256 KiB) nomap non-reusable mcuram@0x30000000
[ 0.000000] OF: reserved mem: 0x38000000..0x3800ffff (64 KiB) map non-reusable retram@0x38000000
[ 0.000000] OF: reserved mem: 0xde000000..0xdfffffff (32768 KiB) nomap non-reusable optee@0xde000000
[ 0.000000] OF: reserved mem: 0xfd000000..0x04ffffff (131072 KiB) nomap non-reusable fb@fd000000
[ 0.000000] cma: Reserved 128 MiB at 0xd6000000 on node -1
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000c0000000-0x00000000ddffffff]
[ 0.000000] HighMem [mem 0x00000000de000000-0x00000000dfffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000c0000000-0x00000000ddffffff]
[ 0.000000] node 0: [mem 0x00000000de000000-0x00000000dfffffff]
[ 0.000000] Initmem setup node 0 [mem 0x00000000c0000000-0x00000000dfffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 18 pages/cpu s42836 r8192 d22700 u73728
[ 0.000000] Kernel command line: root=PARTUUID=491f6117-415d-4f53-88c9-6e0de54deac6 rootwait rw earlyco0
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129992
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 327288K/524288K available (13312K kernel code, 1397K rwdata, 3932K rodata, 1024K in)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] trace event string verifier disabled
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns:s
[ 0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.007974] Switching to timer-based delay loop, resolution 41ns
[ 0.016766] Console: colour dummy device 80x30
[ 0.019977] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS ()
[ 0.030271] CPU: Testing write buffer coherency: ok
[ 0.035041] pid_max: default: 32768 minimum: 301
[ 0.040423] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.046927] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.059680] CPU0: update cpu_capacity 1024
[ 0.062439] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.073391] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[ 0.080036] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[ 0.087255] Setting up static identity map for 0xc0100000 - 0xc0100060
[ 0.094055] rcu: Hierarchical SRCU implementation.
[ 0.097923] rcu: Max phase no-delay instances is 1000.
[ 0.108498] smp: Bringing up secondary CPUs ...
I/TC: Secondary CI/TC: Secondary CPU 1 switching to normal world boot
[ 0.123454] CPU1: update cpu_capacity 1024
[ 0.123552] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.124808] smp: Brought up 1 node, 2 CPUs
[ 0.137372] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[ 0.143409] CPU: All CPU(s) started in SVC mode.
[ 0.152019] devtmpfs: initialized
[ 0.201488] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.209268] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 191126044627500s
[ 0.217793] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.243992] pinctrl core: initialized pinctrl subsystem
[ 0.254867] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.266305] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.276531] thermal_sys: Registered thermal governor 'step_wise'
[ 0.277093] cpuidle: using governor menu
[ 0.287249] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.293862] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.301325] Serial: AMBA PL011 UART driver
[ 0.310759] stm32-pm-domain pm_domain: domain core-ret-power-domain registered
[ 0.316674] stm32-pm-domain pm_domain: subdomain core-power-domain registered
[ 0.323823] stm32-pm-domain pm_domain: domains probed
[ 0.347589] 8<--- cut here ---
[ 0.349313] Unhandled fault: imprecise external abort (0x1c06) at 0x4b8d04ef
[ 0.356326] [4b8d04ef] *pgd=00000000
[ 0.359913] Internal error: : 1c06 [#1] PREEMPT SMP ARM
[ 0.365110] Modules linked in:
[ 0.368141] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.6.48 #1
[ 0.374032] Hardware name: STM32 (Device Tree Support)
[ 0.379155] PC is at _raw_spin_unlock_irqrestore+0xc/0x4c
[ 0.384534] LR is at clk_gate_enable+0xc/0x14
[ 0.388873] pc : [<c0d4ba3c>] lr : [<c06fd568>] psr: a0000093
[ 0.395122] sp : de815b30 ip : a0000093 fp : c18c2040
[ 0.400333] r10: 00000001 r9 : ffffffff r8 : c1164350
[ 0.405538] r7 : 00000000 r6 : c1532360 r5 : 00000000 r4 : c18c1b40
[ 0.412049] r3 : 00000000 r2 : de887094 r1 : a0000093 r0 : c158c8e0
[ 0.418562] Flags: NzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
[ 0.425767] Control: 10c5387d Table: c000406a DAC: 00000051
[ 0.431492] Register r0 information: non-slab/vmalloc memory
[ 0.437134] Register r1 information: non-paged memory
[ 0.442167] Register r2 information: 0-page vmalloc region starting at 0xde887000 allocated at stm32mp14
[ 0.453973] Register r3 information: NULL pointer
[ 0.458660] Register r4 information: slab kmalloc-192 start c18c1b40 pointer offset 0 size 192
[ 0.467253] Register r5 information: NULL pointer
[ 0.471940] Register r6 information: non-slab/vmalloc memory
[ 0.477582] Register r7 information: NULL pointer
[ 0.482269] Register r8 information: non-slab/vmalloc memory
[ 0.487912] Register r9 information: non-paged memory
[ 0.492945] Register r10 information: non-paged memory
[ 0.498068] Register r11 information: slab kmalloc-128 start c18c2000 pointer offset 64 size 128
[ 0.506834] Register r12 information: non-paged memory
[ 0.511955] Process swapper/0 (pid: 1, stack limit = 0x(ptrval))
[ 0.517948] Stack: (0xde815b30 to 0xde816000)
[ 0.522294] 5b20: c18c1b40 c06fd568 c18c1b40 c06f7318
[ 0.530452] 5b40: c18c2040 c0d4b79c c18c1b40 00000000 60000013 00000000 c1164350 c06f9088
[ 0.538611] 5b60: c18c1b40 c1a76900 c18c1a80 c06f94ec c18c1a80 00000000 00000000 c0e624fc
[ 0.546770] 5b80: 00000000 c0e62954 c1945fc0 c06f9630 c18c1a80 c06fe75c c0702600 c1801180
[ 0.554929] 5ba0: 00000dc0 c10bf678 c1a86810 00000000 c10bf678 c18c1a8c c14c7aec 00000000
[ 0.563089] 5bc0: 00000000 00000001 00000800 8c8b81ff 00000008 00000000 c0e624fc c14c7ab8
[ 0.571247] 5be0: c1a86810 de887000 00000000 c1945fc0 00000800 c06fe8a8 00000001 00000000
[ 0.579407] 5c00: 00000000 c1945fc0 c0e624fc c18c2040 c0e62954 00000800 c14c7ab8 c0702a2c
[ 0.587566] 5c20: 00000000 00000000 c1945fc0 c0e624fc c18c2040 c0e62954 00000800 c0e650fc
[ 0.595725] 5c40: c10bf678 c14c7aec 00000001 c158c8e0 00000000 c0e659ac 0000000d c14c7400
[ 0.603885] 5c60: 000001d4 c1a86810 00000024 c1a87440 c070285c c07031f4 c0e659ac c0ad8bec
[ 0.612044] 5c80: c0e6529c de887000 c158c8e0 c1a87444 c1a86800 00000000 de887000 c1a86810
[ 0.620204] 5ca0: c1a86800 c0e651d8 c0e651d8 d5b063bc 00000000 c07033a8 00000000 00000000
[ 0.628362] 5cc0: 00000000 00000000 c1a86810 c14c4e54 c153cb80 00000000 c14d6028 c07e22a8
[ 0.636522] 5ce0: c1a86810 00000000 c14c4e54 c153cb80 00000000 c07df5c8 c1a86910 c07eebd8
[ 0.644681] 5d00: c1a86810 c14c4e54 c1a86810 00000000 c153c8b0 c07dfa5c c0e65360 c0ad8d30
[ 0.652840] 5d20: c14c4e54 c158f56c c14c4e54 c07dfbb8 00000001 c14c4e54 de815d8c c1a86810
[ 0.660999] 5d40: c153c8b0 c07dfcf0 00000000 c1893b00 de815d8c c07dfc48 c153c8b0 c07dd5b8
[ 0.669158] 5d60: c1893b00 c1893b6c c194b2b8 8c8b81ff fffffff3 c1a86810 c1a86854 00000001
[ 0.677317] 5d80: c1893b00 c07e00bc 00000000 c1a86810 00000001 8c8b81ff c1a86810 c1a86810
[ 0.685476] 5da0: c158f538 c07de584 c1a86810 00000000 c158f538 c1a85010 c153c8b0 c07dbe94
[ 0.693635] 5dc0: 00000200 00000000 00000000 00000000 00000000 8c8b81ff c1a86800 00000000
[ 0.701795] 5de0: d5b06414 d5b063b0 00000000 00000001 00000000 c0adc8d4 d5b063b0 00000000
[ 0.709954] 5e00: 00000000 c0f2d408 c1a85010 c0adcc18 c1a85010 00000000 c1a85010 c07dbb34
[ 0.718114] 5e20: ffffff04 c1592110 ff8b9a6c d5b05b60 c0f2d694 c0ad8bec c0f2d654 c1592110
[ 0.726273] 5e40: 60000013 8c8b81ff c154c3c0 d5b05af0 00000000 d5b063b0 c0f2d408 c1a85010
[ 0.734431] 5e60: 00000001 00000000 c154c3c0 c0adcc7c 00000001 00000000 00000000 c0d07920
[ 0.742591] 5e80: 00000000 c1a28000 00000000 c1a28000 c1058a70 c1a27880 00000000 c1592110
[ 0.750751] 5ea0: 60000013 8c8b81ff c135a60c d5b05af0 d5b03210 c0f2d408 00000000 00000000
[ 0.758910] 5ec0: 00000001 00000000 c135a60c c0adcf94 00000001 00000000 d5b352a0 d5b32434
[ 0.767069] 5ee0: c132962c c152c2a0 00000000 c1345848 00000003 c132970c c18d8000 c152c2a0
[ 0.775228] 5f00: c132962c c0101cc0 00000003 00000000 c13004d0 c0148b00 00000150 00000003
[ 0.783386] 5f20: 00000003 00000000 c13004d0 c02ec620 c11d5004 00000000 00000001 c1803ec8
[ 0.791547] 5f40: c1803ed0 8c8b81ff 00000001 00000150 c1803e80 8c8b81ff 00000150 c1803e80
[ 0.799705] 5f60: c1345828 c152c2a0 c1162708 c1301398 00000003 00000003 00000000 c13004d0
[ 0.807865] 5f80: c0d426f8 c1404d00 c0d426f8 00000000 00000000 00000000 00000000 00000000
[ 0.816023] 5fa0: 00000000 c0d42710 00000000 c010014c 00000000 00000000 00000000 00000000
[ 0.824182] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.832341] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[ 0.840560] _raw_spin_unlock_irqrestore from clk_gate_enable+0xc/0x14
[ 0.847015] clk_gate_enable from clk_core_enable+0x7c/0x214
[ 0.852651] clk_core_enable from __clk_core_init+0x254/0x528
[ 0.858377] __clk_core_init from __clk_register+0x190/0x27c
[ 0.864017] __clk_register from clk_hw_register+0x20/0x44
[ 0.869486] clk_hw_register from __clk_hw_register_composite+0x1ec/0x2e8
[ 0.876259] __clk_hw_register_composite from clk_hw_register_composite+0x50/0x58
[ 0.883721] clk_hw_register_composite from _clk_stm32_register_composite+0x1d0/0x260
[ 0.891537] _clk_stm32_register_composite from stm32_rcc_clock_init+0x9c/0x178
[ 0.898825] stm32_rcc_clock_init from stm32mp1_rcc_clocks_probe+0xd8/0x1d4
[ 0.905769] stm32mp1_rcc_clocks_probe from platform_probe+0x5c/0xb0
[ 0.912112] platform_probe from really_probe+0xe0/0x3f4
[ 0.917403] really_probe from __driver_probe_device+0x9c/0x130
[ 0.923302] __driver_probe_device from driver_probe_device+0x30/0xc0
[ 0.929725] driver_probe_device from __device_attach_driver+0xa8/0x120
[ 0.936323] __device_attach_driver from bus_for_each_drv+0x84/0xd8
[ 0.942575] bus_for_each_drv from __device_attach+0xa8/0x1d4
[ 0.948302] __device_attach from bus_probe_device+0x88/0x8c
[ 0.953943] bus_probe_device from device_add+0x4d4/0x6c4
[ 0.959327] device_add from of_platform_device_create_pdata+0x94/0xc0
[ 0.965841] of_platform_device_create_pdata from of_platform_bus_create+0x1bc/0x354
[ 0.973562] of_platform_bus_create from of_platform_bus_create+0x220/0x354
[ 0.980503] of_platform_bus_create from of_platform_populate+0x90/0x12c
[ 0.987186] of_platform_populate from of_platform_default_populate_init+0xe0/0xf8
[ 0.994747] of_platform_default_populate_init from do_one_initcall+0x44/0x24c
[ 1.001952] do_one_initcall from kernel_init_freeable+0x220/0x27c
[ 1.008112] kernel_init_freeable from kernel_init+0x18/0x130
[ 1.013838] kernel_init from ret_from_fork+0x14/0x28
[ 1.018867] Exception stack(0xde815fb0 to 0xde815ff8)
[ 1.023906] 5fa0: 00000000 00000000 00000000 00000000
[ 1.032067] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.040225] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1.046833] Code: eaffe1e4 e92d4010 f57ff05b e1d030b0 (e2833001)
[ 1.052905] ---[ end trace 0000000000000000 ]---
[ 1.057500] note: swapper/0[1] exited with irqs disabled
[ 1.063004] note: swapper/0[1] exited with preempt_count 2
[ 1.068302] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 1.075932] CPU1: stopping
[ 1.075964] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G D 6.6.48 #1
[ 1.075986] Hardware name: STM32 (Device Tree Support)
[ 1.076006] unwind_backtrace from show_stack+0x10/0x14
[ 1.076074] show_stack from dump_stack_lvl+0x40/0x4c
[ 1.076108] dump_stack_lvl from do_handle_IPI+0x230/0x258
[ 1.076138] do_handle_IPI from ipi_handler+0x18/0x20
[ 1.076162] ipi_handler from handle_percpu_devid_irq+0xa4/0x250
[ 1.076215] handle_percpu_devid_irq from generic_handle_domain_irq+0x28/0x38
[ 1.076248] generic_handle_domain_irq from gic_handle_irq+0x74/0x88
[ 1.076272] gic_handle_irq from generic_handle_arch_irq+0x58/0x78
[ 1.076299] generic_handle_arch_irq from call_with_stack+0x18/0x20
[ 1.076343] call_with_stack from __irq_svc+0x98/0xc8
[ 1.076365] Exception stack(0xde859f48 to 0xde859f90)
[ 1.076389] 9f40: 00000001 c114d964 14793000 00000000 00000000 c18e2700
[ 1.076407] 9f60: c152d4c4 c18e2700 c000406a 410fc075 00000000 00000000 00000000 de859f98
[ 1.076420] 9f80: c0d424a8 c0d4247c 60000013 ffffffff
[ 1.076432] __irq_svc from default_idle_call+0x1c/0x124
[ 1.076460] default_idle_call from cpuidle_idle_call+0x170/0x1f0
[ 1.076503] cpuidle_idle_call from do_idle+0x88/0xac
[ 1.076525] do_idle from cpu_startup_entry+0x28/0x2c
[ 1.076548] cpu_startup_entry from secondary_start_kernel+0x10c/0x12c
[ 1.076573] secondary_start_kernel from __enable_mmu+0x0/0x20
[ 1.208875] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---

The question is what kind of the problem is it now?