Skip to content
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

[ragile]Adapter kernel 5.x #9942

Closed
wants to merge 32 commits into from
Closed

[ragile]Adapter kernel 5.x #9942

wants to merge 32 commits into from

Conversation

pettershao-ragilenetworks
Copy link
Contributor

Why I did it

Ragile adapter ra-b6510-32c ra-b6510-48v8c ra-b6910-64c ra-b6920-4s to kernel 5.x

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

This is for gcov swss repo, need be merge before gcov swss repo.
BranchName:
CAFID:
BUGID:
WorkPackageName:
The ratio of self research code(0~1): 1

Signed-off-by: “pettershao” <pettershao@ragilenetworks.com>
@lgtm-com
Copy link

lgtm-com bot commented Feb 9, 2022

This pull request introduces 2 alerts when merging 4e698de into d136a39 - view on LGTM.com

new alerts:

  • 2 for Wrong number of arguments in a class instantiation

@lgtm-com
Copy link

lgtm-com bot commented Feb 14, 2022

This pull request introduces 2 alerts when merging d4ab510 into aad2761 - view on LGTM.com

new alerts:

  • 2 for Wrong number of arguments in a class instantiation

Signed-off-by: “pettershao” <pettershao@ragilenetworks.com>
@lgtm-com
Copy link

lgtm-com bot commented Feb 18, 2022

This pull request introduces 3 alerts when merging dfcc64e into d540492 - view on LGTM.com

new alerts:

  • 2 for Wrong number of arguments in a class instantiation
  • 1 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Feb 18, 2022

This pull request introduces 3 alerts when merging 43bb57a into d540492 - view on LGTM.com

new alerts:

  • 2 for Wrong number of arguments in a class instantiation
  • 1 for Unused import

@pettershao-ragilenetworks
Copy link
Contributor Author

@sujinmkang @lguohan @prgeor build failed, can help check why can't find $(M)/../../../../pddf/i2c/Module.symvers.PDDF which worked fine for PR #8164

@lgtm-com
Copy link

lgtm-com bot commented Feb 21, 2022

This pull request introduces 3 alerts when merging c4580c8 into f65a071 - view on LGTM.com

new alerts:

  • 2 for Wrong number of arguments in a class instantiation
  • 1 for Unused import

BranchName:
CAFID:
BUGID:
WorkPackageName:
The ratio of self research code(0~1): 1

Signed-off-by: “pettershao” <pettershao@ragilenetworks.com>
@lgtm-com
Copy link

lgtm-com bot commented Feb 28, 2022

This pull request introduces 3 alerts when merging dc844ad into 5daf482 - view on LGTM.com

new alerts:

  • 2 for Wrong number of arguments in a class instantiation
  • 1 for Unused import

BranchName:
CAFID:
BUGID:
WorkPackageName:
The ratio of self research code(0~1): 1

Signed-off-by: “pettershao” <pettershao@ragilenetworks.com>
@lgtm-com
Copy link

lgtm-com bot commented Mar 1, 2022

This pull request introduces 3 alerts when merging 0a681e3 into 47d9b26 - view on LGTM.com

new alerts:

  • 2 for Wrong number of arguments in a class instantiation
  • 1 for Unused import

@pettershao-ragilenetworks
Copy link
Contributor Author

pettershao-ragilenetworks commented Mar 3, 2022

@sujinmkang @lguohan @prgeor @vdahiya12 @qiluo-msft adoption for 5.x is done, help forward it, thanks!

root@stephen-100g:/home/admin# show version

SONiC Software Version: SONiC.master-9942.76602-d18a0dac3
Distribution: Debian 11.2
Kernel: 5.10.0-8-2-amd64
Build commit: d18a0dac3
Build date: Tue Mar  1 03:05:54 UTC 2022
Built by: AzDevOps@sonic-build-workers-0017V1

Platform: x86_64-ragile_ra-b6910-64c-r0
HwSKU: RA-B6910-64C
ASIC: broadcom
ASIC Count: 1
Serial Number: www.ragilenetworks.com
Model Number: 01013656
Hardware Revision: N/A
Uptime: 16:43:35 up 50 min,  2 users,  load average: 0.96, 0.91, 0.96

