Files
2025-10-14 09:52:32 +09:00

21 lines
1.2 KiB
Bash

#!/bin/sh
################################################################################
# #
# This script is an example how the cpu idle can be disabled. This might be #
# required to debug the CPU. Make sure that the script is executed when the #
# kernel console first comes up. #
# #
# NOTE: The ABI that is used here might change in the future. #
# This script is provided as is without any warranty #
# #
################################################################################
# Disable low power modes to ensure debug register accessiblity
echo 0 > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable
echo 1 > /sys/kernel/debug/cpuidle_t210/fast_cluster_states_enable
echo 1 > /sys/kernel/debug/cpuidle_t210/slow_cluster_states_enable
# Start the CoreSight clock, e.g. to enable trace components
echo 1 > /sys/kernel/debug/clock/csite/state