Skip to content

Conversation

@chee-zhang
Copy link
Contributor

@chee-zhang chee-zhang commented Sep 8, 2025

Description

This PR is about Ladakh800bcls platform configurations for EVT1 phase.

Motivation

platform_manager

Based on Ladakh800bcls HW Design Specification EVT1, the following boards should be added.

image
  1. SMB (Switch Main board) contains SMB CPLD, switch ASIC, clock and other peripheral circuit.
  2. RTM (Retimer board) contains RTM CPLD, DOM FPGA,16x Retimers, Clock and other peripheral circuit.
  3. MCB (Main Carrier board) contains MCB CPLD, COMe Module, RunBMC card and related logic components.

bring up bugfix

  1. RTM change kernel device
  2. Add one i2c bus according to the FPGA spec
  3. Fix error of i2c bus start offset on dom according to FPGA spec
  4. Fix error of reading PMBUS sensor
  5. Fix error of i2c address of FAN
  6. Fix error of HSCB sensor address according to HW spec
  7. Fix xcvr i2c bus number
  8. Add tmp432 sensor initRegSettings

Test Plan

  1. Used jq command to pretty the format.
  2. Compilation and config validation have passed.
I1028 23:21:17.308879 2308103 ConfigGenerator.cpp:113] Processing platform ladakh800bcls in /work/users/cheezhang/fboss/fboss/platform/configs/ladakh800bcls
I1028 23:21:17.309004 2308103 ConfigGenerator.cpp:121] Processing config "/work/users/cheezhang/fboss/fboss/platform/configs/ladakh800bcls/bsp_tests.json"
I1028 23:21:17.312866 2308103 ConfigGenerator.cpp:121] Processing config "/work/users/cheezhang/fboss/fboss/platform/configs/ladakh800bcls/fan_service.json"
I1028 23:21:17.316480 2308103 ConfigGenerator.cpp:121] Processing config "/work/users/cheezhang/fboss/fboss/platform/configs/ladakh800bcls/fw_util.json"
I1028 23:21:17.319443 2308103 ConfigGenerator.cpp:121] Processing config "/work/users/cheezhang/fboss/fboss/platform/configs/ladakh800bcls/led_manager.json"
I1028 23:21:17.321964 2308103 ConfigGenerator.cpp:121] Processing config "/work/users/cheezhang/fboss/fboss/platform/configs/ladakh800bcls/sensor_service.json"
I1028 23:21:17.327983 2308103 ConfigGenerator.cpp:121] Processing config "/work/users/cheezhang/fboss/fboss/platform/configs/ladakh800bcls/showtech.json"
I1028 23:21:17.330609 2308103 ConfigGenerator.cpp:121] Processing config "/work/users/cheezhang/fboss/fboss/platform/configs/ladakh800bcls/platform_manager.json"
I1028 23:21:17.331477 2308103 ConfigValidator.cpp:557] Validating platform_manager config
I1028 23:21:17.331497 2308103 ConfigValidator.cpp:583] Validating SlotTypeConfig for Slot COMESE_SLOT...
I1028 23:21:17.331509 2308103 ConfigValidator.cpp:583] Validating SlotTypeConfig for Slot MCB_SLOT...
I1028 23:21:17.331516 2308103 ConfigValidator.cpp:583] Validating SlotTypeConfig for Slot RTM_L_SLOT...
I1028 23:21:17.331523 2308103 ConfigValidator.cpp:583] Validating SlotTypeConfig for Slot RTM_R_SLOT...
I1028 23:21:17.331530 2308103 ConfigValidator.cpp:583] Validating SlotTypeConfig for Slot RUNBMC_SLOT...
I1028 23:21:17.331538 2308103 ConfigValidator.cpp:583] Validating SlotTypeConfig for Slot SMB_L_SLOT...
I1028 23:21:17.331546 2308103 ConfigValidator.cpp:583] Validating SlotTypeConfig for Slot SMB_R_SLOT...
I1028 23:21:17.331553 2308103 ConfigValidator.cpp:600] Validating PmUnitConfig for PmUnit BMC in Slot RUNBMC_SLOT...
I1028 23:21:17.331563 2308103 ConfigValidator.cpp:600] Validating PmUnitConfig for PmUnit LADAKH800BCLS_MCB in Slot MCB_SLOT...
I1028 23:21:17.331655 2308103 ConfigValidator.cpp:600] Validating PmUnitConfig for PmUnit NETLAKE in Slot COMESE_SLOT...
I1028 23:21:17.331671 2308103 ConfigValidator.cpp:600] Validating PmUnitConfig for PmUnit RTM_L in Slot RTM_L_SLOT...
I1028 23:21:17.331683 2308103 ConfigValidator.cpp:600] Validating PmUnitConfig for PmUnit RTM_R in Slot RTM_R_SLOT...
I1028 23:21:17.331695 2308103 ConfigValidator.cpp:600] Validating PmUnitConfig for PmUnit SMB_L in Slot SMB_L_SLOT...
I1028 23:21:17.331708 2308103 ConfigValidator.cpp:600] Validating PmUnitConfig for PmUnit SMB_R in Slot SMB_R_SLOT...
I1028 23:21:17.331721 2308103 ConfigValidator.cpp:654] Validating Symbolic links...
I1028 23:21:17.335198 2308103 ConfigValidator.cpp:661] Validating Transceiver symbolic links...
I1028 23:21:17.335443 2308103 ConfigValidator.cpp:16] Validating sensor_service config
I1028 23:21:17.336406 2308103 CrossConfigValidator.cpp:25] Cross validating sensor_service config
I1028 23:21:17.337705 2308103 ConfigValidator.cpp:47] Validating fan_service config
I1028 23:21:17.337830 2308103 CrossConfigValidator.cpp:54] Cross validating fan_service config
I1028 23:21:17.337946 2308103 ConfigValidator.cpp:10] Validating data_corral_service config
I1028 23:21:17.337960 2308103 ConfigValidator.cpp:12] Validating the system LED config
I1028 23:21:17.337967 2308103 ConfigValidator.cpp:77] Validating the LED config for fruType: FAN
I1028 23:21:17.337973 2308103 ConfigValidator.cpp:77] Validating the LED config for fruType: PWR
I1028 23:21:17.337980 2308103 ConfigValidator.cpp:77] Validating the LED config for fruType: SMB
I1028 23:21:17.337990 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: FAN1
I1028 23:21:17.337997 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: FAN2
I1028 23:21:17.338003 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: FAN3
I1028 23:21:17.338011 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: FAN4
I1028 23:21:17.338018 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: FAN5
I1028 23:21:17.338026 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: FAN6
I1028 23:21:17.338032 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: PWR
I1028 23:21:17.338043 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: SMB_L
I1028 23:21:17.338050 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: SMB_R