Docker images:
REPOSITORY                    TAG                           IMAGE ID       SIZE
docker-orchagent              latest                        32309d2e29b4   461MB
docker-orchagent              master-9942.76602-d18a0dac3   32309d2e29b4   461MB
docker-platform-monitor       latest                        3d747ee494bd   540MB
docker-platform-monitor       master-9942.76602-d18a0dac3   3d747ee494bd   540MB
docker-sflow                  latest                        ad0592aca49f   442MB
docker-sflow                  master-9942.76602-d18a0dac3   ad0592aca49f   442MB
docker-nat                    latest                        38fc3a844ef9   444MB
docker-nat                    master-9942.76602-d18a0dac3   38fc3a844ef9   444MB
docker-macsec                 latest                        2c571b06542a   444MB
docker-macsec                 master-9942.76602-d18a0dac3   2c571b06542a   444MB
docker-fpm-frr                latest                        2f92cae2f797   459MB
docker-fpm-frr                master-9942.76602-d18a0dac3   2f92cae2f797   459MB
docker-snmp                   latest                        b7692aab3e88   470MB
docker-snmp                   master-9942.76602-d18a0dac3   b7692aab3e88   470MB
docker-sonic-mgmt-framework   latest                        b2f83d79d4d5   582MB
docker-sonic-mgmt-framework   master-9942.76602-d18a0dac3   b2f83d79d4d5   582MB
docker-router-advertiser      latest                        e484021f2290   426MB
docker-router-advertiser      master-9942.76602-d18a0dac3   e484021f2290   426MB
docker-lldp                   latest                        8901e02e2686   466MB
docker-lldp                   master-9942.76602-d18a0dac3   8901e02e2686   466MB
docker-gbsyncd-credo          latest                        8b5f974fdedb   443MB
docker-gbsyncd-credo          master-9942.76602-d18a0dac3   8b5f974fdedb   443MB
docker-mux                    latest                        5aa625f009a7   479MB
docker-mux                    master-9942.76602-d18a0dac3   5aa625f009a7   479MB
docker-dhcp-relay             latest                        cf366a7d17dc   448MB
docker-sonic-telemetry        latest                        08dde19c0493   527MB
docker-sonic-telemetry        master-9942.76602-d18a0dac3   08dde19c0493   527MB
docker-database               latest                        bdc6cf798f3e   439MB
docker-database               master-9942.76602-d18a0dac3   bdc6cf798f3e   439MB
docker-teamd                  latest                        b221b9c111bb   441MB
docker-teamd                  master-9942.76602-d18a0dac3   b221b9c111bb   441MB
docker-syncd-brcm             latest                        e679c2044337   805MB
docker-syncd-brcm             master-9942.76602-d18a0dac3   e679c2044337   805MB

root@stephen-100g:/home/admin# docker ps -a
CONTAINER ID   IMAGE                                COMMAND                  CREATED          STATUS          PORTS     NAMES
d10ca7da700d   cf366a7d17dc                         "/usr/bin/docker_ini…"   40 minutes ago   Up 40 minutes             dhcp_relay
be6bc54854ec   docker-snmp:latest                   "/usr/local/bin/supe…"   47 minutes ago   Up 40 minutes             snmp
ee80d1c315be   docker-sonic-mgmt-framework:latest   "/usr/local/bin/supe…"   47 minutes ago   Up 40 minutes             mgmt-framework
47c4bbb4e30e   docker-sonic-telemetry:latest        "/usr/local/bin/supe…"   47 minutes ago   Up 40 minutes             telemetry
a7f22ac6ebdf   docker-router-advertiser:latest      "/usr/bin/docker-ini…"   50 minutes ago   Up 40 minutes             radv
1f8eca9ba22d   docker-lldp:latest                   "/usr/bin/docker-lld…"   50 minutes ago   Up 40 minutes             lldp
fbc234e01e5d   docker-syncd-brcm:latest             "/usr/local/bin/supe…"   50 minutes ago   Up 40 minutes             syncd
e16dd5a3737e   docker-teamd:latest                  "/usr/local/bin/supe…"   50 minutes ago   Up 40 minutes             teamd
86606634d618   docker-orchagent:latest              "/usr/bin/docker-ini…"   50 minutes ago   Up 40 minutes             swss
988d94040b9b   docker-fpm-frr:latest                "/usr/bin/docker_ini…"   50 minutes ago   Up 40 minutes             bgp
9f5e80bfe9e8   docker-platform-monitor:latest       "/usr/bin/docker_ini…"   50 minutes ago   Up 40 minutes             pmon
3fbd6e98dca5   docker-database:latest               "/usr/local/bin/dock…"   50 minutes ago   Up 50 minutes             database
root@stephen-100g:/home/admin# show platform ?
Usage: show platform [OPTIONS] COMMAND [ARGS]...

  Show platform-specific hardware info

