Skip to content

[mellanox] Facilitate automatic integration of sdk kernel patches#44

Closed
vivekrnv wants to merge 5 commits intomaster_intg_hw_mgmtfrom
master_intg_sdk_kernel
Closed

[mellanox] Facilitate automatic integration of sdk kernel patches#44
vivekrnv wants to merge 5 commits intomaster_intg_hw_mgmtfrom
master_intg_sdk_kernel

Conversation

@vivekrnv
Copy link
Owner

@vivekrnv vivekrnv commented Apr 8, 2023

Why I did it

Facilitate Automatic integration of sdk kernel patches into SONiC.

Inputs to the Script:

  1. MLNX_SDK_VERSION Eg: 4.5.4206
  2. MLNX_SDK_ISSU_VERSION Eg: 101
    Note: If nothing is provided the one already present in the sdk.mk file is used
  3. MLNX_SDK_SOURCE_BASE_URL:
    Note: If nothing is provided the upstream sdk drivers url is used
  4. CREATE_BRANCH: (y|n) Creates a branch instead of a commit (optional, default: n)
  5. BRANCH_SONIC: Only relevant when CREATE_BRANCH is y. Default: master.

Note: These should be provided through SONIC_OVERRIDE_BUILD_VARS parameter

Output:

  1. Script creates a commit in sonic-linux-kernel with any updates to sdk-kernel patches in sonic in accordance with the version provided by MLNX_SDK_VERSION

Note: Script Doesn't commit anything to linux-kernel when there aren't any changes required..

How I did it

  1. Added a new make target which can be invoked by calling make integrate-mlnx-sdk
user@server:/sonic-buildimage/src/sonic-linux-kernel$ git rev-parse --abbrev-ref HEAD
master_6f38dca_integrate_4.5.4206

user@server:/sonic-buildimage/src/sonic-linux-kernel$ git log --oneline -n 1
d64d1e7 (HEAD -> master_6f38dca_integrate_4.5.4206) Intgerate MLNX SDK 4.5.4206 Kernel Patches

Changes made will be summarized under sonic-buildimage/integrate-mlnx-sdk_user.out file. Debugging and troubleshooting output is written to sonic-buildimage/integrate-mlnx-sdk.log files

http://nbu-nfs.mellanox.com/auto/mtrsysgwork/vkarri/integrate-mlnx-sdk.log

http://nbu-nfs.mellanox.com/auto/mtrsysgwork/vkarri/integrate-mlnx-sdk_user.out

Limitations:

  1. Assumes that the sdk kernel patches are always upstreamed

How to verify it

Build the Kernel and test

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

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

vivekrnv added 3 commits April 8, 2023 01:08
Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
print("-> FATAL Kernel dir with patches doesn't exist: {}".format(path_to_check))
sys.exit(1)

def filter_patches(self):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we rename this to process_patches?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Updated

Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
@vivekrnv vivekrnv requested a review from dgsudharsan April 13, 2023 00:46
@vivekrnv vivekrnv closed this Apr 13, 2023
vivekrnv pushed a commit that referenced this pull request Nov 22, 2023
…ly (sonic-net#17140)

#### Why I did it
src/dhcprelay
```
* 40c6877 - (HEAD -> master, origin/master, origin/HEAD) [CodeQL] fix unmet dependency for `build-swss-common` (#44) (30 hours ago) [Jing Zhang]
```
#### How I did it
#### How to verify it
#### Description for the changelog
vivekrnv pushed a commit that referenced this pull request Mar 24, 2025
…lly (sonic-net#731)

#### Why I did it
src/sonic-swss
```
* b87da49 - (HEAD -> 202412, origin/202412) Set Port UPDATE_DSCP attribute when TC_TO_DSCP map is attached (#44) (9 hours ago) [mssonicbld]
* 8c99374 - sonic-swss: Code changes for WRED and ECN statistics (#46) (9 hours ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
vivekrnv pushed a commit that referenced this pull request Mar 24, 2025
… automatically (sonic-net#752)

#### Why I did it
src/sonic-platform-common
```
* b24e130 - (HEAD -> 202412, origin/202412) [code sync] Merge code from sonic-net/sonic-platform-common:202411 to 202412 (#44) (20 hours ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
vivekrnv pushed a commit that referenced this pull request Apr 10, 2025
…ly (sonic-net#21743)

#### Why I did it
src/sonic-stp
```
* 29eb387 - (HEAD -> master, origin/master, origin/HEAD) Fixing compilaion error for marvell_armhf (#47) (9 hours ago) [Divya Kumaran Chandralekha]
* b7da558 - Merge pull request #44 from wajahatrazi/stp_co_pr (3 days ago) [Divya Kumaran Chandralekha]
|\ 
| failure_prs.log skip_prs.log 47e1e77 - Merge branch 'master' into stp_co_pr (3 days ago) [Divya Kumaran Chandralekha]
| |\ 
| |/ 
|/| 
* | 6e4a94f - Merge pull request #46 from divyachandralekha/pvst_pr_1 (4 days ago) [Divya Kumaran Chandralekha]
|\ \ 
| failure_prs.log skip_prs.log | aa5e824 - libevent explicit building dependency removed (4 days ago) [Divya Chandralekha]
|/ / 
* | 9345e5a - Merge pull request #43 from omaaartamer/fix/alignment-warnings (5 days ago) [Divya Kumaran Chandralekha]
* | eedb772 - [stp] Add memory alignment padding to structures (9 weeks ago) [omaaartamer]
* | 128e53d - fix: resolve STP alignment warnings (9 weeks ago) [omaaartamer]
 / 
* 30febfa - Fixing changes in the code (9 weeks ago) [Wajahat Razi]
```
#### How I did it
#### How to verify it
#### Description for the changelog
vivekrnv pushed a commit that referenced this pull request Jul 23, 2025
…sonic-net#22959)

#### Why I did it
src/dhcpmon
```
* 9f93a22 - (HEAD -> 202505, origin/202505) Fix incorrect counting in for packets related to standby interface in dualtor (#44) (2 days ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
vivekrnv pushed a commit that referenced this pull request Mar 17, 2026
How I did it
562f89b (HEAD -> main, origin/main, origin/HEAD) [H6-128] Change HWSKU name and remove port I2C clock setting (#44)
1babc9b [H6-64] Update thermal algo, FW upgrade, PSU modules (#43)
d742aeb [H6-128] Add support for H6-128 Platform (#42)
f2dbdd7 Fix the UnboundLocalError to address thermalctld stacktrace
54e453a Add _cpm_firmware_upgrade_reboot_IMMs method
908d62a Fix the Unable_to_reach_CPM reboot-cause show issue

Signed-off-by: y7zhou <yi.1.zhou@nokia.com>
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