System-power-measurement

there is no INA238 i2c device in Thor devkit.

image

  • INA3221: /sys/bus/i2c/devices/2-0040/hwmon/hwmon*/

  • INA238: /sys/bus/i2c/devices/2-0044/hwmon/hwmon*/

What does it means of oc3_event_cnt? Does it include below three situation.

Average VDD_GPU power: 100 watts
Instantaneous VDD_GPU power: 120 watts

Instantaneous (VDD_GPU + VDD_CPU_SOC_MSS) power: 144 watts

nvidia@tegra-ubuntu:~$ grep “” /sys/class/hwmon/hwmon*/oc*_throt_en
/sys/class/hwmon/hwmon4/oc1_throt_en:0
/sys/class/hwmon/hwmon4/oc2_throt_en:1
/sys/class/hwmon/hwmon4/oc3_throt_en:1
nvidia@tegra-ubuntu:~$ grep “” /sys/class/hwmon/hwmon*/oc*_event_cnt
/sys/class/hwmon/hwmon4/oc1_event_cnt:0
/sys/class/hwmon/hwmon4/oc2_event_cnt:1
/sys/class/hwmon/hwmon4/oc3_event_cnt:291460

looks like curr4_input is the INA238 read current, and it’s module VIN power. Is it correct?

nvidia@tegra-ubuntu:/sys/bus/i2c/devices/2-0040/hwmon/hwmon5$ ls
curr1_crit curr2_max_alarm device in3_label samples
curr1_crit_alarm curr3_crit in1_enable in4_input shunt1_resistor
curr1_input curr3_crit_alarm in1_input in5_input shunt2_resistor
curr1_max curr3_input in1_label in6_input shunt3_resistor
curr1_max_alarm curr3_max in2_enable in7_input subsystem
curr2_crit curr3_max_alarm in2_input in7_label uevent
curr2_crit_alarm curr4_crit in2_label name update_interval
curr2_input curr4_crit_alarm in3_enable of_node
curr2_max curr4_input in3_input power

nvidia@tegra-ubuntu:/sys/bus/i2c/devices/2-0040/hwmon/hwmon5$ cat curr4_input
4800

What does it means of oc3_event_cnt? Does it include below three situation.

When your instantaneous power over a specific condition, it will trigger OC3 and do the throttling.

thanks Wayne.

Could you check the question there is no INA238 i2c device in Thor devkit.

There is always INA device on Thor devkit to measure the power … not quite sure about what is your question here.

he is telling it is not listing in /dev/i2c* devices list

also
/sys/bus/i2c/devices/2-0044/hwmon/hwmon*/

the online document said:

  • INA238: /sys/bus/i2c/devices/2-0044/hwmon/hwmon*/

but can’t find it.

nvidia@tegra-ubuntu:~$ cd /sys/bus/i2c/devices/2-0044
-bash: cd: /sys/bus/i2c/devices/2-0044: No such file or directory
nvidia@tegra-ubuntu:~$ cd /sys/bus/i2c/devices/
nvidia@tegra-ubuntu:/sys/bus/i2c/devices$ ls
1-0050 1-0056 2-0040 5-003c 5-004c 7-001c i2c-0 i2c-1 i2c-10 i2c-12 i2c-17 i2c-18 i2c-2 i2c-3 i2c-4 i2c-5 i2c-6 i2c-7 i2c-8 i2c-9
nvidia@tegra-ubuntu:/sys/bus/i2c/devices$

Which Jetpack version are you using? I have this one on my side.

nvidia@tegra-ubuntu:/sys/devices/platform/bus@0/c600000.i2c/i2c-2/2-0040$ cd /sys/bus/i2c/devices/2-0044/
nvidia@tegra-ubuntu:/sys/bus/i2c/devices/2-0044$ ls
driver  hwmon  modalias  name  of_node  power  subsystem  uevent

There is no update from you for a period, assuming this is not an issue anymore.
Hence, we are closing this topic. If need further support, please open a new one.
Thanks
~1105

Is this still an issue to support? Any result can be shared?