build.log

  1. The platform_manager service is running successfully.

To be verified with new name

@meta-cla meta-cla bot added the CLA Signed label Sep 8, 2025
@chee-zhang chee-zhang force-pushed the anacapa_platform_config_draft_version branch 2 times, most recently from 8e319bb to deb638a Compare September 8, 2025 05:39
@facebook-github-bot
Copy link
Contributor

@mikechoifb has imported this pull request. If you are a Meta employee, you can view this in D82750730.

@somasun
Copy link
Contributor

somasun commented Oct 2, 2025

Can you please split the PR. The platform_manager changes can be one PR. Other changes can come later.

@chee-zhang chee-zhang force-pushed the anacapa_platform_config_draft_version branch from deb638a to 4fce44c Compare October 9, 2025 10:31
@facebook-github-bot
Copy link
Contributor

@chee-zhang has updated the pull request. You must reimport the pull request before landing.

1 similar comment
@facebook-github-bot
Copy link
Contributor

@chee-zhang has updated the pull request. You must reimport the pull request before landing.

@chee-zhang chee-zhang changed the title Anacapa: Platform: Add Anacapa platform config draft version Anacapa: Platform: Add Anacapa platform config after bring up Oct 10, 2025
@chee-zhang chee-zhang requested a review from somasun October 10, 2025 05:16
@chee-zhang chee-zhang force-pushed the anacapa_platform_config_draft_version branch from 54dc630 to 157101a Compare October 13, 2025 01:56
@facebook-github-bot
Copy link
Contributor

@chee-zhang has updated the pull request. You must reimport the pull request before landing.

@chee-zhang chee-zhang force-pushed the anacapa_platform_config_draft_version branch from 157101a to b9e7089 Compare October 13, 2025 02:07
@facebook-github-bot
Copy link
Contributor

@chee-zhang has updated the pull request. You must reimport the pull request before landing.

@chee-zhang
Copy link
Contributor Author

Can you please split the PR. The platform_manager changes can be one PR. Other changes can come later.

This PR only contains platform_manager, others are in PR #584

@facebook-github-bot
Copy link
Contributor

@chee-zhang has updated the pull request. You must reimport the pull request before landing.

1 similar comment
@facebook-github-bot
Copy link
Contributor

@chee-zhang has updated the pull request. You must reimport the pull request before landing.

