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

[Mellanox] Non upstream patches for hw-mgmt V.4.0020.4104 #13792

Merged
merged 2 commits into from
Feb 19, 2023

Conversation

stephenxs
Copy link
Collaborator

@stephenxs stephenxs commented Feb 13, 2023

Why I did it

Add non-upstream kernel patches for the Nvidia platforms
These patches are not yet upstream but needed for new technology.
A flow to upstream them is in progress and once they will be approved they will be moved officially to sonic-linux-kernel.
Till then to include them in the build (not must) the build option INCLUDE_EXTERNAL_PATCH_TAR=y should be included

How I did it

Zip all the patches in to a tar.gz tarball.

How to verify it

Manually 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)

0099-mlxsw-core_hwmon-Fix-variable-names-for-hwmon-attrib.patch
0100-mlxsw-core_thermal-Rename-labels-according-to-naming.patch
0101-mlxsw-core_thermal-Remove-obsolete-API-for-query-res.patch
0102-mlxsw-reg-Add-mgpir_-prefix-to-MGPIR-fields-comments.patch
0103-mlxsw-core-Remove-unnecessary-asserts.patch
0104-mlxsw-reg-Extend-MTMP-register-with-new-slot-number-.patch
0105-mlxsw-reg-Extend-MTBR-register-with-new-slot-number-.patch
0106-mlxsw-reg-Extend-MCIA-register-with-new-slot-number-.patch
0107-mlxsw-reg-Extend-MCION-register-with-new-slot-number.patch
0108-mlxsw-reg-Extend-PMMP-register-with-new-slot-number-.patch
0109-mlxsw-reg-Extend-MGPIR-register-with-new-slot-fields.patch
0110-mlxsw-core_env-Pass-slot-index-during-PMAOS-register.patch
0111-mlxsw-reg-Add-new-field-to-Management-General-Periph.patch
0112-mlxsw-core-Extend-interfaces-for-cable-info-access-w.patch
0113-mlxsw-core-Extend-port-module-data-structures-for-li.patch
0114-mlxsw-core-Move-port-module-events-enablement-to-a-s.patch
0115-mlxsw-core_hwmon-Split-gearbox-initialization.patch
0116-mlxsw-core_hwmon-Extend-internal-structures-to-suppo.patch
0117-mlxsw-core_hwmon-Introduce-slot-parameter-in-hwmon-i.patch
0118-mlxsw-core_hwmon-Extend-hwmon-device-with-gearbox-ma.patch
0119-mlxsw-core_thermal-Extend-internal-structures-to-sup.patch
0120-mlxsw-core_thermal-Split-gearbox-initialization.patch
0121-mlxsw-core_thermal-Extend-thermal-area-with-gearbox-.patch
0122-mlxsw-core_thermal-Add-line-card-id-prefix-to-line-c.patch
0123-mlxsw-core_thermal-Use-exact-name-of-cooling-devices.patch
0124-mlxsw-core_thermal-Use-common-define-for-thermal-zon.patch
0125-devlink-add-support-to-create-line-card-and-expose-t.patch
0126-devlink-implement-line-card-provisioning.patch
0127-devlink-implement-line-card-active-state.patch
0128-devlink-add-port-to-line-card-relationship-set.patch
0129-devlink-introduce-linecard-info-get-message.patch
0130-devlink-introduce-linecard-info-get-message.patch
0131-mlxsw-reg-Add-Ports-Mapping-event-Configuration-Regi.patch
0132-mlxsw-reg-Add-Management-DownStream-Device-Query-Reg.patch
0133-mlxsw-reg-Add-Management-DownStream-Device-Control-R.patch
0134-mlxsw-reg-Add-Management-Binary-Code-Transfer-Regist.patch
0135-mlxsw-core_linecards-Add-line-card-objects-and-imple.patch
0136-mlxsw-core_linecards-Implement-line-card-activation-.patch
0137-mlxsw-core-Extend-driver-ops-by-remove-selected-port.patch
0138-mlxsw-spectrum-Add-port-to-linecard-mapping.patch
0139-mlxsw-reg-Introduce-Management-Temperature-Extended-.patch
0140-mlxsw-core-Add-APIs-for-thermal-sensor-mapping.patch
0141-mlxsw-reg-Add-Management-DownStream-Device-Tunneling.patch
0142-mlxsw-core_linecards-Probe-devices-for-provisioned-l.patch
0143-mlxsw-core_linecards-Expose-device-FW-version-over-d.patch
0144-mlxsw-core-Introduce-flash-update-components.patch
0145-mlxfw-Get-the-PSID-value-using-op-instead-of-passing.patch
0146-mlxsw-core_linecards-Implement-line-card-device-flas.patch
0147-mlxsw-core_linecards-Introduce-ops-for-linecards-sta.patch
0148-mlxsw-core-Add-interfaces-for-line-card-initializati.patch
0149-mlxsw-core_thermal-Add-interfaces-for-line-card-init.patch
0150-mlxsw-core_hwmon-Add-interfaces-for-line-card-initia.patch
0151-mlxsw-minimal-Prepare-driver-for-modular-system-supp.patch
0152-mlxsw-core-Extend-bus-init-function-with-event-handl.patch
0153-mlxsw-i2c-Add-support-for-system-events-handling.patch
0154-mlxsw-core-Export-line-card-API.patch
0155-mlxsw-minimal-Add-system-event-handler.patch
0156-mlxsw-minimal-Add-interfaces-for-line-card-initializ.patch
0163-platform-mellanox-Introduce-support-for-rack-manager.patch
0176-platform-mellanox-fix-reset_pwr_converter_fail-attri.patch
0177-Documentation-ABI-fix-description-of-fix-reset_pwr_c.patch
0178-platform-mellanox-Introduce-support-for-next-generat.patch

