Skip to content

Showtech collection for gearbox#4305

Open
arpit-nexthop wants to merge 1 commit intosonic-net:masterfrom
nexthop-ai:gearboxutil_changes
Open

Showtech collection for gearbox#4305
arpit-nexthop wants to merge 1 commit intosonic-net:masterfrom
nexthop-ai:gearboxutil_changes

Conversation

@arpit-nexthop
Copy link

Why I did it

Hummingbird debugability enhancement

How I did it

  1. Updated gearboxutil to show gearbox fec stats and histogram
  2. Added gearbox stats in the generate_dump

How to verify it

Verified by updating the utilities on the device

root@humm107:/home/admin/sonic_dump_humm107_20260220_233621/dump# cat gearbox.phys_status
  PHY Id    Name    Firmware
--------  ------  ----------
       0    phy0
       1    phy1
       2    phy2
       3    phy3
       4    phy4
       5    phy5
       6    phy6
       7    phy7
       8    phy8
       9    phy9
      10   phy10
      11   phy11
      12   phy12
      13   phy13
      14   phy14
      15   phy15
root@humm107:/home/admin/sonic_dump_humm107_20260220_233621/dump# cat gearbox.interfaces_status
  PHY Id    Interface        MAC Lanes    MAC Lane Speed        PHY Lanes    PHY Lane Speed                       Line Lanes    Line Lane Speed    Oper    Admin
--------  -----------  ---------------  ----------------  ---------------  ----------------  -------------------------------  -----------------  ------  -------
       0    Ethernet0      96,97,98,99              100G      20,21,22,23              100G                  0,1,2,3,4,5,6,7                50G    down       up
       0    Ethernet4  100,101,102,103              100G      24,25,26,27              100G            8,9,10,11,12,13,14,15                50G    down       up
       1    Ethernet8  104,105,106,107              100G      52,53,54,55              100G          32,33,34,35,36,37,38,39                50G      up       up
       1   Ethernet12  108,109,110,111              100G      56,57,58,59              100G          40,41,42,43,44,45,46,47                50G      up       up
       2   Ethernet16  112,113,114,115              100G      84,85,86,87              100G          64,65,66,67,68,69,70,71                50G      up       up
       2   Ethernet20  116,117,118,119              100G      88,89,90,91              100G          72,73,74,75,76,77,78,79                50G      up       up
       3   Ethernet24  120,121,122,123              100G  116,117,118,119              100G      96,97,98,99,100,101,102,103                50G    down       up
       3   Ethernet28  124,125,126,127              100G  120,121,122,123              100G  104,105,106,107,108,109,110,111                50G    down       up
       4   Ethernet32      56,57,58,59              100G  148,149,150,151              100G  128,129,130,131,132,133,134,135                50G      up       up
       4   Ethernet36      60,61,62,63              100G  152,153,154,155              100G  136,137,138,139,140,141,142,143                50G      up       up
       5   Ethernet40      48,49,50,51              100G  180,181,182,183              100G  160,161,162,163,164,165,166,167                50G      up       up
       5   Ethernet44      52,53,54,55              100G  184,185,186,187              100G  168,169,170,171,172,173,174,175                50G      up       up
       6   Ethernet48      40,41,42,43              100G  212,213,214,215              100G  192,193,194,195,196,197,198,199                50G    down       up
       6   Ethernet52      44,45,46,47              100G  216,217,218,219              100G  200,201,202,203,204,205,206,207                50G    down       up
       7   Ethernet56      32,33,34,35              100G  244,245,246,247              100G  224,225,226,227,228,229,230,231                50G    down       up
       7   Ethernet60      36,37,38,39              100G  248,249,250,251              100G  232,233,234,235,236,237,238,239                50G    down       up
       8   Ethernet64  128,129,130,131              100G  276,277,278,279              100G  256,257,258,259,260,261,262,263                50G    down       up
       8   Ethernet68  132,133,134,135              100G  280,281,282,283              100G  264,265,266,267,268,269,270,271                50G    down       up
       9   Ethernet72  136,137,138,139              100G  308,309,310,311              100G  288,289,290,291,292,293,294,295                50G      up       up
       9   Ethernet76  140,141,142,143              100G  312,313,314,315              100G  296,297,298,299,300,301,302,303                50G      up       up
      10   Ethernet80  144,145,146,147              100G  340,341,342,343              100G  320,321,322,323,324,325,326,327                50G    down       up
      10   Ethernet84  148,149,150,151              100G  344,345,346,347              100G  328,329,330,331,332,333,334,335                50G    down       up
      11   Ethernet88  152,153,154,155              100G  372,373,374,375              100G  352,353,354,355,356,357,358,359                50G    down       up
      11   Ethernet92  156,157,158,159              100G  376,377,378,379              100G  360,361,362,363,364,365,366,367                50G    down       up
      12   Ethernet96  216,217,218,219              100G  404,405,406,407              100G  384,385,386,387,388,389,390,391                50G    down       up
      12  Ethernet100  220,221,222,223              100G  408,409,410,411              100G  392,393,394,395,396,397,398,399                50G    down       up
      13  Ethernet104  208,209,210,211              100G  436,437,438,439              100G  416,417,418,419,420,421,422,423                50G    down       up
      13  Ethernet108  212,213,214,215              100G  440,441,442,443              100G  424,425,426,427,428,429,430,431                50G    down       up
      14  Ethernet112  200,201,202,203              100G  468,469,470,471              100G  448,449,450,451,452,453,454,455                50G    down       up
      14  Ethernet116  204,205,206,207              100G  472,473,474,475              100G  456,457,458,459,460,461,462,463                50G    down       up
      15  Ethernet120  192,193,194,195              100G  500,501,502,503              100G  480,481,482,483,484,485,486,487                50G    down       up
      15  Ethernet124  196,197,198,199              100G  504,505,506,507              100G  488,489,490,491,492,493,494,495                50G    down       up
