cancel
Showing results for 
Search instead for 
Did you mean: 

What do I need to enable in CubeMX for Op-tee/RIF to fix CPU and GPU deferred issue?

DMårt
Lead

I get this issue. I don't know why the GPU and CPU is considered deferred by op-tee.

I think this is a configuration issue, but I don't know what need to be done. I have tried stm32mp257f-dk device treee and it still gives the same error. Notice that I'm not using LSE.

So any suggestion? Enable something in RIF?

D/TC:0 0 dt_stm32_gpio_bank:1176 Bank name gpio@442b0000
D/TC:0 0 firewall_dt_controller_register:289 Registering gpio-bank-H firewall controller
D/TC:0 0 dt_stm32_gpio_bank:1176 Bank name gpio@442c0000
D/TC:0 0 firewall_dt_controller_register:289 Registering gpio-bank-I firewall controller
D/TC:0 0 probe_driver_node:550 element: stm32_gpio-pinctrl on node pinctrl@44240000 initialized
F/TC:0 0 probe_driver_node:543 Probing stm32-rtc on node rtc@46000000
D/TC:0 0 probe_driver_node:556 element: stm32-rtc on node rtc@46000000 deferred 2 time(s)
F/TC:0 0 probe_driver_node:543 Probing stm32_gpio-pinctrl on node pinctrl-z@46200000
D/TC:0 0 dt_stm32_gpio_bank:1176 Bank name gpio@46200000
D/TC:0 0 firewall_dt_controller_register:289 Registering gpio-bank-Z firewall controller
D/TC:0 0 probe_driver_node:550 element: stm32_gpio-pinctrl on node pinctrl-z@46200000 initialized
F/TC:0 0 probe_driver_node:543 Probing stm32-exti on node interrupt-controller@46230000
D/TC:0 0 stm32_exti_rif_parse_dt:423 No global lock on RIF configuration
D/TC:0 0 probe_driver_node:550 element: stm32-exti on node interrupt-controller@46230000 initialized
F/TC:0 0 probe_driver_node:543 Probing st,stm32-hsem on node hwspinlock@46240000
D/TC:0 0 probe_driver_node:550 element: st,stm32-hsem on node hwspinlock@46240000 initialized
F/TC:0 0 probe_driver_node:543 Probing st,stm32mp-ipcc on node mailbox@46250000
D/TC:0 0 probe_driver_node:550 element: st,stm32mp-ipcc on node mailbox@46250000 initialized
F/TC:0 0 probe_driver_node:543 Probing stm32-rproc on node m33@0
D/TC:0 0 stm32_rproc_get_dma_ranges:494 Add dma-range: da 0 pa 0x80000000 size 0x8000000
D/TC:0 0 stm32_rproc_get_dma_ranges:494 Add dma-range: da 0x8000000 pa 0x8000000 size 0x8000000
D/TC:0 0 stm32_rproc_get_dma_ranges:494 Add dma-range: da 0x10000000 pa 0x80000000 size 0x10000000
D/TC:0 0 stm32_rproc_get_dma_ranges:494 Add dma-range: da 0x20000000 pa 0x20000000 size 0xd0000000
D/TC:0 0 probe_driver_node:550 element: stm32-rproc on node m33@0 initialized
F/TC:0 0 process_probe_list:657 Probe loop 4 after 2 for deferral(s)
D/TC:0 0 print_probe_list:504 Probe list: 2 elements
D/TC:0 0 print_probe_list:506 |- Driver stm32-gpu probes on node gpu@48280000
D/TC:0 0 print_probe_list:506 |- Driver stm32-rtc probes on node rtc@46000000
D/TC:0 0 print_probe_list:510 `- Probe list end
D/TC:0 0 print_probe_list:516 Failed list: 0 elements
D/TC:0 0 print_probe_list:521 `- Failed list end
F/TC:0 0 probe_driver_node:543 Probing stm32-rtc on node rtc@46000000
D/TC:0 0 gic_it_set_cpu_mask:410 cpu_mask: writing 0xff000000 to 0x72a1082c
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 0x72a1042f
D/TC:0 0 probe_driver_node:550 element: stm32-rtc on node rtc@46000000 initialized
F/TC:0 0 probe_driver_node:543 Probing stm32-gpu on node gpu@48280000
D/TC:0 0 probe_driver_node:556 element: stm32-gpu on node gpu@48280000 deferred 2 time(s)
F/TC:0 0 process_probe_list:657 Probe loop 5 after 3 for deferral(s)
D/TC:0 0 print_probe_list:504 Probe list: 1 elements
D/TC:0 0 print_probe_list:506 |- Driver stm32-gpu probes on node gpu@48280000
D/TC:0 0 print_probe_list:510 `- Probe list end
D/TC:0 0 print_probe_list:516 Failed list: 0 elements
D/TC:0 0 print_probe_list:521 `- Failed list end
F/TC:0 0 probe_driver_node:543 Probing stm32-gpu on node gpu@48280000
D/TC:0 0 probe_driver_node:556 element: stm32-gpu on node gpu@48280000 deferred 3 time(s)
D/TC:0 0 process_probe_list:697 Unresolved dependencies after 5 rounds, 4 deferred
D/TC:0 0 probe_dt_drivers_early:883 Deferred drivers probing
D/TC:0 0 print_probe_list:504 Probe list: 1 elements
D/TC:0 0 print_probe_list:506 |- Driver stm32-gpu probes on node gpu@48280000
D/TC:0 0 print_probe_list:510 `- Probe list end
D/TC:0 0 print_probe_list:516 Failed list: 0 elements
D/TC:0 0 print_probe_list:521 `- Failed list end
D/TC:0 0 call_initcalls:40 level 3 platform_banner()
I/TC: Platform stm32mp2: flavor PLATFORM_FLAVOR - DT stm32mp257f-firmware-mx.dts
I/TC: OP-TEE ST profile: secure_and_system_services
D/TC:0 0 call_initcalls:40 level 3 check_ta_store()
D/TC:0 0 check_ta_store:454 TA store: "early TA"
D/TC:0 0 check_ta_store:454 TA store: "Secure Storage TA"
D/TC:0 0 check_ta_store:454 TA store: "REE"
D/TC:0 0 call_initcalls:40 level 3 early_ta_init()
D/TC:0 0 early_ta_init:56 Early TA 80a4c275-0a47-4905-8285-1486a9771a08 size 51896 (compressed, uncompressed 117552)
D/TC:0 0 early_ta_init:56 Early TA 1a8342cc-81a5-4512-99fe-9e2b3e37d626 size 48658 (compressed, uncompressed 109344)
D/TC:0 0 call_initcalls:40 level 3 verify_pseudo_tas_conformance()
D/TC:0 0 call_initcalls:40 level 3 mobj_init()
D/TC:0 0 call_initcalls:40 level 3 default_mobj_init()
D/TC:0 0 call_initcalls:40 level 3 tee_cryp_init()
D/TC:0 0 call_initcalls:40 level 4 tee_fs_init_key_manager()
D/TC:0 0 call_initcalls:40 level 5 stm32_cpu_initcall()
D/TC:0 0 add_node_to_probe:748 element: stm32-cpu on node cpu@0
D/TC:0 0 print_probe_list:504 Probe list: 2 elements
D/TC:0 0 print_probe_list:506 |- Driver stm32-gpu probes on node gpu@48280000
D/TC:0 0 print_probe_list:506 |- Driver stm32-cpu probes on node cpu@0
D/TC:0 0 print_probe_list:510 `- Probe list end
D/TC:0 0 print_probe_list:516 Failed list: 0 elements
D/TC:0 0 print_probe_list:521 `- Failed list end
D/TC:0 0 call_initcalls:40 level 5 probe_dt_drivers()
F/TC:0 0 process_probe_list:657 Probe loop 6 after 4 for deferral(s)
D/TC:0 0 print_probe_list:504 Probe list: 2 elements
D/TC:0 0 print_probe_list:506 |- Driver stm32-gpu probes on node gpu@48280000
D/TC:0 0 print_probe_list:506 |- Driver stm32-cpu probes on node cpu@0
D/TC:0 0 print_probe_list:510 `- Probe list end
D/TC:0 0 print_probe_list:516 Failed list: 0 elements
D/TC:0 0 print_probe_list:521 `- Failed list end
F/TC:0 0 probe_driver_node:543 Probing stm32-cpu on node cpu@0
D/TC:0 0 probe_driver_node:556 element: stm32-cpu on node cpu@0 deferred 1 time(s)
F/TC:0 0 probe_driver_node:543 Probing stm32-gpu on node gpu@48280000
D/TC:0 0 probe_driver_node:556 element: stm32-gpu on node gpu@48280000 deferred 4 time(s)
D/TC:0 0 process_probe_list:697 Unresolved dependencies after 6 rounds, 5 deferred
E/TC:0 0 probe_dt_drivers:902 Probe sequence result: 0x80000000
D/TC:0 0 print_probe_list:504 Probe list: 2 elements
D/TC:0 0 print_probe_list:506 |- Driver stm32-cpu probes on node cpu@0
D/TC:0 0 print_probe_list:506 |- Driver stm32-gpu probes on node gpu@48280000
D/TC:0 0 print_probe_list:510 `- Probe list end
D/TC:0 0 print_probe_list:516 Failed list: 0 elements
D/TC:0 0 print_probe_list:521 `- Failed list end
E/TC:0 0 Panic at /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r2/core/kernel/dt_driver.c:904 <probe_dt_drivers>
E/TC:0 0 TEE load address @ 0x82000000
E/TC:0 0 Call stack:
E/TC:0 0  0x82008140
E/TC:0 0  0x82046c74
E/TC:0 0  0x82042ca0
E/TC:0 0  0x82048980
E/TC:0 0  0x82007bac
E/TC:0 0  0x82007f44

 

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-Computer

STM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
0 REPLIES 0