Signed-off-by: Stephen Sun <[email protected]>
@liat-grozovik
Copy link
Collaborator

@dgsudharsan @vivekrnv please help to review

@vivekrnv
Copy link
Contributor

I'd suggest either overriding this flag https://github.com/sonic-net/sonic-buildimage/blob/master/platform/mellanox/rules.mk#L55, or zip the patches.tar to patches.tar.gz and thus we don't have to provide EXTERNAL_KERNEL_PATCH_TAR while building, Also did you test compiling the kernel, did the patches apply without any conflicts?

@stephenxs
Copy link
Collaborator Author

I'd suggest either overriding this flag https://github.com/sonic-net/sonic-buildimage/blob/master/platform/mellanox/rules.mk#L55, or zip the patches.tar to patches.tar.gz and thus we don't have to provide EXTERNAL_KERNEL_PATCH_TAR while building, Also did you test compiling the kernel, did the patches apply without any conflicts?

Hi
Thanks for reviewing it.
I did test to compile it and manually checked that all the patches had been successfully applied.
Regarding the tarball, what's the difference between .tar and .tar.gz?

@dgsudharsan
Copy link
Collaborator

I'd suggest either overriding this flag https://github.com/sonic-net/sonic-buildimage/blob/master/platform/mellanox/rules.mk#L55, or zip the patches.tar to patches.tar.gz and thus we don't have to provide EXTERNAL_KERNEL_PATCH_TAR while building, Also did you test compiling the kernel, did the patches apply without any conflicts?

Hi Thanks for reviewing it. I did test to compile it and manually checked that all the patches had been successfully applied. Regarding the tarball, what's the difference between .tar and .tar.gz?

Hi @stephenxs I believe if you have .tar.gz you need not have to override EXTERNAL_KERNEL_PATCH_TAR during build and just setting the flag INCLUDE_EXTERNAL_PATCH_TAR=y should be sufficient since the default value as Vivek pointed out is below
override EXTERNAL_KERNEL_PATCH_TAR := $(BUILD_WORKDIR)/$(PLATFORM_PATH)/non-upstream-patches/patches.tar.gz

I recommend updating it to gz for simplicity during building

Copy link
Collaborator

@dgsudharsan dgsudharsan left a comment

Choose a reason for hiding this comment

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

Please update tar to tar.gz

@stephenxs
Copy link
Collaborator Author

