-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add gearbox phy device files and a new physyncd docker to support VS gearbox phy feature #4851
Changes from 17 commits
f7253f6
39f20a1
fb2ccb7
76d0d2d
06ce6fa
4e14591
e8958db
3aa9f32
21af753
18d6b90
26ecb37
c5e7280
889a98d
07a4785
86a0c5c
8115362
ba5cd86
79fc081
910e23e
844fc16
7ac845a
2a6ded4
321c923
ea01eb7
d316ebc
db2da7f
387a076
9809b8e
3cb2055
26f85d4
0b808f3
be70bfa
106de40
2014eea
6eaf960
d633780
f3fe3c4
9f4cc83
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"CONTEXTS": [ | ||
{ | ||
"guid" : 0, | ||
"name" : "sw0", | ||
"dbAsic" : "ASIC_DB", | ||
"dbCounters" : "COUNTERS_DB", | ||
"dbFlex": "FLEX_COUNTER_DB", | ||
"dbState" : "STATE_DB", | ||
"switches": [ | ||
{ | ||
"index" : 0, | ||
"hwinfo" : "" | ||
} | ||
] | ||
}, | ||
{ | ||
"guid" : 1, | ||
"name" : "phy1", | ||
"dbAsic" : "GB_ASIC_DB", | ||
"dbCounters" : "GB_COUNTERS_DB", | ||
"dbFlex": "GB_FLEX_COUNTER_DB", | ||
"dbState" : "STATE_DB", | ||
"switches": [ | ||
{ | ||
"index" : 1, | ||
"hwinfo" : "" | ||
} | ||
] | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"phys": [ | ||
{ | ||
"phy_id": 1, | ||
"name": "sesto-1", | ||
"address": "0x1000", | ||
"lib_name": "libsai_phy_sesto-1.so", | ||
"firmware_path": "/tmp/phy-sesto-1.bin", | ||
"config_file": "/usr/share/sonic/hwsku/phy1_config_1.json", | ||
"sai_init_config_file": "/usr/share/sonic/hwsku/sesto-1.bcm", | ||
"phy_access": "mdio", | ||
"bus_id": 0 | ||
} | ||
], | ||
"interfaces": [ | ||
{ | ||
"name": "Ethernet0", | ||
"index": 0, | ||
"phy_id" : 1, | ||
"system_lanes": [200,201], | ||
"line_lanes": [206] | ||
}, | ||
{ | ||
"name": "Ethernet4", | ||
"index": 1, | ||
"phy_id" : 1, | ||
"system_lanes": [202,203], | ||
"line_lanes": [207] | ||
}, | ||
{ | ||
"name": "Ethernet8", | ||
"index": 2, | ||
"phy_id" : 1, | ||
"system_lanes": [204,205], | ||
"line_lanes": [208] | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
{ | ||
"lanes": [ | ||
{ | ||
"index": 200, | ||
"local_lane_id": 0, | ||
"system_side": true, | ||
"tx_polarity": 0, | ||
"rx_polarity": 0, | ||
"line_tx_lanemap": 0, | ||
"line_rx_lanemap": 0, | ||
"line_to_system_lanemap": 0, | ||
"mdio_addr": "0x0200" | ||
}, | ||
{ | ||
"index": 201, | ||
"local_lane_id": 0, | ||
"system_side": true, | ||
"tx_polarity": 0, | ||
"rx_polarity": 0, | ||
"line_tx_lanemap": 0, | ||
"line_rx_lanemap": 0, | ||
"line_to_system_lanemap": 0, | ||
"mdio_addr": "0x0201" | ||
}, | ||
{ | ||
"index": 202, | ||
"local_lane_id": 0, | ||
"system_side": true, | ||
"tx_polarity": 0, | ||
"rx_polarity": 0, | ||
"line_tx_lanemap": 0, | ||
"line_rx_lanemap": 0, | ||
"line_to_system_lanemap": 0, | ||
"mdio_addr": "0x0202" | ||
}, | ||
{ | ||
"index": 203, | ||
"local_lane_id": 0, | ||
"system_side": true, | ||
"tx_polarity": 0, | ||
"rx_polarity": 0, | ||
"line_tx_lanemap": 0, | ||
"line_rx_lanemap": 0, | ||
"line_to_system_lanemap": 0, | ||
"mdio_addr": "0x0203" | ||
}, | ||
{ | ||
"index": 204, | ||
"local_lane_id": 0, | ||
"system_side": false, | ||
"tx_polarity": 0, | ||
"rx_polarity": 0, | ||
"line_tx_lanemap": 0, | ||
"line_rx_lanemap": 0, | ||
"line_to_system_lanemap": 200, | ||
"mdio_addr": "0x0204" | ||
}, | ||
{ | ||
"index": 205, | ||
"local_lane_id": 0, | ||
"system_side": false, | ||
"tx_polarity": 0, | ||
"rx_polarity": 0, | ||
"line_tx_lanemap": 0, | ||
"line_rx_lanemap": 0, | ||
"line_to_system_lanemap": 202, | ||
"mdio_addr": "0x0205" | ||
}, | ||
{ | ||
"index": 206, | ||
"local_lane_id": 0, | ||
"system_side": true, | ||
"tx_polarity": 0, | ||
"rx_polarity": 0, | ||
"line_tx_lanemap": 0, | ||
"line_rx_lanemap": 0, | ||
"line_to_system_lanemap": 0, | ||
"mdio_addr": "0x0206" | ||
}, | ||
{ | ||
"index": 207, | ||
"local_lane_id": 0, | ||
"system_side": false, | ||
"tx_polarity": 0, | ||
"rx_polarity": 0, | ||
"line_tx_lanemap": 0, | ||
"line_rx_lanemap": 0, | ||
"line_to_system_lanemap": 0, | ||
"mdio_addr": "0x0207" | ||
}, | ||
{ | ||
"index": 208, | ||
"local_lane_id": 0, | ||
"system_side": true, | ||
"tx_polarity": 0, | ||
"rx_polarity": 0, | ||
"line_tx_lanemap": 0, | ||
"line_rx_lanemap": 0, | ||
"line_to_system_lanemap": 0, | ||
"mdio_addr": "0x0208" | ||
} | ||
], | ||
"ports": [ | ||
{ | ||
"index": 0, | ||
"mdio_addr": "0x2000", | ||
"system_speed": 20000, | ||
"system_fec": "none", | ||
"system_auto_neg": true, | ||
"system_loopback": "none", | ||
"system_training": false, | ||
"line_speed": 40000, | ||
"line_fec": "none", | ||
"line_auto_neg": true, | ||
"line_media_type": "fiber", | ||
"line_intf_type": "none", | ||
"line_loopback": "none", | ||
"line_training": false, | ||
"line_adver_speed": [], | ||
"line_adver_fec": [], | ||
"line_adver_auto_neg": false, | ||
"line_adver_asym_pause": false, | ||
"line_adver_media_type": "fiber" | ||
}, | ||
{ | ||
"index": 1, | ||
"mdio_addr": "0x3000", | ||
"system_speed": 20000, | ||
"system_fec": "none", | ||
"system_auto_neg": true, | ||
"system_loopback": "none", | ||
"system_training": false, | ||
"line_speed": 40000, | ||
"line_fec": "none", | ||
"line_auto_neg": true, | ||
"line_media_type": "fiber", | ||
"line_intf_type": "none", | ||
"line_loopback": "none", | ||
"line_training": false, | ||
"line_adver_speed": [], | ||
"line_adver_fec": [], | ||
"line_adver_auto_neg": false, | ||
"line_adver_asym_pause": false, | ||
"line_adver_media_type": "fiber" | ||
}, | ||
{ | ||
"index": 2, | ||
"mdio_addr": "0x4000", | ||
"system_speed": 20000, | ||
"system_fec": "none", | ||
"system_auto_neg": true, | ||
"system_loopback": "none", | ||
"system_training": false, | ||
"line_speed": 40000, | ||
"line_fec": "none", | ||
"line_auto_neg": true, | ||
"line_media_type": "fiber", | ||
"line_intf_type": "none", | ||
"line_loopback": "none", | ||
"line_training": false, | ||
"line_adver_speed": [], | ||
"line_adver_fec": [], | ||
"line_adver_auto_neg": false, | ||
"line_adver_asym_pause": false, | ||
"line_adver_media_type": "fiber" | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"CONTEXTS": [ | ||
{ | ||
"guid" : 0, | ||
"name" : "sw0", | ||
"dbAsic" : "ASIC_DB", | ||
"dbCounters" : "COUNTERS_DB", | ||
"dbFlex": "FLEX_COUNTER_DB", | ||
"dbState" : "STATE_DB", | ||
"switches": [ | ||
{ | ||
"index" : 0, | ||
"hwinfo" : "" | ||
} | ||
] | ||
}, | ||
{ | ||
"guid" : 1, | ||
"name" : "phy1", | ||
"dbAsic" : "GB_ASIC_DB", | ||
"dbCounters" : "GB_COUNTERS_DB", | ||
"dbFlex": "GB_FLEX_COUNTER_DB", | ||
"dbState" : "STATE_DB", | ||
"switches": [ | ||
{ | ||
"index" : 1, | ||
"hwinfo" : "" | ||
} | ||
] | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"phys": [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. where can i find the the format for this gearbox_config.json? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
{ | ||
"phy_id": 1, | ||
"name": "sesto-1", | ||
sydlogan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"address": "0x1000", | ||
"lib_name": "libsai_phy_sesto-1.so", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do we need to specify the library name here. it seems unnecessary. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The original requirement was to support the flexibility that each PHY could have their own so file. Please note that this is currently a placeholder and can change as required. |
||
"firmware_path": "/tmp/phy-sesto-1.bin", | ||
sydlogan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"config_file": "/usr/share/sonic/hwsku/sesto-1.json", | ||
"sai_init_config_file": "/usr/share/sonic/hwsku/sesto-1.bcm", | ||
sydlogan marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. where is this sai_init_config_file checked in? I think we need this file to be checked in. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This initial gearbox delivery is targeting VS and therefore doesn't use any .bcm file. Please note that this is currently a placeholder and can change as required. |
||
"phy_access": "mdio", | ||
"bus_id": 0 | ||
} | ||
], | ||
"interfaces": [ | ||
{ | ||
"name": "Ethernet48", | ||
"index": 49, | ||
"phy_id" : 1, | ||
"system_lanes": [200,201,202,203], | ||
"line_lanes": [204,205] | ||
}, | ||
{ | ||
"name": "Ethernet49", | ||
"index": 50, | ||
"phy_id" : 1, | ||
"system_lanes": [206,207,208,209], | ||
"line_lanes": [210,211] | ||
}, | ||
{ | ||
"name": "Ethernet50", | ||
"index": 51, | ||
"phy_id" : 1, | ||
"system_lanes": [212,213,214,215], | ||
sydlogan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"line_lanes": [216] | ||
} | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the purpose to add gearbox setting to dell s6000? s6000 is phyless design.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guohan, The s6000 actually has a sesto PHY and was used in our original prototype of gearbox and Phy abstraction interface. We have changed the development vehicle to the Silverstone DP as it is using a real Milleneo Broadcom PHY supported by Broadcom Phy Abstraction Interface code.
The s6000 is now only used for virtual Switch if that makes sense. Silverstone DP PR was not approved yet (its been pending for a while) but we did merge it into our SONiC base and are using that for real testing on JR2 / Gearbox.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lguohan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not aware of s6000 has any phy. which port has the phy?