Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DARWIN: update sensor_service.json #268

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

adamcalabrigo
Copy link
Contributor

Description

Updates the sensor_service.json file for DARWIN platform following the changes in #267 . Existing sensors are unchanged, and new sensors are added for the following devices:

  • SC_TH3_CORE_IR35223
  • SC_TH3_ANLG_IR35223
  • SC_TH3_CORE_IR35223
  • SC_POS_UCD90320

Testing

Tested on Darwin with Linux kernel 6.4 and CentOS 9.

sensor_service monitors all sensors successfully:

I1015 01:34:40.391628 10023 PlatformNameLib.cpp:71] Platform name read from cache: DARWIN
I1015 01:34:40.391667 10023 ConfigLib.cpp:48] Using config file: /opt/fboss/share/platform_configs/sensor_service.json
I1015 01:34:40.392002 10023 SensorServiceImpl.cpp:42] FAN1_RPM: Path=/run/devmap/sensors/FAN_CPLD/fan1_input, Compute=, FRU=FAN1
I1015 01:34:40.392013 10023 SensorServiceImpl.cpp:42] FAN2_RPM: Path=/run/devmap/sensors/FAN_CPLD/fan2_input, Compute=, FRU=FAN2
I1015 01:34:40.392018 10023 SensorServiceImpl.cpp:42] FAN3_RPM: Path=/run/devmap/sensors/FAN_CPLD/fan3_input, Compute=, FRU=FAN3
I1015 01:34:40.392022 10023 SensorServiceImpl.cpp:42] FAN4_RPM: Path=/run/devmap/sensors/FAN_CPLD/fan4_input, Compute=, FRU=FAN4
I1015 01:34:40.392026 10023 SensorServiceImpl.cpp:42] FAN5_RPM: Path=/run/devmap/sensors/FAN_CPLD/fan5_input, Compute=, FRU=FAN5
I1015 01:34:40.392031 10023 SensorServiceImpl.cpp:42] PEM_ADC_VDROP: Path=/run/devmap/sensors/PEM_ADC_MAX11645/in_voltage1-voltage0_raw, Compute=@/1000.0, FRU=PEM
I1015 01:34:40.392036 10023 SensorServiceImpl.cpp:42] PEM_ADC_VIN: Path=/run/devmap/sensors/PEM_ADC_MAX11645/in_voltage1_raw, Compute=@*2.048*7.64/4096, FRU=PEM
I1015 01:34:40.392040 10023 SensorServiceImpl.cpp:42] PEM_ADC_VOUT: Path=/run/devmap/sensors/PEM_ADC_MAX11645/in_voltage0_raw, Compute=@*2.048*7.64/4096, FRU=PEM
I1015 01:34:40.392045 10023 SensorServiceImpl.cpp:42] PEM_ECB_IOUT_CH1: Path=/run/devmap/sensors/PEM_ECB_MAX5970/curr1_input, Compute=(48390/343)*@/1000.0, FRU=PEM
I1015 01:34:40.392049 10023 SensorServiceImpl.cpp:42] PEM_ECB_IOUT_CH2: Path=/run/devmap/sensors/PEM_ECB_MAX5970/curr2_input, Compute=(48390/343)*@/1000.0, FRU=PEM
I1015 01:34:40.392054 10023 SensorServiceImpl.cpp:42] PEM_ECB_VOUT_CH1: Path=/run/devmap/sensors/PEM_ECB_MAX5970/in1_input, Compute=(15.5*@)/1000.0, FRU=PEM
I1015 01:34:40.392058 10023 SensorServiceImpl.cpp:42] PEM_ECB_VOUT_CH2: Path=/run/devmap/sensors/PEM_ECB_MAX5970/in2_input, Compute=(15.5*@)/1000.0, FRU=PEM
I1015 01:34:40.392062 10023 SensorServiceImpl.cpp:42] PEM_EXTERNAL_TEMP: Path=/run/devmap/sensors/PEM_TEMP_MAX6658/temp2_input, Compute=@/1000.0, FRU=PEM
I1015 01:34:40.392066 10023 SensorServiceImpl.cpp:42] PEM_INTERNAL_TEMP: Path=/run/devmap/sensors/PEM_TEMP_MAX6658/temp1_input, Compute=@/1000.0, FRU=PEM
I1015 01:34:40.392071 10023 SensorServiceImpl.cpp:42] FS_FAN_RPM: Path=/run/devmap/sensors/FS_FAN_SLG4F4527/fan1_input, Compute=, FRU=RACKMON
I1015 01:34:40.392075 10023 SensorServiceImpl.cpp:42] BACK_PANEL_TEMP: Path=/run/devmap/sensors/CPU_BOARD_TEMP_MAX6658/temp2_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392079 10023 SensorServiceImpl.cpp:42] CPU_BOARD_TEMP: Path=/run/devmap/sensors/CPU_BOARD_TEMP_MAX6658/temp1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392083 10023 SensorServiceImpl.cpp:42] CPU_CORE0_TEMP: Path=/run/devmap/sensors/CPU_CORE_TEMP/temp2_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392088 10023 SensorServiceImpl.cpp:42] CPU_CORE1_TEMP: Path=/run/devmap/sensors/CPU_CORE_TEMP/temp3_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392092 10023 SensorServiceImpl.cpp:42] CPU_CORE2_TEMP: Path=/run/devmap/sensors/CPU_CORE_TEMP/temp4_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392096 10023 SensorServiceImpl.cpp:42] CPU_CORE3_TEMP: Path=/run/devmap/sensors/CPU_CORE_TEMP/temp5_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392100 10023 SensorServiceImpl.cpp:42] CPU_PHYS_ID_0: Path=/run/devmap/sensors/CPU_CORE_TEMP/temp1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392105 10023 SensorServiceImpl.cpp:42] FRONT_PANEL_TEMP: Path=/run/devmap/sensors/CPU_FP_TEMP_LM73/temp1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392109 10023 SensorServiceImpl.cpp:42] MPS1_IIN: Path=/run/devmap/sensors/CPU_MPS1_PMBUS/curr1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392113 10023 SensorServiceImpl.cpp:42] MPS1_IOUT: Path=/run/devmap/sensors/CPU_MPS1_PMBUS/curr2_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392118 10023 SensorServiceImpl.cpp:42] MPS1_TEMP: Path=/run/devmap/sensors/CPU_MPS1_PMBUS/temp1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392123 10023 SensorServiceImpl.cpp:42] MPS1_VIN: Path=/run/devmap/sensors/CPU_MPS1_PMBUS/in1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392127 10023 SensorServiceImpl.cpp:42] MPS2_IIN: Path=/run/devmap/sensors/CPU_MPS2_PMBUS/curr1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392131 10023 SensorServiceImpl.cpp:42] MPS2_IOUT: Path=/run/devmap/sensors/CPU_MPS2_PMBUS/curr2_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392135 10023 SensorServiceImpl.cpp:42] MPS2_TEMP: Path=/run/devmap/sensors/CPU_MPS2_PMBUS/temp1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392140 10023 SensorServiceImpl.cpp:42] MPS2_VIN: Path=/run/devmap/sensors/CPU_MPS2_PMBUS/in1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392144 10023 SensorServiceImpl.cpp:42] PCH_TEMP: Path=/run/devmap/sensors/PCH_THERMAL/temp1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392148 10023 SensorServiceImpl.cpp:42] POS_0V6_VTT: Path=/run/devmap/sensors/CPU_POS_UCD90160/in2_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392152 10023 SensorServiceImpl.cpp:42] POS_12V: Path=/run/devmap/sensors/CPU_POS_UCD90160/in13_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392156 10023 SensorServiceImpl.cpp:42] POS_1V05_COM: Path=/run/devmap/sensors/CPU_POS_UCD90160/in6_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392160 10023 SensorServiceImpl.cpp:42] POS_1V2_ALW: Path=/run/devmap/sensors/CPU_POS_UCD90160/in11_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392165 10023 SensorServiceImpl.cpp:42] POS_1V2_LAN1: Path=/run/devmap/sensors/CPU_POS_UCD90160/in14_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392173 10023 SensorServiceImpl.cpp:42] POS_1V2_LAN2: Path=/run/devmap/sensors/CPU_POS_UCD90160/in15_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392178 10023 SensorServiceImpl.cpp:42] POS_1V2_VDDQ: Path=/run/devmap/sensors/CPU_POS_UCD90160/in3_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392182 10023 SensorServiceImpl.cpp:42] POS_1V3_KRHV: Path=/run/devmap/sensors/CPU_POS_UCD90160/in7_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392186 10023 SensorServiceImpl.cpp:42] POS_1V5_PCH: Path=/run/devmap/sensors/CPU_POS_UCD90160/in5_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392190 10023 SensorServiceImpl.cpp:42] POS_1V7_SCFUSE: Path=/run/devmap/sensors/CPU_POS_UCD90160/in8_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392194 10023 SensorServiceImpl.cpp:42] POS_1V7_VCCIN_VRRDY: Path=/run/devmap/sensors/CPU_POS_UCD90160/in1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392199 10023 SensorServiceImpl.cpp:42] POS_2V5_VPP: Path=/run/devmap/sensors/CPU_POS_UCD90160/in4_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392204 10023 SensorServiceImpl.cpp:42] POS_3V3: Path=/run/devmap/sensors/CPU_POS_UCD90160/in9_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392208 10023 SensorServiceImpl.cpp:42] POS_3V3_ALW: Path=/run/devmap/sensors/CPU_POS_UCD90160/in12_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392212 10023 SensorServiceImpl.cpp:42] POS_5V0: Path=/run/devmap/sensors/CPU_POS_UCD90160/in10_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392217 10023 SensorServiceImpl.cpp:42] QSFPDD_VRD_IIN: Path=/run/devmap/sensors/SC_QSFPDD_IR35223/curr1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392221 10023 SensorServiceImpl.cpp:42] QSFPDD_VRD_IOUT_A: Path=/run/devmap/sensors/SC_QSFPDD_IR35223/curr2_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392225 10023 SensorServiceImpl.cpp:42] QSFPDD_VRD_IOUT_B: Path=/run/devmap/sensors/SC_QSFPDD_IR35223/curr3_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392230 10023 SensorServiceImpl.cpp:42] QSFPDD_VRD_POUT_A: Path=/run/devmap/sensors/SC_QSFPDD_IR35223/power2_input, Compute=@/1000000.0, FRU=SMB
I1015 01:34:40.392234 10023 SensorServiceImpl.cpp:42] QSFPDD_VRD_POUT_B: Path=/run/devmap/sensors/SC_QSFPDD_IR35223/power3_input, Compute=@/1000000.0, FRU=SMB
I1015 01:34:40.392238 10023 SensorServiceImpl.cpp:42] QSFPDD_VRD_TEMP: Path=/run/devmap/sensors/SC_QSFPDD_IR35223/temp1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392242 10023 SensorServiceImpl.cpp:42] QSFPDD_VRD_VIN: Path=/run/devmap/sensors/SC_QSFPDD_IR35223/in1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392246 10023 SensorServiceImpl.cpp:42] QSFPDD_VRD_VOUT_A: Path=/run/devmap/sensors/SC_QSFPDD_IR35223/in2_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392251 10023 SensorServiceImpl.cpp:42] QSFPDD_VRD_VOUT_B: Path=/run/devmap/sensors/SC_QSFPDD_IR35223/in3_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392255 10023 SensorServiceImpl.cpp:42] SC_BOARD_LEFT_TEMP: Path=/run/devmap/sensors/SC_BOARD_TEMP_MAX6581/temp3_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392259 10023 SensorServiceImpl.cpp:42] SC_BOARD_MIDDLE_TEMP: Path=/run/devmap/sensors/SC_BOARD_TEMP_MAX6581/temp2_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392263 10023 SensorServiceImpl.cpp:42] SC_BOARD_TEMP: Path=/run/devmap/sensors/SC_BOARD_TEMP_MAX6581/temp1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392267 10023 SensorServiceImpl.cpp:42] SC_FRONT_PANEL_TEMP: Path=/run/devmap/sensors/SC_BOARD_TEMP_MAX6581/temp4_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392272 10023 SensorServiceImpl.cpp:42] SC_POS_0V8_AVDD: Path=/run/devmap/sensors/SC_POS_UCD90320/in15_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392276 10023 SensorServiceImpl.cpp:42] SC_POS_0V9_VDD: Path=/run/devmap/sensors/SC_POS_UCD90320/in16_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392280 10023 SensorServiceImpl.cpp:42] SC_POS_12V_STDBY: Path=/run/devmap/sensors/SC_POS_UCD90320/in3_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392284 10023 SensorServiceImpl.cpp:42] SC_POS_12V_TH3_A: Path=/run/devmap/sensors/SC_POS_UCD90320/in1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392289 10023 SensorServiceImpl.cpp:42] SC_POS_12V_TH3_B: Path=/run/devmap/sensors/SC_POS_UCD90320/in2_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392294 10023 SensorServiceImpl.cpp:42] SC_POS_1V2: Path=/run/devmap/sensors/SC_POS_UCD90320/in14_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392298 10023 SensorServiceImpl.cpp:42] SC_POS_1V5_A: Path=/run/devmap/sensors/SC_POS_UCD90320/in12_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392302 10023 SensorServiceImpl.cpp:42] SC_POS_1V5_B: Path=/run/devmap/sensors/SC_POS_UCD90320/in13_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392306 10023 SensorServiceImpl.cpp:42] SC_POS_1V8: Path=/run/devmap/sensors/SC_POS_UCD90320/in11_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392312 10023 SensorServiceImpl.cpp:42] SC_POS_2V5_LT: Path=/run/devmap/sensors/SC_POS_UCD90320/in9_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392316 10023 SensorServiceImpl.cpp:42] SC_POS_2V5_RT: Path=/run/devmap/sensors/SC_POS_UCD90320/in10_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392320 10023 SensorServiceImpl.cpp:42] SC_POS_3V3: Path=/run/devmap/sensors/SC_POS_UCD90320/in5_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392324 10023 SensorServiceImpl.cpp:42] SC_POS_3V3_QSFPDD_A: Path=/run/devmap/sensors/SC_POS_UCD90320/in6_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392329 10023 SensorServiceImpl.cpp:42] SC_POS_3V3_QSFPDD_B: Path=/run/devmap/sensors/SC_POS_UCD90320/in7_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392333 10023 SensorServiceImpl.cpp:42] SC_POS_3V3_STDBY: Path=/run/devmap/sensors/SC_POS_UCD90320/in8_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392337 10023 SensorServiceImpl.cpp:42] SC_POS_5V0: Path=/run/devmap/sensors/SC_POS_UCD90320/in4_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392341 10023 SensorServiceImpl.cpp:42] SC_TH3_DIODE1_TEMP: Path=/run/devmap/sensors/SC_BOARD_TEMP_MAX6581/temp7_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392345 10023 SensorServiceImpl.cpp:42] SC_TH3_DIODE2_TEMP: Path=/run/devmap/sensors/SC_BOARD_TEMP_MAX6581/temp8_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392349 10023 SensorServiceImpl.cpp:42] TH3_VRD1_IIN: Path=/run/devmap/sensors/SC_TH3_CORE_IR35223/curr1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392354 10023 SensorServiceImpl.cpp:42] TH3_VRD1_IOUT: Path=/run/devmap/sensors/SC_TH3_CORE_IR35223/curr2_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392358 10023 SensorServiceImpl.cpp:42] TH3_VRD1_POUT: Path=/run/devmap/sensors/SC_TH3_CORE_IR35223/power2_input, Compute=@/1000000.0, FRU=SMB
I1015 01:34:40.392362 10023 SensorServiceImpl.cpp:42] TH3_VRD1_TEMP: Path=/run/devmap/sensors/SC_TH3_CORE_IR35223/temp1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392366 10023 SensorServiceImpl.cpp:42] TH3_VRD1_VIN: Path=/run/devmap/sensors/SC_TH3_CORE_IR35223/in1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392370 10023 SensorServiceImpl.cpp:42] TH3_VRD1_VOUT: Path=/run/devmap/sensors/SC_TH3_CORE_IR35223/in2_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392374 10023 SensorServiceImpl.cpp:42] TH3_VRD2_IIN: Path=/run/devmap/sensors/SC_TH3_ANLG_IR35223/curr1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392378 10023 SensorServiceImpl.cpp:42] TH3_VRD2_IOUT: Path=/run/devmap/sensors/SC_TH3_ANLG_IR35223/curr2_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392382 10023 SensorServiceImpl.cpp:42] TH3_VRD2_POUT: Path=/run/devmap/sensors/SC_TH3_ANLG_IR35223/power2_input, Compute=@/1000000.0, FRU=SMB
I1015 01:34:40.392387 10023 SensorServiceImpl.cpp:42] TH3_VRD2_TEMP: Path=/run/devmap/sensors/SC_TH3_ANLG_IR35223/temp1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392391 10023 SensorServiceImpl.cpp:42] TH3_VRD2_VIN: Path=/run/devmap/sensors/SC_TH3_ANLG_IR35223/in1_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392395 10023 SensorServiceImpl.cpp:42] TH3_VRD2_VOUT: Path=/run/devmap/sensors/SC_TH3_ANLG_IR35223/in2_input, Compute=@/1000.0, FRU=SMB
I1015 01:34:40.392816 10023 SensorServiceImpl.cpp:51] ========================================================
I1015 01:34:40.392827 10023 SensorServiceImpl.cpp:113] Fetching using legacy sensor structs...
I1015 01:34:40.695856 10023 SensorServiceImpl.cpp:124] In Total, Processed 90 Sensors. 0 Failures.

@facebook-github-bot
Copy link
Contributor

@joancaneus has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants