397908aa59
- Why I did it
Facilitate Automatic integration of new hw-mgmt version into SONiC.
Inputs to the Script:
MLNX_HW_MANAGEMENT_VERSION Eg: 7.0040.5202
CREATE_BRANCH: (y|n) Creates a branch instead of a commit (optional, default: n)
BRANCH_SONIC: Only relevant when CREATE_BRANCH is y. Default: master.
Note: These should be provided through SONIC_OVERRIDE_BUILD_VARS parameter
Output:
Script creates a commit (in each of sonic-buildimage, sonic-linux-kernel) with all the changes required for upgrading the hw-management version to a version provided by MLNX_HW_MANAGEMENT_VERSION
Brief Summary of the changes made:
MLNX_HW_MANAGEMENT_VERSION flag in the hw-management.mk file
hw-mgmt submodule is updated to the corresponding version
Updates are made to non-upstream-patches/patches and series.patch file
series, kconfig-inclusion and kconfig-exclusion files can be updated in the sonic-linux-kernel repo
sonic-linux-kernel/patches folder is updated with the corresponding upstream patches
Based on the inputs, there could be a branch seen in the local for each of the repo's. Branch is named as <branch>_<parent_commit>_integrate_<hw_mgmt_version>
- How I did it
Added a new make target which can be invoked by calling make integrate-mlnx-hw-mgmt
user@server:/sonic-buildimage$ git rev-parse --abbrev-ref HEAD
master_23193446a_integrate_7.0020.5052
user@server:/sonic-buildimage$ git log --oneline -n 2
f66e01867 (HEAD -> master_23193446a_integrate_V.7.0020.5052, show) Intgerate HW-MGMT V.7.0020.5052 Changes
23193446a
(master_intg_hw_mgmt) Update logic
user@server:/sonic-buildimage/src/sonic-linux-kernel$ git rev-parse --abbrev-ref HEAD
master_6847319_integrate_7.0020.4104
user@server:/sonic-buildimage/src/sonic-linux-kernel$ git log --oneline -n 2
6094f71 (HEAD -> master_6847319_integrate_V.7.0020.5052) Intgerate HW-MGMT V.7.0020.5052 Changes
6847319 (origin/master, origin/HEAD) Read ID register for optoe1 to find pageable bit in optoe driver (#308)
Changes made will be summarized under sonic-buildimage/integrate-mlnx-hw-mgmt_user.out file. Debugging and troubleshooting output is written to sonic-buildimage/integrate-mlnx-hw-mgmt.log files
User output file & stdout file:
log_files.tar.gz
Limitations:
Assumes the changes would only work for amd64
Assumes the non-upstream patches in mellanox only belong to hw-mgmt
- How to verify it
Build the Kernel
Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
64 lines
3.8 KiB
Plaintext
64 lines
3.8 KiB
Plaintext
# Current non-upstream patch list, should be updated by hwmgmt_kernel_patches.py script
|
|
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
|