Options:
  -?, -h, --help  Show this message and exit.

Commands:
  fan          Show fan status information
  firmware     Show firmware information
  pcieinfo     Show Device PCIe Info
  psustatus    Show PSU status information
  ssdhealth    Show SSD Health information
  summary      Show hardware platform information
  syseeprom    Show system EEPROM information
  temperature  Show device temperature information
root@stephen-100g:/home/admin# show platform fan
      Drawer    LED         FAN               Speed    Direction    Presence    Status          Timestamp
------------  -----  ----------  ------------------  -----------  ----------  --------  -----------------
fan drawer 1  green  Fantray1_1                 50%      exhaust     Present        OK  20220303 16:43:21
fan drawer 2  green  Fantray2_1                 50%      exhaust     Present        OK  20220303 16:43:21
fan drawer 3  green  Fantray3_1                 50%      exhaust     Present        OK  20220303 16:43:21
         N/A    off   PSU1_FAN1                0.0%      exhaust     Present    Not OK  20220303 16:43:21
         N/A  green   PSU2_FAN1  70.75555555555556%      exhaust     Present        OK  20220303 16:43:21
root@stephen-100g:/home/admin# show platform firmware ?
Usage: fwutil show [OPTIONS] COMMAND [ARGS]...

  Display platform info

Options:
  --help  Show this message and exit.

Commands:
  status   Show platform components status
  update   status : Show platform components auto_update status
  updates  Show available updates
  version  Show utility version
root@stephen-100g:/home/admin# show platform firmware status
Chassis    Module    Component    Version    Description
---------  --------  -----------  ---------  -------------
root@stephen-100g:/home/admin# show platform firmware version
fwutil version 2.0.0.0
root@stephen-100g:/home/admin# show platform pcieinfo
==============================Display PCIe Device===============================
bus:dev.fn 00:00.0 - dev_id=0x6f00, Host bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D DMI2 (rev 03)
bus:dev.fn 00:01.0 - dev_id=0x6f02, PCI bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D PCI Express Root Port 1 (rev 03)
bus:dev.fn 00:01.1 - dev_id=0x6f03, PCI bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D PCI Express Root Port 1 (rev 03)
......
bus:dev.fn ff:1e.7 - dev_id=0x6f9f, System peripheral: Intel Corporation Device 6f9f (rev 03)
bus:dev.fn ff:1f.0 - dev_id=0x6f88, System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D Power Control Unit (rev 03)
bus:dev.fn ff:1f.2 - dev_id=0x6f8a, System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D Power Control Unit (rev 03)
root@stephen-100g:/home/admin# show platform psustatus
PSU    Model       Serial         HW Rev    Voltage (V)    Current (A)    Power (W)    Status       LED
-----  ----------  -------------  --------  -------------  -------------  -----------  -----------  -----
PSU 1  GW-CRPS800  R408C0P134098  N/A       0.0            0.0            0.0          NOT OK       off
PSU 2  4h@             R408C0P134095  N/A       N/A            N/A            N/A          NOT PRESENT  off
root@stephen-100g:/home/admin# show platform syseeprom .
Usage: show platform syseeprom [OPTIONS]
Try "show platform syseeprom -h" for help.

Error: Got unexpected extra argument (.)
root@stephen-100g:/home/admin# show platform syseeprom
TlvInfo Header:
   Id String:    TlvInfo
   Version:      1
   Total Length: 189
TLV Name             Code      Len  Value
-------------------  ------  -----  -----------------------------
Product Name         0x21       12  RA-B6910-64C
Part Number          0x22        8  01013656
Serial Number        0x23       13  0000000000000
Base MAC Address     0x24        6  58:69:6C:FB:21:08
Manufacture Date     0x25       19  11/18/2016 23:22:42
Device Version       0x26        1  100
Label Revision       0x27        3  R01
Platform Name        0x28       29  x86_64-ragile_ra-b6910-64c-r0
ONIE Version         0x29        7  2018.02
MAC Addresses        0x2A        2  3
Manufacturer         0x2B        6  Ragile
Manufacture Country  0x2C        3  USA
Vendor Name          0x2D        6  Ragile
Diag Version         0x2E        8  0.1.0.15
Service Tag          0x2F       22  www.ragilenetworks.com
Vendor Extension     0xFD        6
CRC-32               0xFE        4  0xB831616C

(checksum valid)
root@stephen-100g:/home/admin# show platform temperature
  Sensor    Temperature    High TH    Low TH    Crit High TH    Crit Low TH    Warning          Timestamp
--------  -------------  ---------  --------  --------------  -------------  ---------  -----------------
  Temp_1           27.5         80       N/A             N/A            N/A      False  20220303 16:45:21
  Temp_2           27           80       N/A             N/A            N/A      False  20220303 16:45:21
  Temp_3           36           80       N/A             N/A            N/A      False  20220303 16:45:21
root@stephen-100g:/home/admin#

@lgtm-com
Copy link

lgtm-com bot commented Mar 3, 2022

This pull request introduces 2 alerts when merging e0e3c2d into 14de0a1 - view on LGTM.com

new alerts:

  • 2 for Wrong number of arguments in a class instantiation

@pettershao-ragilenetworks
Copy link
Contributor Author

pettershao-ragilenetworks commented Mar 4, 2022

Also please ignore these two LGTM alerts since they are lgtm problem.


2 new LGTM alerts can be ignored. These alerts are related to Fan() and Thermal() class initialization. Different platforms uses different number of arguments in the init func.

@pettershao-ragilenetworks
Copy link
Contributor Author

@sujinmkang @lguohan @prgeor @vdahiya12 @qiluo-msft help forward this, thanks!

@@ -0,0 +1,63 @@
<DeviceMiniGraph xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="Microsoft.Search.Autopilot.Evolution">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove minigraph, thanks.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pettershao-ragilenetworks can you please address guohan's review comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BranchName:
CAFID:
BUGID:
WorkPackageName:
The ratio of self research code(0~1): 1

Signed-off-by: “pettershao” <pettershao@ragilenetworks.com>
@lgtm-com
Copy link

lgtm-com bot commented Mar 23, 2022

This pull request introduces 2 alerts when merging 9ba5362 into 9451a9d - view on LGTM.com

new alerts:

  • 2 for Wrong number of arguments in a class instantiation

@pettershao-ragilenetworks
Copy link
Contributor Author

2 new LGTM alerts can be ignored. These alerts are related to Fan() and Thermal() class initialization. Different platforms uses different number of arguments in the init func.

2 new LGTM alerts can be ignored. These alerts are related to Fan() and Thermal() class initialization. Different platforms uses different number of arguments in the init func.

@pettershao-ragilenetworks
Copy link
Contributor Author

@sujinmkang @lguohan @prgeor @vdahiya12 @qiluo-msft help forward this, thanks!

pettershao-ragilenetworks and others added 15 commits April 12, 2022 09:08
BranchName:
CAFID:
BUGID:
WorkPackageName:
The ratio of self research code(0~1): 1

Signed-off-by: “pettershao” <pettershao@ragilenetworks.com>
Signed-off-by: “pettershao” <pettershao@ragilenetworks.com>
BranchName:
CAFID:
BUGID:
WorkPackageName:
The ratio of self research code(0~1): 1

Signed-off-by: “pettershao” <pettershao@ragilenetworks.com>
BranchName:
CAFID:
BUGID:
WorkPackageName:
The ratio of self research code(0~1): 1

Signed-off-by: “pettershao” <pettershao@ragilenetworks.com>
BranchName:
CAFID:
BUGID:
WorkPackageName:
The ratio of self research code(0~1): 1

Signed-off-by: “pettershao” <pettershao@ragilenetworks.com>
@lgtm-com
Copy link

lgtm-com bot commented Apr 12, 2022

This pull request introduces 2 alerts when merging 238f0c8 into cd330f0 - view on LGTM.com

new alerts:

  • 2 for Wrong number of arguments in a class instantiation

@pettershao-ragilenetworks
Copy link
Contributor Author

@sujinmkang Is there something else that I need to do? thanks!

@sujinmkang
Copy link
Collaborator

@pettershao-ragilenetworks Can you please rebase this PR?

@pettershao-ragilenetworks
Copy link
Contributor Author

pettershao-ragilenetworks commented May 6, 2022

@pettershao-ragilenetworks Can you please rebase this PR?

@sujinmkang The repo seems too old, I refolk one repo and resubmit a PR, please check this: #10762

This pull request was closed.
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.

3 participants