root@humm107:/home/admin/sonic_dump_humm107_20260220_233621/dump# cat gearbox.interfaces_fec_stats
GB IFACE              STATE         FEC_CORR    FEC_UNCORR    FEC_SYMBOL_ERR    FEC_PRE_BER    FEC_POST_BER    FEC_PRE_BER_MAX    FEC_MAX_T
------------------  -------  ---------------  ------------  ----------------  -------------  --------------  -----------------  -----------
Ethernet0 Line            D                0             0                 0              0               0                N/A           -1
Ethernet0 System          D                0             0                 0              0               0                N/A            0
Ethernet4 Line            D                0             0                 0              0               0                N/A           -1
Ethernet4 System          D                0             0                 0              0               0                N/A            0
Ethernet8 Line            U          220,520             0           220,563       1.72e-10               0           3.32e-09            2
Ethernet8 System          U                0             0                 0              0               0                N/A            0
Ethernet12 Line           U        1,354,624             0         1,354,651       1.22e-09               0           2.10e-08            2
Ethernet12 System         U                0             0                 0              0               0                N/A            0
Ethernet16 Line           U        7,083,207             0         7,083,540       5.09e-09               0           8.45e-08            2
Ethernet16 System         U                0             0                 0              0               0                N/A            0
Ethernet20 Line           U          829,028             0           829,084       5.74e-10               0           1.05e-08            2
Ethernet20 System         U                0             0                 0              0               0                N/A            0
Ethernet24 Line           D                0             0                 0              0               0                N/A           -1
Ethernet24 System         D                0             0                 0              0               0                N/A            0
Ethernet28 Line           D                0             0                 0              0               0                N/A           -1
Ethernet28 System         D                0             0                 0              0               0                N/A            0
Ethernet32 Line           U           86,274             0            86,274       6.12e-11               0           9.15e-10            1
Ethernet32 System         U                0             0                 0              0               0                N/A            0
Ethernet36 Line           U          406,899             0           406,911       2.94e-10               0           4.31e-09            2
Ethernet36 System         U                0             0                 0              0               0                N/A            0
Ethernet40 Line           U           79,391             0            79,391       6.35e-11               0           9.55e-10            1
Ethernet40 System         U                0             0                 0              0               0                N/A            0
Ethernet44 Line           U        1,536,060             0         1,539,998       1.11e-09               0           2.18e-08            2
Ethernet44 System         U                0             0                 0              0               0                N/A            0
Ethernet48 Line           D                0             0                 0              0               0                N/A           -1
Ethernet48 System         D                0             0                 0              0               0                N/A            0
Ethernet52 Line           D                0             0                 0              0               0                N/A           -1
Ethernet52 System         D                0             0                 0              0               0                N/A            0
Ethernet56 Line           D                0             0                 0              0               0                N/A           -1
Ethernet56 System         D                0             0                 0              0               0                N/A            0
Ethernet60 Line           D                0             0                 0              0               0                N/A           -1
Ethernet60 System         D                0             0                 0              0               0                N/A            0
Ethernet64 Line           D                0             0                 0              0               0                N/A           -1
Ethernet64 System         D                0             0                 0              0               0                N/A            0
Ethernet68 Line           D                0             0                 0              0               0                N/A           -1
Ethernet68 System         D                0             0                 0              0               0                N/A            0
Ethernet72 Line           U  312,709,914,292             0   356,976,752,515       0.000243               0           3.17e-03           11
Ethernet72 System         U                0             0                 0              0               0                N/A            0
Ethernet76 Line           U  505,262,430,313             2   636,201,881,166       0.000578               0           2.79e-03           13
Ethernet76 System         U                0             0                 0              0               0                N/A            0
Ethernet80 Line           D                0             0                 0              0               0                N/A           -1
Ethernet80 System         D                0             0                 0              0               0                N/A            0
Ethernet84 Line           D                0             0                 0              0               0           1.59e-03           -1
Ethernet84 System         D                0             0                 0              0               0                N/A            0
Ethernet88 Line           D  114,568,839,289        43,477   120,163,157,029       0.000103               0           3.89e-03           15
Ethernet88 System         D                0             0                 0              0               0                N/A            0
Ethernet92 Line           D                0             0                 0              0               0                N/A           -1
Ethernet92 System         D                0             0                 0              0               0                N/A            0
Ethernet96 Line           D                0             0                 0              0               0                N/A           -1
Ethernet96 System         D                0             0                 0              0               0                N/A            0
Ethernet100 Line          D                0             0                 0              0               0                N/A           -1
Ethernet100 System        D                0             0                 0              0               0                N/A            0
Ethernet104 Line          D                0             0                 0              0               0                N/A           -1
Ethernet104 System        D                0             0                 0              0               0                N/A            0
Ethernet108 Line          D                0             0                 0              0               0                N/A           -1
Ethernet108 System        D                0             0                 0              0               0                N/A            0
Ethernet112 Line          D                0             0                 0              0               0                N/A           -1
Ethernet112 System        D                0             0                 0              0               0                N/A            0
Ethernet116 Line          D                0             0                 0              0               0                N/A           -1
Ethernet116 System        D                0             0                 0              0               0                N/A            0
Ethernet120 Line          D                0             0                 0              0               0                N/A           -1
Ethernet120 System        D                0             0                 0              0               0                N/A            0
Ethernet124 Line          D                0             0                 0              0               0                N/A           -1
Ethernet124 System        D                0             0                 0              0               0                N/A            0
root@humm107:/home/admin/sonic_dump_humm107_20260220_233621/dump# more gearbox.interfaces_fec_histogram