I'd suggest either overriding this flag https://github.com/sonic-net/sonic-buildimage/blob/master/platform/mellanox/rules.mk#L55, or zip the patches.tar to patches.tar.gz and thus we don't have to provide EXTERNAL_KERNEL_PATCH_TAR while building, Also did you test compiling the kernel, did the patches apply without any conflicts?

Hi Thanks for reviewing it. I did test to compile it and manually checked that all the patches had been successfully applied. Regarding the tarball, what's the difference between .tar and .tar.gz?

Hi @stephenxs I believe if you have .tar.gz you need not have to override EXTERNAL_KERNEL_PATCH_TAR during build and just setting the flag INCLUDE_EXTERNAL_PATCH_TAR=y should be sufficient since the default value as Vivek pointed out is below override EXTERNAL_KERNEL_PATCH_TAR := (BUILDWORKDIR)/(PLATFORM_PATH)/non-upstream-patches/patches.tar.gz

I recommend updating it to gz for simplicity during building

I see. I think

EXTERNAL_KERNEL_PATCH_TAR

Got your point. I thought tar -xf doesn't work for .gar.gz file. Now I understand it does work.
Thank you for clarifying.

Signed-off-by: Stephen Sun <[email protected]>
@stephenxs
Copy link
Collaborator Author

Please update tar to tar.gz

Updated.

@liat-grozovik liat-grozovik merged commit 1cd0902 into sonic-net:master Feb 19, 2023
@stephenxs stephenxs deleted the non-upstream-patches branch February 19, 2023 08:41
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Feb 23, 2023
…13792)

- Why I did it
Add non-upstream kernel patches for the Nvidia platforms
These patches are not yet upstream but needed for new technology.
A flow to upstream them is in progress and once they will be approved they will be moved officially to sonic-linux-kernel.
Till then to include them in the build (not must) the build option INCLUDE_EXTERNAL_PATCH_TAR=y should be included

- How I did it
Zip all the patches in to a tar.gz tarball.

- How to verify it
Manually test

Signed-off-by: Stephen Sun <[email protected]>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202211: #13960

StormLiangMS pushed a commit to StormLiangMS/sonic-buildimage that referenced this pull request Mar 28, 2023
Related work items: sonic-net#276, sonic-net#305, sonic-net#332, sonic-net#338, sonic-net#339, sonic-net#1188, sonic-net#1192, sonic-net#1197, sonic-net#1206, sonic-net#1685, sonic-net#1690, sonic-net#1696, sonic-net#1699, sonic-net#1709, sonic-net#1727, sonic-net#1737, sonic-net#1741, sonic-net#1742, sonic-net#2511, sonic-net#2512, sonic-net#2532, sonic-net#2559, sonic-net#2626, sonic-net#2638, sonic-net#2645, sonic-net#2649, sonic-net#2660, sonic-net#2669, sonic-net#2670, sonic-net#2678, sonic-net#10084, sonic-net#11442, sonic-net#11873, sonic-net#12047, sonic-net#12110, sonic-net#12207, sonic-net#12529, sonic-net#12678, sonic-net#13235, sonic-net#13287, sonic-net#13372, sonic-net#13395, sonic-net#13456, sonic-net#13497, sonic-net#13522, sonic-net#13545, sonic-net#13547, sonic-net#13552, sonic-net#13569, sonic-net#13572, sonic-net#13578, sonic-net#13591, sonic-net#13611, sonic-net#13647, sonic-net#13649, sonic-net#13660, sonic-net#13710, sonic-net#13716, sonic-net#13724, sonic-net#13726, sonic-net#13732, sonic-net#13735, sonic-net#13739, sonic-net#13757, sonic-net#13786, sonic-net#13792, sonic-net#13800, sonic-net#13801, sonic-net#13802, sonic-net#13805, sonic-net#13806, sonic-net#13812, sonic-net#13814, sonic-net#13822, sonic-net#13831, sonic-net#13834, sonic-net#13847, sonic-net#13870, sonic-net#13882, sonic-net#13884, sonic-net#13885, sonic-net#13894, sonic-net#13895, sonic-net#13926, sonic-net#13932, sonic-net#13935, sonic-net#13942, sonic-net#13951, sonic-net#13953, sonic-net#13964
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.

6 participants