However when we try to switch the Power Model we get the following error (the same happens for mode 0 (MAXN)):
root@8f87931:~# nvpmodel -m 3
NVPM ERROR: Error writing 0 to /sys/devices/gpu.0/tpc_pg_mask: 19
NVPM WARN: Reboot required for changing to this power mode: 3
NVPM WARN: DO YOU WANT TO REBOOT NOW? enter YES/yes to confirm:
The changes are not applied in /sys/devices/gpu.0/tpc_pg_mask so the previously selected Power Model will not be used after reboot.
root@8f87931:~# ls -lah /sys/devices/gpu.0/tpc_pg_mask
-rwxr--r-- 1 root root 4.0K Feb 28 03:00 /sys/devices/gpu.0/tpc_pg_mask
root@8f87931:~# cat /sys/devices/gpu.0/tpc_pg_mask
240
Is there a way to make this change as post boot configuration change? For Xavier NX the max mode is 8 and Orin AGX and Orin NX it is 3 so need to add some logic to set this properly based on build or device time boot.