Ethernet0 Line
Symbol Errors Per Codeword      Codewords
----------------------------  -----------
BIN0                                    0
BIN1                                    0
BIN2                                    0
BIN3                                    0
BIN4                                    0
BIN5                                    0
BIN6                                    0
BIN7                                    0
BIN8                                    0
BIN9                                    0
BIN10                                   0
BIN11                                   0
BIN12                                   0
BIN13                                   0
BIN14                                   0
BIN15                                   0

Ethernet0 System
Symbol Errors Per Codeword        Codewords
----------------------------  -------------
BIN0                          1378036805686
BIN1                                      0
BIN2                                      0
BIN3                                      0
BIN4                                      0
BIN5                                      0
BIN6                                      0
BIN7                                      0
BIN8                                      0
BIN9                                      0
BIN10                                     0
BIN11                                     0
BIN12                                     0
BIN13                                     0
BIN14                                     0
BIN15                                     0

Ethernet4 Line
Symbol Errors Per Codeword      Codewords
----------------------------  -----------
BIN0                                    0
BIN1                                    0
BIN2                                    0
BIN3                                    0
BIN4                                    0
BIN5                                    0
BIN6                                    0
BIN7                                    0
BIN8                                    0
BIN9                                    0
BIN10                                   0
BIN11                                   0
BIN12                                   0
BIN13                                   0
BIN14                                   0
BIN15                                   0
...

Which release branch to backport

  • 202505
  • 202511

1) Updated gearboxutil to show gearbox fec stats and histogram
2) Added gearbox stats in the generate_dump

Signed-off-by: arpit-nexthop <arpit@nexthop.ai>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants