Janga: config: added 10 tpm422 overtemp config in fan service file #356
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR added 10 tmp422 overtemp config for janga fan service.
Motivation
1.Added 10 tmp422 nodes to the fan service config. Threshold is 110 degrees and will run shoutdown cmd to shut down the J3A and J3B ASIC in case of over-temperature.
SMB_U68_TMP422_J3_A_TEMPDIODE_NIF1
SMB_U68_TMP422_J3_A_TEMPDIODE_HBM_PHY0
SMB_U150_TMP422_J3_A_TEMPDIODE_FAB1
SMB_U150_TMP422_J3_A_TEMPDIODE_HBM_PHY2
SMB_U351_TMP422_J3_B_TEMPDIODE_PADS
SMB_U351_TMP422_J3_B_TEMPDIODE_NIF0
SMB_U352_TMP422_J3_B_TEMPDIODE_NIF1
SMB_U352_TMP422_J3_B_TEMPDIODE_HBM_PHY0
SMB_U152_TMP422_J3_B_TEMPDIODE_FAB1
SMB_U152_TMP422_J3_B_TEMPDIODE_HBM_PHY2
2.If run the shutdown cmd i2cset -y -f "fbiob iob_i2c_master.1009 at 0xfb504900" 0x33 0x07 0x9f, Only shut down the J3A & J3B ASIC not the entire system.
Test Plan
1.The correctness of the format has been verified on this website https://jsonlint.com/
2.Used jq cmd to pretty the format.
3.Test log as follows:
sensor service read temp log:

fan service read temp log:

read reg value after shutdown:

The normal lspci:
14:05.0 PCI bridge: Intel Corporation Device 347d (rev 06)
15:00.0 Ethernet controller: Broadcom Inc. and subsidiaries Device 8890 (rev 02) ---->is J3A
16:00.0 Non-Volatile memory controller: Micron Technology Inc 7450 PRO NVMe SSD (rev 01)
17:00.0 Communication controller: Facebook, Inc. IO Bridge (rev 03)
18:00.0 Ethernet controller: Broadcom Inc. and subsidiaries Device 8890 (rev 02) ---->is J3B
fe:00.0 System peripheral: Intel Corporation Device 3450
After run the shutdown cmd:
sensors_110.txt
fan_test_110.txt
read_reg_110.txt