Skip to content

Commit

Permalink
Add fan presence to platform manager (#300)
Browse files Browse the repository at this point in the history
Summary:
This add fan presence to the platform_manager.json file for the morgan800cc program.

UT:
I1203 10:20:23.575926   887 PresenceChecker.cpp:60] Value at /sys/bus/pci/devices/0000:01:00.0/cisco_meta.fan_ctrl.1021/hwmon/hwmon2/fan1_presence is 1. desiredValue is 1. Assuming presence of PmUnit at /FCB_SLOT@0/FANTRAY_SLOT@0
I1203 10:20:23.575988   887 PresenceChecker.cpp:60] Value at /sys/bus/pci/devices/0000:01:00.0/cisco_meta.fan_ctrl.1021/hwmon/hwmon2/fan2_presence is 1. desiredValue is 1. Assuming presence of PmUnit at /FCB_SLOT@0/FANTRAY_SLOT@1
I1203 10:20:23.576049   887 PresenceChecker.cpp:60] Value at /sys/bus/pci/devices/0000:01:00.0/cisco_meta.fan_ctrl.1021/hwmon/hwmon2/fan3_presence is 1. desiredValue is 1. Assuming presence of PmUnit at /FCB_SLOT@0/FANTRAY_SLOT@2
I1203 10:20:23.576102   887 PresenceChecker.cpp:60] Value at /sys/bus/pci/devices/0000:01:00.0/cisco_meta.fan_ctrl.1021/hwmon/hwmon2/fan4_presence is 1. desiredValue is 1. Assuming presence of PmUnit at /FCB_SLOT@0/FANTRAY_SLOT@3
I1203 10:20:23.576156   887 PresenceChecker.cpp:60] Value at /sys/bus/pci/devices/0000:01:00.0/cisco_meta.fan_ctrl.1021/hwmon/hwmon2/fan5_presence is 1. desiredValue is 1. Assuming presence of PmUnit at /FCB_SLOT@0/FANTRAY_SLOT@4
I1203 10:20:23.576209   887 PresenceChecker.cpp:60] Value at /sys/bus/pci/devices/0000:01:00.0/cisco_meta.fan_ctrl.1021/hwmon/hwmon2/fan6_presence is 1. desiredValue is 1. Assuming presence of PmUnit at /FCB_SLOT@0/FANTRAY_SLOT@5
I1203 10:20:23.576261   887 PresenceChecker.cpp:60] Value at /sys/bus/pci/devices/0000:01:00.0/cisco_meta.fan_ctrl.1021/hwmon/hwmon2/fan7_presence is 1. desiredValue is 1. Assuming presence of PmUnit at /FCB_SLOT@0/FANTRAY_SLOT@6
I1203 10:20:23.576317   887 PresenceChecker.cpp:60] Value at /sys/bus/pci/devices/0000:01:00.0/cisco_meta.fan_ctrl.1021/hwmon/hwmon2/fan8_presence is 1. desiredValue is 1. Assuming presence of PmUnit at /FCB_SLOT@0/FANTRAY_SLOT@7

Pull Request resolved: #300

Reviewed By: rationalis

Differential Revision: D66661209

Pulled By: somasun

fbshipit-source-id: 6961a24c1cf677bedc6acfbcea62381288698e87
  • Loading branch information
scottpaulsen authored and facebook-github-bot committed Dec 5, 2024
1 parent 3887f8f commit 42faf93
Showing 1 changed file with 86 additions and 1 deletion.
87 changes: 86 additions & 1 deletion fboss/platform/configs/morgan800cc/platform_manager.json
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,92 @@
}
},
"MORGAN800CC": {
"pluggedInSlotType": "FCB_SLOT"
"pluggedInSlotType": "FCB_SLOT",
"outgoingSlotConfigs": {
"FANTRAY_SLOT@0": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan1_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@1": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan2_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@2": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan3_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@3": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan4_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@4": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan5_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@5": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan6_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@6": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan7_presence",
"desiredValue": 1
}
}
},
"FANTRAY_SLOT@7": {
"slotType": "FANTRAY_SLOT",
"presenceDetection": {
"sysfsFileHandle": {
"devicePath": "/[MCB_FAN_PWM]",
"presenceFileName": "fan8_presence",
"desiredValue": 1
}
}
}
}
},
"FAN": {
"pluggedInSlotType": "FANTRAY_SLOT"
},
"PDB": {
"pluggedInSlotType": "PDB_SLOT"
Expand Down

0 comments on commit 42faf93

Please sign in to comment.