Skip to content

Conversation

chee-zhang
Copy link

@chee-zhang chee-zhang commented Aug 19, 2025

Description

  1. Add mdio configuration function

Motivation

  1. Based on the Anacapa EVT1 hardware specification, need to add mdio configuration function.
"mdioBusConfigs": [
  {
    "pmUnitScopedName": "RTM_L_MDIO_BUS_1",
    "deviceName": "dom1_mdio_master",
    "csrOffset": "0x40200"
  }
]
image

Test Plan

  1. Try to test the function with the corresponding BSP on Minipack3
    succeed to create mdio bus through fboss
image
[root@localhost chee]# ls /dev | grep mdio
ioc_dom1_mdio_master.1301
[root@localhost chee]# cd /sys/bus/mdio_bus
[root@localhost mdio_bus]# ls
devices  drivers  drivers_autoprobe  drivers_probe  uevent
[root@localhost mdio_bus]# cd devices/
[root@localhost devices]# ls
dom1_mdio_master.1301:00  dom1_mdio_master.1301:07  dom1_mdio_master.1301:0e  dom1_mdio_master.1301:15  dom1_mdio_master.1301:1c
dom1_mdio_master.1301:01  dom1_mdio_master.1301:08  dom1_mdio_master.1301:0f  dom1_mdio_master.1301:16  dom1_mdio_master.1301:1d
dom1_mdio_master.1301:02  dom1_mdio_master.1301:09  dom1_mdio_master.1301:10  dom1_mdio_master.1301:17  dom1_mdio_master.1301:1e
dom1_mdio_master.1301:03  dom1_mdio_master.1301:0a  dom1_mdio_master.1301:11  dom1_mdio_master.1301:18  dom1_mdio_master.1301:1f
dom1_mdio_master.1301:04  dom1_mdio_master.1301:0b  dom1_mdio_master.1301:12  dom1_mdio_master.1301:19
dom1_mdio_master.1301:05  dom1_mdio_master.1301:0c  dom1_mdio_master.1301:13  dom1_mdio_master.1301:1a
dom1_mdio_master.1301:06  dom1_mdio_master.1301:0d  dom1_mdio_master.1301:14  dom1_mdio_master.1301:1b
[root@localhost devices]# cd /sys/class/mdio_bus
[root@localhost mdio_bus]# ls
dom1_mdio_master.1301  fixed-0
[root@localhost mdio_bus]# cd dom1_mdio_master.1301/
[root@localhost dom1_mdio_master.1301]# ls
device                    dom1_mdio_master.1301:06  dom1_mdio_master.1301:0d  dom1_mdio_master.1301:14  dom1_mdio_master.1301:1b   subsystem
dom1_mdio_master.1301:00  dom1_mdio_master.1301:07  dom1_mdio_master.1301:0e  dom1_mdio_master.1301:15  dom1_mdio_master.1301:1c   uevent
dom1_mdio_master.1301:01  dom1_mdio_master.1301:08  dom1_mdio_master.1301:0f  dom1_mdio_master.1301:16  dom1_mdio_master.1301:1d
dom1_mdio_master.1301:02  dom1_mdio_master.1301:09  dom1_mdio_master.1301:10  dom1_mdio_master.1301:17  dom1_mdio_master.1301:1e
dom1_mdio_master.1301:03  dom1_mdio_master.1301:0a  dom1_mdio_master.1301:11  dom1_mdio_master.1301:18  dom1_mdio_master.1301:1f
dom1_mdio_master.1301:04  dom1_mdio_master.1301:0b  dom1_mdio_master.1301:12  dom1_mdio_master.1301:19  ioc_dom1_mdio_master.1301
dom1_mdio_master.1301:05  dom1_mdio_master.1301:0c  dom1_mdio_master.1301:13  dom1_mdio_master.1301:1a  statistics

platform.log.txt

@meta-cla meta-cla bot added the CLA Signed label Aug 19, 2025
@chee-zhang chee-zhang marked this pull request as ready for review August 19, 2025 02:27
@somasun
Copy link
Contributor

somasun commented Aug 19, 2025

@chee-zhang - can you please explain in detail the usecase of mdio in Anacapa in the Summary. Thanks!

@chee-zhang
Copy link
Author

chee-zhang commented Aug 20, 2025

@chee-zhang - can you please explain in detail the usecase of mdio in Anacapa in the Summary. Thanks!

Hi, @somasun

The mdio bus is used for the management of the BCM83361 on RTM board.
In order to reduce the end-to-end channel budget of 212G links, retimers need to be used on some links on the switch tray between the TH6 switch and the backplane connector.

image

@chee-zhang chee-zhang force-pushed the anacapa_mdio_config_function branch 3 times, most recently from 1a51089 to e824aef Compare August 27, 2025 06:46
@facebook-github-bot
Copy link
Contributor

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

@chee-zhang chee-zhang force-pushed the anacapa_mdio_config_function branch from e824aef to 11f9551 Compare August 28, 2025 01:56
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

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