From 3ae4ac208b19ca5230adfea9240f7105e08da778 Mon Sep 17 00:00:00 2001 From: Adam Calabrigo Date: Tue, 15 Oct 2024 00:18:14 +0000 Subject: [PATCH 1/3] DARWIN: update led_maanger.json to include Rackmon fan --- fboss/platform/configs/darwin/led_manager.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fboss/platform/configs/darwin/led_manager.json b/fboss/platform/configs/darwin/led_manager.json index e7090b64eefd9..b616237815ed2 100644 --- a/fboss/platform/configs/darwin/led_manager.json +++ b/fboss/platform/configs/darwin/led_manager.json @@ -70,6 +70,16 @@ } } }, + { + "fruName": "FAN6", + "fruType": "FAN", + "presenceDetection": { + "sysfsFileHandle": { + "presenceFilePath": "/run/devmap/sensors/SCD_FPGA/rackmon_present", + "desiredValue": 1 + } + } + }, { "fruName": "PEM1", "fruType": "PEM", From 7d65498603c94f70d8eebdf5be85e3048d121d96 Mon Sep 17 00:00:00 2001 From: Adam Calabrigo Date: Tue, 15 Oct 2024 02:01:45 +0000 Subject: [PATCH 2/3] DARWIN: update sysfs paths in led_manager.json --- fboss/platform/configs/darwin/led_manager.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fboss/platform/configs/darwin/led_manager.json b/fboss/platform/configs/darwin/led_manager.json index b616237815ed2..fa29f0c210779 100644 --- a/fboss/platform/configs/darwin/led_manager.json +++ b/fboss/platform/configs/darwin/led_manager.json @@ -1,22 +1,22 @@ { "systemLedConfig": { "presentLedColor": 1, - "presentLedSysfsPath": "/run/devmap/fpgas/SCD_FPGA/scd-leds.0/leds/system:green:status/brightness", + "presentLedSysfsPath": "/sys/class/leds/sys_led:green:status/brightness", "absentLedColor": 2, - "absentLedSysfsPath": "/run/devmap/fpgas/SCD_FPGA/scd-leds.0/leds/system:red:status/brightness" + "absentLedSysfsPath": "/sys/class/leds/sys_led:red:status/brightness" }, "fruTypeLedConfigs": { "FAN": { "presentLedColor": 1, - "presentLedSysfsPath": "/run/devmap/fpgas/SCD_FPGA/scd-leds.0/leds/fan:green:status/brightness", + "presentLedSysfsPath": "/sys/class/leds/fan_led:green:status/brightness", "absentLedColor": 2, - "absentLedSysfsPath": "/run/devmap/fpgas/SCD_FPGA/scd-leds.0/leds/fan:red:status/brightness" + "absentLedSysfsPath": "/sys/class/leds/fan_led:red:status/brightness" }, "PEM": { "presentLedColor": 1, - "presentLedSysfsPath": "/run/devmap/fpgas/SCD_FPGA/scd-leds.0/leds/pem:green:status/brightness", + "presentLedSysfsPath": "/sys/class/leds/psu_led:green:status/brightness", "absentLedColor": 2, - "absentLedSysfsPath": "/run/devmap/fpgas/SCD_FPGA/scd-leds.0/leds/pem:red:status/brightness" + "absentLedSysfsPath": "/sys/class/leds/psu_led:red:status/brightness" } }, "fruConfigs": [ From a88218341535b51c4e6342f6c6e3c2e99c1f1a07 Mon Sep 17 00:00:00 2001 From: Adam Calabrigo Date: Fri, 1 Nov 2024 16:42:58 +0000 Subject: [PATCH 3/3] Darwin: fix rackmon sysfs path --- fboss/platform/configs/darwin/led_manager.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fboss/platform/configs/darwin/led_manager.json b/fboss/platform/configs/darwin/led_manager.json index fa29f0c210779..050efafb3e707 100644 --- a/fboss/platform/configs/darwin/led_manager.json +++ b/fboss/platform/configs/darwin/led_manager.json @@ -75,7 +75,7 @@ "fruType": "FAN", "presenceDetection": { "sysfsFileHandle": { - "presenceFilePath": "/run/devmap/sensors/SCD_FPGA/rackmon_present", + "presenceFilePath": "/run/devmap/fpgas/SCD_FPGA/rackmon_present", "desiredValue": 1 } }