ERROR: Can't get value of subfeature curr4_crit: Can't read

Hi, NV team,
I found this error log in AGX Orin devkit, which related to ina3221. I notice there are two files in /sys/class/hwmon named curr4_crit. But hwmon3/curr4_crit has value while hwmon4/curr4_crit has no value. I want to konw the reason and effects of this error log. Thank you in advance.

$ /sys/class/hwmon# cat hwmon3/curr4_crit
cat: hwmon3/curr4_crit: No data available
$ /sys/class/hwmon# cat hwmon2/curr4_crit
3780
$ /sys/class/hwmon# cat hwmon2/name
ina3221
$ /sys/class/hwmon# cat hwmon3/name
ina3221
$ grep curr4_crit /var/log/syslog
sensors[796]: ERROR: Can't get value of subfeature curr4_crit: Can't read

Hi fa1053,

What’s your Jetpack version in use?

Please share the result of the following command on your board.

ls -l /sys/class/hwmon/

You could also find more details for INA3221 of AGX Orin in Jetson Orin Nano Series, Jetson Orin NX Series and Jetson AGX Orin Series — Jetson Linux Developer Guide documentation (nvidia.com).

Hi, KevinFFF,
I use JP5.1.2. And here are the commond’s results:

$ cat /etc/nv_tegra_release
# R35 (release), REVISION: 4.1, GCID: 33958178, BOARD: t186ref, EABI: aarch64, DATE: Tue Aug  1 19:57:35 UTC 2023
$ ls -l /sys/class/hwmon/
total 0
lrwxrwxrwx 1 root root 0 Mar 15 15:04 hwmon0 -> ../../devices/platform/39c0000.tachometer/hwmon/hwmon0
lrwxrwxrwx 1 root root 0 Mar 15 15:04 hwmon1 -> ../../devices/platform/soctherm-oc-event/hwmon/hwmon1
lrwxrwxrwx 1 root root 0 Mar 15 15:04 hwmon2 -> ../../devices/platform/pwm-fan/hwmon/hwmon2
lrwxrwxrwx 1 root root 0 Mar 15 15:04 hwmon3 -> ../../devices/platform/c240000.i2c/i2c-1/1-0040/hwmon/hwmon3
lrwxrwxrwx 1 root root 0 Mar 15 15:04 hwmon4 -> ../../devices/platform/c240000.i2c/i2c-1/1-0041/hwmon/hwmon4
lrwxrwxrwx 1 root root 0 Mar 15 15:04 hwmon5 -> ../../devices/platform/c240000.i2c/i2c-1/1-0008/power_supply/ucsi-source-psy-1-00081/hwmon5
lrwxrwxrwx 1 root root 0 Mar 15 15:04 hwmon6 -> ../../devices/platform/c240000.i2c/i2c-1/1-0008/power_supply/ucsi-source-psy-1-00082/hwmon6
lrwxrwxrwx 1 root root 0 Mar 15 15:04 hwmon7 -> ../../devices/platform/6810000.ethernet/mdio_bus/6810000.ethernet/6810000.ethernet:00/hwmon/hwmon7
$ nvpmodel -q
NV Power Mode: MODE_30W
2

I’m so curious about why it reports ina3221 rather than pwmfan here.
It seems hwmon3 and hwmon4 are for ina3221.

Hi, KevinFFF,
Sorry, you’re right.

$ cat /sys/class/hwmon/hwmon2/name
pwmfan
$ cat /sys/class/hwmon/hwmon3/name
ina3221
$ cat /sys/class/hwmon/hwmon4/name
ina3221
$ cat /sys/class/hwmon/hwmon4/curr4_crit
cat: /sys/class/hwmon/hwmon4/curr4_crit: No data available
$ cat /sys/class/hwmon/hwmon4/curr1_crit
16380
$ cat /sys/class/hwmon/hwmon4/curr2_crit
81900
$ cat /sys/class/hwmon/hwmon4/curr3_crit
16380
$ cat /sys/class/hwmon/hwmon4/curr4_crit
cat: /sys/class/hwmon/hwmon4/curr4_crit: No data available
$ cat /sys/class/hwmon/hwmon3/curr1_crit
81900
$ cat /sys/class/hwmon/hwmon3/curr2_crit
81900
$ cat /sys/class/hwmon/hwmon3/curr4_crit
2360
$ cat /sys/class/hwmon/hwmon3/curr3_crit
81900

hwmon3/curr4_crit has a value, but hwmon4/curr4_crit has no value.

You could just use the following command to dump this.

# grep "" /sys/class/hwmon/hwmon*/curr*_crit

Please just refer to the link I shared. There’s no Channel 4 for 0x41 so that your result is expected.

Thank you for your guidance.

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