@chee-zhang chee-zhang changed the title Anacapa: Platform: Add Anacapa platform config after bring up Ladakh800bcls: Platform: Add Ladakh800bcls platform config after bring up Oct 29, 2025
@chee-zhang chee-zhang force-pushed the anacapa_platform_config_draft_version branch from b1ae75d to 57b5612 Compare October 29, 2025 02:51
@facebook-github-bot
Copy link
Contributor

@chee-zhang has updated the pull request. You must reimport the pull request before landing.

@meta-codesync
Copy link

meta-codesync bot commented Oct 29, 2025

@mikechoifb has imported this pull request. If you are a Meta employee, you can view this in D82750730.

1. Remove other json, only keep platform_manager
2. Remove unused soft links
3. Remove unused `pmUnitName`
4. Add comments for `initRegSettings`
5. Add comments for COMe sensors
6. Add comments for RTM sensors
1. RTM change kernel device
2. Add one i2c bus according to the FPGA spec
3. Fix error of i2c bus start offset on dom according to FPGA spec
4. Fix error of reading PMBUS sensor
5. Fix error of i2c address of FAN
6. Fix error of HSCB sensor address according to HW spec
@chee-zhang chee-zhang force-pushed the anacapa_platform_config_draft_version branch from 57b5612 to ef8cdaa Compare October 30, 2025 05:09
@facebook-github-bot
Copy link
Contributor

@chee-zhang has updated the pull request. You must reimport the pull request before landing.

@meta-codesync
Copy link

meta-codesync bot commented Oct 31, 2025

@mikechoifb merged this pull request in bb925b5.

