[Jetson Xavier]How to bring up the 8 CPUs online?

Hi,
I have a xavier. It’s only 4 CPUs online .
I down’t know how to bring up the 4~7 CPUs .

Here is the dmsg

~$ sudo dmesg  |grep CPU 
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Boot CPU: AArch64 Processor [4e0f0040]
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[    0.000000] 	RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=8.
[    0.529560] Tegra Revision: A02 SKU: 0xd0 CPU Process: 0 SoC Process: 0
[    0.577132] CPU1: Booted secondary processor [4e0f0040]
[    0.609197] CPU2: Booted secondary processor [4e0f0040]
[    0.641338] CPU3: Booted secondary processor [4e0f0040]
[    0.673554] CPU4: Booted secondary processor [4e0f0040]
[    0.705802] CPU5: Booted secondary processor [4e0f0040]
[    0.738193] CPU6: Booted secondary processor [4e0f0040]
[    0.770477] CPU7: Booted secondary processor [4e0f0040]
[    0.772611] Brought up 8 CPUs
[    0.773192] CPU features: detected feature: Privileged Access Never
[    0.773225] CPU features: detected feature: LSE atomic instructions
[    0.773254] CPU features: detected feature: User Access Override
[    0.773286] CPU features: detected feature: 32-bit EL0 Support
[    0.778330] CPU: All CPU(s) started at EL2
[    1.275203] thermal thermal_zone0: Registering thermal zone thermal_zone0 for type CPU-therm
[   15.581004] tegra186-cam-rtcpu bc00000.rtcpu: RTCPU coverage: IOVM setup error : 4294967291
[   15.614902] tegra186-cam-rtcpu bc00000.rtcpu: (expected if RTCPU was not built with coverage enabled)
[   15.989166] tegra186-cam-rtcpu bc00000.rtcpu: using cam RTCPU IRQ (69)
[   30.146347] CPU4: shutdown
[   30.182962] psci: CPU4 killed.
[   30.226511] CPU5: shutdown
[   30.243305] psci: CPU5 killed.
[   30.287113] CPU6: shutdown
[   30.321205] psci: CPU6 killed.
[   30.374242] CPU7: shutdown
[   30.374364] psci: CPU7 killed.
sudo ./jetson_clocks.sh --show
SOC family:tegra194  Machine:jetson-xavier
Online CPUs: 0-3
CPU Cluster Switching: Disabled
cpu0: Gonvernor=schedutil MinFreq=1190400 MaxFreq=1190400 CurrentFreq=1190400
cpu1: Gonvernor=schedutil MinFreq=1190400 MaxFreq=1190400 CurrentFreq=1190400
cpu2: Gonvernor=schedutil MinFreq=1190400 MaxFreq=1190400 CurrentFreq=1190400
cpu3: Gonvernor=schedutil MinFreq=1190400 MaxFreq=1190400 CurrentFreq=1190400
cpu4: Gonvernor=schedutil MinFreq=115200 MaxFreq=2265600 CurrentFreq=2265600
cpu5: Gonvernor=schedutil MinFreq=115200 MaxFreq=2265600 CurrentFreq=2265600
cpu6: Gonvernor=schedutil MinFreq=115200 MaxFreq=2265600 CurrentFreq=2265600
cpu7: Gonvernor=schedutil MinFreq=115200 MaxFreq=2265600 CurrentFreq=2265600
GPU MinFreq=114750000 MaxFreq=675750000 CurrentFreq=114750000
EMC MinFreq=204000000 MaxFreq=1331200000 CurrentFreq=665600000 FreqOverride=0
Fan: speed=0

Hi,
I found the command to set the power model.

Hi winds_wf,

Besides the master CPU, all other CPUs on the Xavier can be turned on and off.

To turn on a CPU:

CPU=cpu1 #The number can be changed from 1-7
echo 1 > /sys/devices/system/cpu/$CPU/online

To turn off a CPU:

echo 0 > /sys/devices/system/cpu/$CPU/online

To check CPU state:

cat /sys/devices/system/cpu/$CPU/online

Additionally you can also manually change CPU, GPU and memory frequency. All these commands are detailed on our wiki page: https://developer.ridgerun.com/wiki/index.php?title=Xavier/JetPack_4.1/Performance_Tuning/Set_Values_Manually

do you execute nvpmodel -m 0 before executing jetsonclocks?

sudo nvpmodel -m 0
[sudo] password for nvidia: 
Sorry, try again.
[sudo] password for nvidia: 
nvidia@nvidia-desktop:~$ sudo ./jetson_clocks.sh --show
sudo: ./jetson_clocks.sh: command not found
nvidia@nvidia-desktop:~$ sudo jetson_clocks --show
SOC family:tegra194  Machine:jetson-xavier
Online CPUs: 0-7
CPU Cluster Switching: Disabled
cpu0: Online=1 Governor=schedutil MinFreq=1190400 MaxFreq=2265600 CurrentFreq=1190400 IdleStates: C1=0 c6=0 
cpu1: Online=1 Governor=schedutil MinFreq=1190400 MaxFreq=2265600 CurrentFreq=1497600 IdleStates: C1=0 c6=0 
cpu2: Online=1 Governor=schedutil MinFreq=1190400 MaxFreq=2265600 CurrentFreq=1190400 IdleStates: C1=0 c6=0 
cpu3: Online=1 Governor=schedutil MinFreq=1190400 MaxFreq=2265600 CurrentFreq=1190400 IdleStates: C1=0 c6=0 
cpu4: Online=1 Governor=schedutil MinFreq=1190400 MaxFreq=2265600 CurrentFreq=1190400 IdleStates: C1=0 c6=0 
cpu5: Online=1 Governor=schedutil MinFreq=1190400 MaxFreq=2265600 CurrentFreq=1190400 IdleStates: C1=0 c6=0 
cpu6: Online=1 Governor=schedutil MinFreq=1190400 MaxFreq=2265600 CurrentFreq=1420800 IdleStates: C1=0 c6=0 
cpu7: Online=1 Governor=schedutil MinFreq=1190400 MaxFreq=2265600 CurrentFreq=1190400 IdleStates: C1=0 c6=0 
GPU MinFreq=318750000 MaxFreq=1377000000 CurrentFreq=318750000
EMC MinFreq=204000000 MaxFreq=2133000000 CurrentFreq=2133000000 FreqOverride=1
Fan: speed=255
NV Power Mode: MAXN