AGX Orin: nvphs: Initialization Failed! Entering Zombie mode

Getting error from Argus:

Jun 21 10:15:53 orin nvargus-daemon[2653]: E/ libnvphs:socket: Error[2]: socket connection /var/lib/nvphs/nvphsd.ctl to PHS failed: No such file or directory
Jun 21 10:15:53 orin nvargus-daemon[2653]: D/ libnvphs:socket: Warning: connecting to Power Hinting Service failed. Is PHS running?
Jun 21 10:15:53 orin nvargus-daemon[2653]: E/ libnvphs:socket: Error[2]: socket connection /var/lib/nvphs/nvphsd.ctl to PHS failed: No such file or directory
Jun 21 10:15:53 orin nvargus-daemon[2653]: D/ libnvphs:socket: Warning: connecting to Power Hinting Service failed. Is PHS running?
Jun 21 10:15:53 orin nvargus-daemon[2653]: E/ libnvphs: Error: NvPHSSendThroughputHints[usecase=camera, hint=MinCPU, value=4294967295, timeout_ms=1000]: queue_or_send() failed

It turns out nvphs is dead:

root@orin:/tmp# systemctl status nvphs
● nvphs.service - PHS daemon
     Loaded: loaded (/etc/systemd/system/nvphs.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2023-06-21 11:04:42 PDT; 17s ago
    Process: 3216 ExecStartPre=/usr/sbin/nvphsd_setup.sh (code=exited, status=0/SUCCESS)
   Main PID: 3337 (nvphsd)
      Tasks: 2 (limit: 36321)
     Memory: 572.0K
     CGroup: /system.slice/nvphs.service
             ├─3337 /usr/sbin/nvphsd
             └─3338 /usr/sbin/nvphsd

Jun 21 11:04:42 orin systemd[1]: Starting PHS daemon...
Jun 21 11:04:42 orin systemd[1]: Started PHS daemon.
Jun 21 11:04:42 orin phs[3338]: E/ nvphs: Failed to initialize sysfs readers. Exiting.
Jun 21 11:04:42 orin phs[3338]: E/ nvphs: Initialization Failed! Entering Zombie mode
root@orin:/tmp#

hello Agtonomy,

may I know which JetPack release you’re working with, had you apply any binary update?
also, please share your reproduce step in details for reference.

It happens in all Jetpack 5.x releases. Just confirmed it it also happens in 5.1.1:

root@orin:~# apt show nvidia-l4t-core
Package: nvidia-l4t-core
Version: 35.3.1-20230319081403
Status: install ok installed
Priority: standard
Section: libs
Maintainer: NVIDIA Corporation
Installed-Size: 17.3 MB
Depends: libc6, libegl1, libexpat1, libgcc1, libstdc++6
Conflicts: nvidia-l4t-ccp-t186ref
Replaces: nvidia-l4t-ccp-t186ref
Homepage: http://developer.nvidia.com/jetson
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: NVIDIA Core Package

root@orin:~# journalctl -eu nvphs
-- Logs begin at Wed 2023-03-15 08:04:15 PDT, end at Sat 2023-07-01 23:17:26 PDT. --
Jul 01 22:45:37 orin systemd[1]: Starting PHS daemon...
Jul 01 22:45:37 orin systemd[1]: Started PHS daemon.
Jul 01 22:45:37 orin phs[831]: E/ nvphs: Failed to initialize sysfs readers. Exiting.
Jul 01 22:45:37 orin phs[831]: E/ nvphs: Initialization Failed! Entering Zombie mode
root@orin:~#

hello Agtonomy,

is this related to nvphs cannot access GPU devfreq sysfs, or thermal zones?
please look into nvphsd_setup.sh, could you please check which sysnode is unavailable to report this error message… Failed to initialize sysfs readers.

Thermal zones 8, 9, and 10 don’t have trip_point_* fields. Other than that it looks ok.

root@orin:~# journalctl -eu nvphs
-- Logs begin at Wed 2023-03-15 08:04:15 PDT, end at Mon 2023-07-03 21:40:27 PDT. --
Jul 03 21:39:09 orin systemd[1]: Starting PHS daemon...
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + set -e
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + set -E
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + trap 'set -o | egrep -q "^errexit[[:space:]]+on" && \
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: echo "*** ERROR:${BASH_SOURCE}:${BASH_LINENO}: \
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: script aborting due to failing exit status from: \"${BASH_COMMAND}\""' ERR
Jul 03 21:39:09 orin nvphsd_setup.sh[681]: ++ id -u
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + '[' 0 == 0 ']'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + '[' -w /sys/devices/gpu.0/power/control ']'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + echo on
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + phsuser=root
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/sbin
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + mkdir -p /run/nvphs/properties
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0775 /run/nvphs /run/nvphs/properties
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /run/nvphs /run/nvphs/properties
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + mkdir -p /var/lib/nvphs
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0775 /var/lib/nvphs
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /var/lib/nvphs
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + set +e
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + for tz in /sys/class/thermal/thermal_zone*
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + '[' -e /sys/class/thermal/thermal_zone0 ']'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone0/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone0/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone0/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone0/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone0/trip_point_0_temp /sys/class/thermal/thermal_zone0/trip_point_1_temp /sys/class/thermal/thermal_zone0/trip_point_2_temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 /sys/class/thermal/thermal_zone0/trip_point_0_temp /sys/class/thermal/thermal_zone0/trip_point_1_temp /sys/class/thermal/thermal_zone0/trip_point_2_temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone0/trip_point_0_hyst /sys/class/thermal/thermal_zone0/trip_point_1_hyst /sys/class/thermal/thermal_zone0/trip_point_2_hyst
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 /sys/class/thermal/thermal_zone0/trip_point_0_hyst /sys/class/thermal/thermal_zone0/trip_point_1_hyst /sys/class/thermal/thermal_zone0/trip_point_2_hyst
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + for tz in /sys/class/thermal/thermal_zone*
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + '[' -e /sys/class/thermal/thermal_zone1 ']'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone1/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone1/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone1/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone1/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone1/trip_point_0_temp /sys/class/thermal/thermal_zone1/trip_point_1_temp /sys/class/thermal/thermal_zone1/trip_point_2_temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 /sys/class/thermal/thermal_zone1/trip_point_0_temp /sys/class/thermal/thermal_zone1/trip_point_1_temp /sys/class/thermal/thermal_zone1/trip_point_2_temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone1/trip_point_0_hyst /sys/class/thermal/thermal_zone1/trip_point_1_hyst /sys/class/thermal/thermal_zone1/trip_point_2_hyst
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 /sys/class/thermal/thermal_zone1/trip_point_0_hyst /sys/class/thermal/thermal_zone1/trip_point_1_hyst /sys/class/thermal/thermal_zone1/trip_point_2_hyst
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + for tz in /sys/class/thermal/thermal_zone*
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + '[' -e /sys/class/thermal/thermal_zone10 ']'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone10/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone10/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone10/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone10/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root '/sys/class/thermal/thermal_zone10/trip_point_*_temp'
Jul 03 21:39:09 orin nvphsd_setup.sh[735]: ++ set -o
Jul 03 21:39:09 orin nvphsd_setup.sh[736]: ++ egrep -q '^errexit[[:space:]]+on'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 '/sys/class/thermal/thermal_zone10/trip_point_*_temp'
Jul 03 21:39:09 orin nvphsd_setup.sh[740]: ++ set -o
Jul 03 21:39:09 orin nvphsd_setup.sh[741]: ++ egrep -q '^errexit[[:space:]]+on'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root '/sys/class/thermal/thermal_zone10/trip_point_*_hyst'
Jul 03 21:39:09 orin nvphsd_setup.sh[743]: ++ set -o
Jul 03 21:39:09 orin nvphsd_setup.sh[744]: ++ egrep -q '^errexit[[:space:]]+on'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 '/sys/class/thermal/thermal_zone10/trip_point_*_hyst'
Jul 03 21:39:09 orin nvphsd_setup.sh[746]: ++ set -o
Jul 03 21:39:09 orin nvphsd_setup.sh[747]: ++ egrep -q '^errexit[[:space:]]+on'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + for tz in /sys/class/thermal/thermal_zone*
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + '[' -e /sys/class/thermal/thermal_zone2 ']'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone2/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone2/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone2/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone2/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone2/trip_point_0_temp /sys/class/thermal/thermal_zone2/trip_point_1_temp /sys/class/thermal/thermal_zone2/trip_point_2_temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 /sys/class/thermal/thermal_zone2/trip_point_0_temp /sys/class/thermal/thermal_zone2/trip_point_1_temp /sys/class/thermal/thermal_zone2/trip_point_2_temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone2/trip_point_0_hyst /sys/class/thermal/thermal_zone2/trip_point_1_hyst /sys/class/thermal/thermal_zone2/trip_point_2_hyst
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 /sys/class/thermal/thermal_zone2/trip_point_0_hyst /sys/class/thermal/thermal_zone2/trip_point_1_hyst /sys/class/thermal/thermal_zone2/trip_point_2_hyst
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + for tz in /sys/class/thermal/thermal_zone*
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + '[' -e /sys/class/thermal/thermal_zone3 ']'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone3/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone3/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone3/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone3/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone3/trip_point_0_temp /sys/class/thermal/thermal_zone3/trip_point_1_temp /sys/class/thermal/thermal_zone3/trip_point_2_temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 /sys/class/thermal/thermal_zone3/trip_point_0_temp /sys/class/thermal/thermal_zone3/trip_point_1_temp /sys/class/thermal/thermal_zone3/trip_point_2_temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone3/trip_point_0_hyst /sys/class/thermal/thermal_zone3/trip_point_1_hyst /sys/class/thermal/thermal_zone3/trip_point_2_hyst
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 /sys/class/thermal/thermal_zone3/trip_point_0_hyst /sys/class/thermal/thermal_zone3/trip_point_1_hyst /sys/class/thermal/thermal_zone3/trip_point_2_hyst
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + for tz in /sys/class/thermal/thermal_zone*
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + '[' -e /sys/class/thermal/thermal_zone4 ']'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone4/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone4/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone4/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone4/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone4/trip_point_0_temp /sys/class/thermal/thermal_zone4/trip_point_1_temp /sys/class/thermal/thermal_zone4/trip_point_2_temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 /sys/class/thermal/thermal_zone4/trip_point_0_temp /sys/class/thermal/thermal_zone4/trip_point_1_temp /sys/class/thermal/thermal_zone4/trip_point_2_temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone4/trip_point_0_hyst /sys/class/thermal/thermal_zone4/trip_point_1_hyst /sys/class/thermal/thermal_zone4/trip_point_2_hyst
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 /sys/class/thermal/thermal_zone4/trip_point_0_hyst /sys/class/thermal/thermal_zone4/trip_point_1_hyst /sys/class/thermal/thermal_zone4/trip_point_2_hyst
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + for tz in /sys/class/thermal/thermal_zone*
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + '[' -e /sys/class/thermal/thermal_zone5 ']'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone5/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone5/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone5/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone5/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone5/trip_point_0_temp /sys/class/thermal/thermal_zone5/trip_point_1_temp /sys/class/thermal/thermal_zone5/trip_point_2_temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 /sys/class/thermal/thermal_zone5/trip_point_0_temp /sys/class/thermal/thermal_zone5/trip_point_1_temp /sys/class/thermal/thermal_zone5/trip_point_2_temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone5/trip_point_0_hyst /sys/class/thermal/thermal_zone5/trip_point_1_hyst /sys/class/thermal/thermal_zone5/trip_point_2_hyst
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 /sys/class/thermal/thermal_zone5/trip_point_0_hyst /sys/class/thermal/thermal_zone5/trip_point_1_hyst /sys/class/thermal/thermal_zone5/trip_point_2_hyst
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + for tz in /sys/class/thermal/thermal_zone*
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + '[' -e /sys/class/thermal/thermal_zone6 ']'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone6/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone6/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone6/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone6/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone6/trip_point_0_temp /sys/class/thermal/thermal_zone6/trip_point_1_temp /sys/class/thermal/thermal_zone6/trip_point_2_temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 /sys/class/thermal/thermal_zone6/trip_point_0_temp /sys/class/thermal/thermal_zone6/trip_point_1_temp /sys/class/thermal/thermal_zone6/trip_point_2_temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone6/trip_point_0_hyst /sys/class/thermal/thermal_zone6/trip_point_1_hyst /sys/class/thermal/thermal_zone6/trip_point_2_hyst
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 /sys/class/thermal/thermal_zone6/trip_point_0_hyst /sys/class/thermal/thermal_zone6/trip_point_1_hyst /sys/class/thermal/thermal_zone6/trip_point_2_hyst
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + for tz in /sys/class/thermal/thermal_zone*
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + '[' -e /sys/class/thermal/thermal_zone7 ']'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone7/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone7/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone7/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone7/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone7/trip_point_0_temp /sys/class/thermal/thermal_zone7/trip_point_1_temp /sys/class/thermal/thermal_zone7/trip_point_2_temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 /sys/class/thermal/thermal_zone7/trip_point_0_temp /sys/class/thermal/thermal_zone7/trip_point_1_temp /sys/class/thermal/thermal_zone7/trip_point_2_temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone7/trip_point_0_hyst /sys/class/thermal/thermal_zone7/trip_point_1_hyst /sys/class/thermal/thermal_zone7/trip_point_2_hyst
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 /sys/class/thermal/thermal_zone7/trip_point_0_hyst /sys/class/thermal/thermal_zone7/trip_point_1_hyst /sys/class/thermal/thermal_zone7/trip_point_2_hyst
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + for tz in /sys/class/thermal/thermal_zone*
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + '[' -e /sys/class/thermal/thermal_zone8 ']'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone8/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone8/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone8/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone8/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root '/sys/class/thermal/thermal_zone8/trip_point_*_temp'
Jul 03 21:39:09 orin nvphsd_setup.sh[803]: ++ set -o
Jul 03 21:39:09 orin nvphsd_setup.sh[804]: ++ egrep -q '^errexit[[:space:]]+on'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 '/sys/class/thermal/thermal_zone8/trip_point_*_temp'
Jul 03 21:39:09 orin nvphsd_setup.sh[807]: ++ egrep -q '^errexit[[:space:]]+on'
Jul 03 21:39:09 orin nvphsd_setup.sh[806]: ++ set -o
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root '/sys/class/thermal/thermal_zone8/trip_point_*_hyst'
Jul 03 21:39:09 orin nvphsd_setup.sh[809]: ++ set -o
Jul 03 21:39:09 orin nvphsd_setup.sh[810]: ++ egrep -q '^errexit[[:space:]]+on'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 '/sys/class/thermal/thermal_zone8/trip_point_*_hyst'
Jul 03 21:39:09 orin nvphsd_setup.sh[813]: ++ egrep -q '^errexit[[:space:]]+on'
Jul 03 21:39:09 orin nvphsd_setup.sh[812]: ++ set -o
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + for tz in /sys/class/thermal/thermal_zone*
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + '[' -e /sys/class/thermal/thermal_zone9 ']'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone9/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone9/type
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root /sys/class/thermal/thermal_zone9/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0444 /sys/class/thermal/thermal_zone9/temp
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root '/sys/class/thermal/thermal_zone9/trip_point_*_temp'
Jul 03 21:39:09 orin nvphsd_setup.sh[822]: ++ egrep -q '^errexit[[:space:]]+on'
Jul 03 21:39:09 orin nvphsd_setup.sh[821]: ++ set -o
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 '/sys/class/thermal/thermal_zone9/trip_point_*_temp'
Jul 03 21:39:09 orin nvphsd_setup.sh[825]: ++ egrep -q '^errexit[[:space:]]+on'
Jul 03 21:39:09 orin nvphsd_setup.sh[824]: ++ set -o
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chown root '/sys/class/thermal/thermal_zone9/trip_point_*_hyst'
Jul 03 21:39:09 orin nvphsd_setup.sh[827]: ++ set -o
Jul 03 21:39:09 orin nvphsd_setup.sh[828]: ++ egrep -q '^errexit[[:space:]]+on'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + chmod 0664 '/sys/class/thermal/thermal_zone9/trip_point_*_hyst'
Jul 03 21:39:09 orin nvphsd_setup.sh[830]: ++ set -o
Jul 03 21:39:09 orin nvphsd_setup.sh[831]: ++ egrep -q '^errexit[[:space:]]+on'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + '[' -w /sys/devices/gpu.0/power/control ']'
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + echo auto
Jul 03 21:39:09 orin nvphsd_setup.sh[674]: + set -e
Jul 03 21:39:09 orin systemd[1]: Started PHS daemon.
Jul 03 21:39:09 orin phs[836]: E/ nvphs: Failed to initialize sysfs readers. Exiting.
Jul 03 21:39:09 orin phs[836]: E/ nvphs: Initialization Failed! Entering Zombie mode
root@orin:~#

hello Agtonomy,

FYI, PHS is deprecated.
it should be disabled (not yet done at the moment) for the rel-35 code-line.

it should be no side effect as PHS has not supported it from the start, there should not be any performance drops.

Apparently nnvargus depends on on nvphs. I disabled the latter and run a simple gstreamer command. I still get the nvphs and a few others. I ran

gst-launch-1.0 nvarguscamerasrc sensor-id=0 num-buffers=10 ! "video/x-raw(memory:NVMM), format=(string)NV12, width=(int)1920, height=(int)1200, framerate=10/1" ! nvvidconv ! nvjpegenc ! fakesink 

and get this:

Jul 04 13:49:33 orin nvargus-daemon[1138]: === NVIDIA Libargus Camera Service (0.99.33)=== Listening for connections...=== gst-launch-1.0[1608]: Connection established (FFFF804F4900)OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
Jul 04 13:49:33 orin nvargus-daemon[1138]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module1
Jul 04 13:49:33 orin nvargus-daemon[1138]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module2
Jul 04 13:49:33 orin nvargus-daemon[1138]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module3
Jul 04 13:49:33 orin nvargus-daemon[1138]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
Jul 04 13:49:33 orin nvargus-daemon[1138]: NvPclHwGetModuleList: No module data found
Jul 04 13:49:33 orin nvargus-daemon[1138]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
Jul 04 13:49:33 orin nvargus-daemon[1138]: NvPclHwGetModuleList: No module data found
Jul 04 13:49:33 orin nvargus-daemon[1138]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
Jul 04 13:49:33 orin nvargus-daemon[1138]: NvPclHwGetModuleList: No module data found
Jul 04 13:49:33 orin nvargus-daemon[1138]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
Jul 04 13:49:33 orin nvargus-daemon[1138]: NvPclHwGetModuleList: No module data found
Jul 04 13:49:33 orin nvargus-daemon[1138]: OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
Jul 04 13:49:33 orin nvargus-daemon[1138]: ---- imager: Found override file [/var/nvidia/nvcam/settings/camera_overrides.isp]. ----
Jul 04 13:49:33 orin nvargus-daemon[1138]: CAM: serial no file already exists, skips storing again---- imager: Found override file [/var/nvidia/nvcam/settings/camera_overrides.isp]. ----
Jul 04 13:49:33 orin nvargus-daemon[1138]: CAM: serial no file already exists, skips storing again---- imager: Found override file [/var/nvidia/nvcam/settings/camera_overrides.isp]. ----
Jul 04 13:49:33 orin nvargus-daemon[1138]: CAM: serial no file already exists, skips storing again---- imager: Found override file [/var/nvidia/nvcam/settings/camera_overrides.isp]. ----
Jul 04 13:49:33 orin nvargus-daemon[1138]: E/ libnvphs:socket: Error[2]: socket connection /var/lib/nvphs/nvphsd.ctl to PHS failed: No such file or directory
Jul 04 13:49:33 orin nvargus-daemon[1138]: D/ libnvphs:socket: Warning: connecting to Power Hinting Service failed. Is PHS running?
Jul 04 13:49:33 orin nvargus-daemon[1138]: CAM: serial no file already exists, skips storing again=== gst-launch-1.0[1608]: CameraProvider initialized (0xffff78b5ec50)SCF: Error BadValue: NvPHSSendThroughputHints (in src/common/CameraPowerHint.cpp, function sendCameraPowerHint(), line 56)
Jul 04 13:49:33 orin nvargus-daemon[1138]: E/ libnvphs:socket: Error[2]: socket connection /var/lib/nvphs/nvphsd.ctl to PHS failed: No such file or directory
Jul 04 13:49:33 orin nvargus-daemon[1138]: D/ libnvphs:socket: Warning: connecting to Power Hinting Service failed. Is PHS running?
Jul 04 13:49:33 orin nvargus-daemon[1138]: E/ libnvphs: Error: NvPHSSendThroughputHints[usecase=camera, hint=MinCPU, value=4294967295, timeout_ms=1000]: queue_or_send() failed
Jul 04 13:49:33 orin systemd-udevd[1658]: nvidia_modeset: Process '/bin/mknod -m 666 /dev/nvidia-modeset c 195 254' failed with exit code 1.
Jul 04 13:49:33 orin kernel: nvidia-modeset: Loading NVIDIA UNIX Open Kernel Mode Setting Driver for aarch64  35.3.1  Release Build  (buildbrain@mobile-u64-6289-d7000)  Sun Mar 19 08:09:35 PDT 2023
Jul 04 13:49:33 orin kernel: NVRM rpcRmApiControl_dce: NVRM_RPC_DCE: Failed RM ctrl call cmd:0x2080013f result 0x56:
Jul 04 13:49:33 orin kernel: NVRM rpcRmApiControl_dce: NVRM_RPC_DCE: Failed RM ctrl call cmd:0x2080017e result 0x56:
Jul 04 13:49:33 orin kernel: NVRM rpcRmApiControl_dce: NVRM_RPC_DCE: Failed RM ctrl call cmd:0x2080014a result 0x56:
Jul 04 13:49:33 orin kernel: NVRM rpcRmApiControl_dce: NVRM_RPC_DCE: Failed RM ctrl call cmd:0x731341 result 0xffff:
Jul 04 13:49:33 orin kernel: NVRM rpcRmApiControl_dce: NVRM_RPC_DCE: Failed RM ctrl call cmd:0x730190 result 0x56:
Jul 04 13:49:33 orin kernel: ar0234 30-0018: ar0234_power_on: power on
Jul 04 13:49:33 orin kernel: bwmgr API not supported
Jul 04 13:49:33 orin kernel: ar0234 30-0018: ar0234_write_table: channel 0,
Jul 04 13:49:33 orin kernel: ar0234 30-0018: ar0234_set_mode: mode index:0
Jul 04 13:49:33 orin kernel: ar0234 30-0018: ar0234_write_table: channel 0,
Jul 04 13:49:34 orin kernel: ar0234 30-0018: ar0234_write_table: sleep 500
Jul 04 13:49:34 orin kernel: ar0234 30-0018: ar0234_write_table: sleep 500
Jul 04 13:49:34 orin kernel: ar0234 30-0018: ar0234_write_table: channel 0,
Jul 04 13:49:34 orin kernel: bwmgr API not supported
Jul 04 13:49:35 orin kernel: bwmgr API not supported
Jul 04 13:49:35 orin kernel: ar0234 30-0018: ar0234_write_table: channel 0,
Jul 04 13:49:35 orin kernel: bwmgr API not supported
Jul 04 13:49:35 orin kernel: ar0234 30-0018: ar0234_power_off:
Jul 04 13:49:40 orin nvargus-daemon[1138]: CAM: serial no file already exists, skips storing againPowerServiceCore:handleRequests: timePassed = 5012

hello Agtonomy,

ya… that service has not yet disable since there’re dependencies in camera on PHS.
what’s the additional environment settings you’ve configured? I’ve testing camera use-case and don’t see those PHS logs locally.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.