meta-codesync bot pushed a commit that referenced this pull request Oct 31, 2025
…manager, sensor_service configuration after bring up (#584)

Summary:
# Description

This PR is about Ladakh800bcls platform configurations for EVT1 phase.

# Motivation

## led_manager

Based on Ladakh800bcls HW Design Specification EVT1, the LEDs below should be added.
1. 4x Tri-color LEDs for status indication, one PWR LED, one Sys LED, SMB LED and one FAN LED.
2. 6x Bi-color LEDs for FAN tray.

## fw_util

Based on Ladakh800bcls HW Design Specification EVT1 and the FPGA Register Map, the following upgrade devices should be added.

<img width="836" height="482" alt="image" src="https://github.com/user-attachments/assets/d70e2f82-a219-4758-b850-b2da50ff5451" />

## sensor_service

Based on Ladakh800bcls HW Design Specification EVT1.
1. Add the thermal sensors.
2. Add the voltage and current detection sensors.

## fan_service

Based on Ladakh800bcls HW Design Specification EVT1.

<img width="489" height="134" alt="486578675-240493a7-4d35-4c2e-8dbf-f2717151488a" src="https://github.com/user-attachments/assets/eee02620-5bca-4937-830a-1cc8bf4ad144" />

1. The CPU_UNCORE_TEMP, INLET_TEMP on RTM_L, INLET_TEMP on RTM_R, MCB_POWER_BRICK3_TEMP are considered in the draft version.
3. 6 fans are considered.

Pull Request resolved: #584

Test Plan:
1. Used `jq` command to pretty the format.
2. Compilation and config validation have passed based on #537
```
I1028 23:21:17.308879 2308103 ConfigGenerator.cpp:113] Processing platform ladakh800bcls in /work/users/cheezhang/fboss/fboss/platform/configs/ladakh800bcls
I1028 23:21:17.309004 2308103 ConfigGenerator.cpp:121] Processing config "/work/users/cheezhang/fboss/fboss/platform/configs/ladakh800bcls/bsp_tests.json"
I1028 23:21:17.312866 2308103 ConfigGenerator.cpp:121] Processing config "/work/users/cheezhang/fboss/fboss/platform/configs/ladakh800bcls/fan_service.json"
I1028 23:21:17.316480 2308103 ConfigGenerator.cpp:121] Processing config "/work/users/cheezhang/fboss/fboss/platform/configs/ladakh800bcls/fw_util.json"
I1028 23:21:17.319443 2308103 ConfigGenerator.cpp:121] Processing config "/work/users/cheezhang/fboss/fboss/platform/configs/ladakh800bcls/led_manager.json"
I1028 23:21:17.321964 2308103 ConfigGenerator.cpp:121] Processing config "/work/users/cheezhang/fboss/fboss/platform/configs/ladakh800bcls/sensor_service.json"
I1028 23:21:17.327983 2308103 ConfigGenerator.cpp:121] Processing config "/work/users/cheezhang/fboss/fboss/platform/configs/ladakh800bcls/showtech.json"
I1028 23:21:17.330609 2308103 ConfigGenerator.cpp:121] Processing config "/work/users/cheezhang/fboss/fboss/platform/configs/ladakh800bcls/platform_manager.json"
I1028 23:21:17.331477 2308103 ConfigValidator.cpp:557] Validating platform_manager config
I1028 23:21:17.331497 2308103 ConfigValidator.cpp:583] Validating SlotTypeConfig for Slot COMESE_SLOT...
I1028 23:21:17.331509 2308103 ConfigValidator.cpp:583] Validating SlotTypeConfig for Slot MCB_SLOT...
I1028 23:21:17.331516 2308103 ConfigValidator.cpp:583] Validating SlotTypeConfig for Slot RTM_L_SLOT...
I1028 23:21:17.331523 2308103 ConfigValidator.cpp:583] Validating SlotTypeConfig for Slot RTM_R_SLOT...
I1028 23:21:17.331530 2308103 ConfigValidator.cpp:583] Validating SlotTypeConfig for Slot RUNBMC_SLOT...
I1028 23:21:17.331538 2308103 ConfigValidator.cpp:583] Validating SlotTypeConfig for Slot SMB_L_SLOT...
I1028 23:21:17.331546 2308103 ConfigValidator.cpp:583] Validating SlotTypeConfig for Slot SMB_R_SLOT...
I1028 23:21:17.331553 2308103 ConfigValidator.cpp:600] Validating PmUnitConfig for PmUnit BMC in Slot RUNBMC_SLOT...
I1028 23:21:17.331563 2308103 ConfigValidator.cpp:600] Validating PmUnitConfig for PmUnit LADAKH800BCLS_MCB in Slot MCB_SLOT...
I1028 23:21:17.331655 2308103 ConfigValidator.cpp:600] Validating PmUnitConfig for PmUnit NETLAKE in Slot COMESE_SLOT...
I1028 23:21:17.331671 2308103 ConfigValidator.cpp:600] Validating PmUnitConfig for PmUnit RTM_L in Slot RTM_L_SLOT...
I1028 23:21:17.331683 2308103 ConfigValidator.cpp:600] Validating PmUnitConfig for PmUnit RTM_R in Slot RTM_R_SLOT...
I1028 23:21:17.331695 2308103 ConfigValidator.cpp:600] Validating PmUnitConfig for PmUnit SMB_L in Slot SMB_L_SLOT...
I1028 23:21:17.331708 2308103 ConfigValidator.cpp:600] Validating PmUnitConfig for PmUnit SMB_R in Slot SMB_R_SLOT...
I1028 23:21:17.331721 2308103 ConfigValidator.cpp:654] Validating Symbolic links...
I1028 23:21:17.335198 2308103 ConfigValidator.cpp:661] Validating Transceiver symbolic links...
I1028 23:21:17.335443 2308103 ConfigValidator.cpp:16] Validating sensor_service config
I1028 23:21:17.336406 2308103 CrossConfigValidator.cpp:25] Cross validating sensor_service config
I1028 23:21:17.337705 2308103 ConfigValidator.cpp:47] Validating fan_service config
I1028 23:21:17.337830 2308103 CrossConfigValidator.cpp:54] Cross validating fan_service config
I1028 23:21:17.337946 2308103 ConfigValidator.cpp:10] Validating data_corral_service config
I1028 23:21:17.337960 2308103 ConfigValidator.cpp:12] Validating the system LED config
I1028 23:21:17.337967 2308103 ConfigValidator.cpp:77] Validating the LED config for fruType: FAN
I1028 23:21:17.337973 2308103 ConfigValidator.cpp:77] Validating the LED config for fruType: PWR
I1028 23:21:17.337980 2308103 ConfigValidator.cpp:77] Validating the LED config for fruType: SMB
I1028 23:21:17.337990 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: FAN1
I1028 23:21:17.337997 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: FAN2
I1028 23:21:17.338003 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: FAN3
I1028 23:21:17.338011 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: FAN4
I1028 23:21:17.338018 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: FAN5
I1028 23:21:17.338026 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: FAN6
I1028 23:21:17.338032 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: PWR
I1028 23:21:17.338043 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: SMB_L
I1028 23:21:17.338050 2308103 ConfigValidator.cpp:89] Validating the FRU config for fru: SMB_R
```

[build.log](https://github.com/user-attachments/files/23201921/build.log)

3. The HW tests below passed.

*To be verified with new name*

Reviewed By: Protick666

Differential Revision: D85795573

Pulled By: mikechoifb

fbshipit-source-id: ac0b1ae9c63ccf45b1c868b35161b17eeeb3152d
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.

3 participants