cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP2 disable CPU_IDLE on Linux

Aiyps
Associate II

 

Hi,
I am debugging the STM32MP257F-EV1 board with a debugger via JTAG/SWD. T
he kernel version is 6.1.82.

To provide complete debug access and to prevent the JTAG/SWD from shutting down when the CPU is idle, I think [CONFIG_CPU_IDLE] has to be disabled. But, boot messages from the kernel stop midway after [CONFIG_CPU_IDLE]  is disabled.
I have confirmed that the CPU is still executing through the debugger, but the terminal/prompt is not available.

Upon checking. I found that
[CONFIG_ARM_PSCI_CPUIDLE] may be the issue. When [CONFIG_CPU_IDLE] is disabled, [CONFIG_ARM_PSCI_CPUIDLE] is automatically disabled as well.
Since various devices use the PSCI driver, I think disabling [CONFIG_ARM_PSCI_CPUIDLE] will render some peripherals in non-usable state. Please see the attached log file "Boot-message.log" for the kernel boot messages.

In this context, I have  the following questions:
1. Is there a way to disable
CONFIG_ARM_PSCI_CPUIDLE or CONFIG_CPU_IDLE and get the board to work normally?
2. Are there any settings that'll keep the
JTAG/SWD enabled always (always accessible)?

The default kernel config file [Kernel-default.config.txt] is attached for reference.
The kernel config that doesn't work is [Kernel-NG.config.txt].

I would appreciate any help. Thank you

 

0 REPLIES 0