├── .contrib └── version_tag.py ├── .github ├── CODEOWNERS └── workflows │ ├── autotag.yml │ ├── build-release.yml │ └── codeql-analysis.yml ├── .gitignore ├── .pulse-trufflehog-allowlist.json ├── CI └── ONL │ ├── daily │ ├── linux-4.19 │ │ ├── .gitkeep │ │ └── @ONL_more-kernel-debug-options.patch │ └── linux-4.9 │ │ ├── .gitkeep │ │ └── @ONL_more-kernel-debug-options.patch │ └── verification │ ├── linux-4.19 │ ├── .gitkeep │ ├── 0099-Add-Thermal-emulation-for-test-purpose.patch │ └── @ONL_thermal_sim_kernel_config.patch │ └── linux-4.9 │ ├── .gitkeep │ ├── 0099-Add-Thermal-emulation-for-test-purpose.patch │ └── @ONL_thermal_sim_kernel_config.patch ├── Documentation ├── Chassis_Management_for_Mellanox_Switch_Systems_with_Sysfs_rev.2.8.pdf └── Thermal Monitoring for Mellanox Systems with third party OS.pdf ├── README.md ├── debian ├── Release.txt ├── changelog ├── compat ├── control ├── copyright ├── hw-management.hw-management-fast-sysfs-monitor.init ├── hw-management.hw-management-fast-sysfs-monitor.service ├── hw-management.hw-management-sync.service ├── hw-management.hw-management-sysfs-monitor.init ├── hw-management.hw-management-sysfs-monitor.service ├── hw-management.hw-management-tc.init ├── hw-management.hw-management-tc.service ├── hw-management.hw-management.init ├── hw-management.hw-management.service ├── hw-management.manpages ├── rules └── source │ ├── format │ └── options ├── doc └── man │ ├── hw-management-tc.service.8 │ ├── hw-management.1 │ └── hw-management.service.8 ├── docker_build ├── build-helper.sh ├── build.sh └── dockerfile_hw_mgmt ├── examples └── src │ ├── ev_hndl │ ├── ev_hndl.c │ ├── ev_hndl.h │ ├── lc_event_handler.c │ └── lc_event_handler.py │ └── iorw │ ├── README │ ├── iorw.c │ └── iorw.h ├── recipes-kernel └── linux │ ├── Patch_Status_Table.txt │ ├── deploy_kernel_patches.py │ ├── kconfig_5_10.txt │ ├── kconfig_5_14.txt │ ├── kconfig_6_1.txt │ ├── linux-5.10 │ ├── 0001-i2c-mlxcpld-Update-module-license.patch │ ├── 0002-i2c-mlxcpld-Decrease-polling-time-for-performance-im.patch │ ├── 0003-i2c-mlxcpld-Add-support-for-I2C-bus-frequency-settin.patch │ ├── 0004-i2c-mux-mlxcpld-Update-module-license.patch │ ├── 0005-i2c-mux-mlxcpld-Move-header-file-out-of-x86-realm.patch │ ├── 0006-i2c-mux-mlxcpld-Convert-driver-to-platform-driver.patch │ ├── 0007-i2c-mux-mlxcpld-Prepare-mux-selection-infrastructure.patch │ ├── 0008-i2c-mux-mlxcpld-Get-rid-of-adapter-numbers-enforceme.patch │ ├── 0009-i2c-mux-mlxcpld-Extend-driver-to-support-word-addres.patch │ ├── 0010-i2c-mux-mlxcpld-Extend-supported-mux-number.patch │ ├── 0011-i2c-mux-mlxcpld-Add-callback-to-notify-mux-creation-.patch │ ├── 0012-hwmon-mlxreg-fan-Add-support-for-fan-drawers-capabil.patch │ ├── 0013-hwmon-pmbus-shrink-code-and-remove-pmbus_do_remove.patch │ ├── 0014-thermal-drivers-core-Use-a-char-pointer-for-the-cool.patch │ ├── 0015-mlxsw-core-Remove-critical-trip-points-from-thermal-.patch │ ├── 0016-net-don-t-include-ethtool.h-from-netdevice.h.patch │ ├── 0017-mlxsw-reg-Extend-MTMP-register-with-new-threshold-fi.patch │ ├── 0018-mlxsw-thermal-Add-function-for-reading-module-temper.patch │ ├── 0019-mlxsw-thermal-Read-module-temperature-thresholds-usi.patch │ ├── 0020-mlxsw-thermal-Fix-null-dereference-of-NULL-temperatu.patch │ ├── 0021-mlxsw-reg-Add-bank-number-to-MCIA-register.patch │ ├── 0022-mlxsw-reg-Document-possible-MCIA-status-values.patch │ ├── 0023-ethtool-Allow-network-drivers-to-dump-arbitrary-EEPR.patch │ ├── 0024-net-ethtool-Export-helpers-for-getting-EEPROM-info.patch │ ├── 0025-ethtool-Add-fallback-to-get_module_eeprom-from-netli.patch │ ├── 0026-mlxsw-core-Add-support-for-module-EEPROM-read-by-pag.patch │ ├── 0027-ethtool-Decrease-size-of-module-EEPROM-get-policy-ar.patch │ ├── 0028-ethtool-Use-kernel-data-types-for-internal-EEPROM-st.patch │ ├── 0029-ethtool-Validate-module-EEPROM-length-as-part-of-pol.patch │ ├── 0030-ethtool-Validate-module-EEPROM-offset-as-part-of-pol.patch │ ├── 0031-mlxsw-core_env-Read-module-temperature-thresholds-us.patch │ ├── 0032-mlxsw-core_env-Avoid-unnecessary-memcpy-s.patch │ ├── 0033-mlxsw-core-Set-thermal-zone-polling-delay-argument-t.patch │ ├── 0034-mlxsw-Verify-the-accessed-index-doesn-t-exceed-the-a.patch │ ├── 0035-hwmon-pmbus-Increase-maximum-number-of-phases-per-pa.patch │ ├── 0036-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2888-c.patch │ ├── 0037-dt-bindings-Add-MP2888-voltage-regulator-device.patch │ ├── 0038-ethtool-wire-in-generic-SFP-module-access.patch │ ├── 0039-ethtool-Fix-NULL-pointer-dereference-during-module-E.patch │ ├── 0040-phy-sfp-add-netlink-SFP-support-to-generic-SFP-code.patch │ ├── 0041-net-ethtool-clear-heap-allocations-for-ethtool-funct.patch │ ├── 0042-ethtool-support-FEC-settings-over-netlink.patch │ ├── 0043-platform-mellanox-mlxreg-io-Fix-argument-base-in-kst.patch │ ├── 0044-platform-mellanox-mlxreg-io-Fix-read-access-of-n-byt.patch │ ├── 0045-i2c-mlxcpld-Fix-criteria-for-frequency-setting.patch │ ├── 0046-i2c-mlxcpld-Reduce-polling-time-for-performance-impr.patch │ ├── 0047-i2c-mlxcpld-Allow-flexible-polling-time-setting-for-.patch │ ├── 0048-hwmon-pmbus-mp2975-Add-missed-POUT-attribute-for-pag.patch │ ├── 0049-leds-mlxreg-Provide-conversion-for-hardware-LED-colo.patch │ ├── 0050-leds-mlxreg-Skip-setting-LED-color-during-initializa.patch │ ├── 0051-leds-mlxreg-Allow-multi-instantiation-of-same-name-L.patch │ ├── 0052-hwmon-mlxreg-fan-Return-non-zero-value-when-fan-curr.patch │ ├── 0053-mlxsw-core-Avoid-creation-virtual-hwmon-objects-by-t.patch │ ├── 0054-mlxsw-minimal-Simplify-method-of-modules-number-dete.patch │ ├── 0055-platform_data-mlxreg-Add-new-type-to-support-modular.patch │ ├── 0056-platform-x86-mlx-platform-Add-initial-support-for-ne.patch │ ├── 0057-platform-mellanox-mlxreg-hotplug-Extend-logic-for-ho.patch │ ├── 0058-platform-x86-mlx-platform-Configure-notifier-callbac.patch │ ├── 0059-platform-mellanox-mlxreg-io-Extend-number-of-hwmon-a.patch │ ├── 0060-platform_data-mlxreg-Add-new-field-for-secured-acces.patch │ ├── 0061-platform-mellanox-mlxreg-lc-Add-initial-support-for-.patch │ ├── 0062-Documentation-ABI-Add-new-attributes-for-mlxreg-io-s.patch │ ├── 0063-Documentation-ABI-Add-new-line-card-attributes-for-m.patch │ ├── 0064-hwmon-mlxreg-fan-Extend-the-maximum-number-of-tachom.patch │ ├── 0065-platform-x86-mlx-platform-Extend-FAN-and-LED-config-.patch │ ├── 0066-platform-x86-mlx-platform-Add-new-attributes-for-Cof.patch │ ├── 0067-platform-mellanox-Add-dedicated-match-for-system-typ.patch │ ├── 0068-mlxsw-core-Initialize-switch-driver-last.patch │ ├── 0069-mlxsw-core-Remove-mlxsw_core_is_initialized.patch │ ├── 0070-mlxsw-core_env-Defer-handling-of-module-temperature-.patch │ ├── 0071-mlxsw-core_env-Convert-module_info_lock-to-a-mutex.patch │ ├── 0072-mlxsw-Track-per-module-port-status.patch │ ├── 0073-mlxsw-reg-Add-fields-to-PMAOS-register.patch │ ├── 0074-mlxsw-Make-PMAOS-pack-function-more-generic.patch │ ├── 0075-mlxsw-Add-support-for-transceiver-modules-reset.patch │ ├── 0076-ethtool-Add-ability-to-control-transceiver-modules-p.patch │ ├── 0077-mlxsw-reg-Add-Port-Module-Memory-Map-Properties-regi.patch │ ├── 0078-mlxsw-reg-Add-Management-Cable-IO-and-Notifications-.patch │ ├── 0079-mlxsw-Add-ability-to-control-transceiver-modules-pow.patch │ ├── 0080-ethtool-Add-transceiver-module-extended-states.patch │ ├── 0081-platform-x86-mlx-platform-Add-support-for-multiply-c.patch │ ├── 0082-mlxsw-core-Extend-external-cooling-device-whitelist-.patch │ ├── 0083-platform_data-mlxreg-Add-field-for-notification-call.patch │ ├── 0084-i2c-mlxcpld-Add-callback-to-notify-probing-completio.patch │ ├── 0085-hwmon-powr1220-Upgrade-driver-to-support-hwmon-info-.patch │ ├── 0086-hwmon-powr1220-Add-support-for-Lattice-s-POWR1014-po.patch │ ├── 0087-hwmon-Add-support-for-EMC2305-RPM-based-PWM-Fan-Spee.patch │ ├── 0088-dt-bindings-Add-description-for-EMC2305-for-RPM-base.patch │ ├── 0089-platform-mellanox-Add-support-for-new-SN2201-system.patch │ ├── 0090-Documentation-ABI-Add-new-attributes-for-mlxreg-io-s.patch │ ├── 0091-platform-x86-mlx-platform-Add-support-for-new-system.patch │ ├── 0092-platform-mellanox-mlxreg-lc-fix-error-code-in-mlxreg.patch │ ├── 0093-hwmon-mlxreg-fan-Extend-driver-to-support-multiply-P.patch │ ├── 0094-hwmon-mlxreg-fan-Extend-driver-to-support-multiply-c.patch │ ├── 0095-hwmon-mlxreg-fan-Fix-out-of-bounds-read-on-array-fan.patch │ ├── 0096-hwmon-mlxreg-fan-Modify-PWM-connectivity-validation.patch │ ├── 0097-1-mlxsw-Use-u16-for-local_port-field.patch │ ├── 0097-2-mlxsw-i2c-Fix-chunk-size-setting.patch │ ├── 0097-3-mlxsw-core_hwmon-Adjust-module-label-names.patch │ ├── 0097-hwmon-mlxreg-fan-Support-distinctive-names-per-diffe.patch │ ├── 0098-1-Revert-mlxsw-Use-u16-for-local_port-field.patch │ ├── 0098-2-Revert-mlxsw-i2c-Fix-chunk-size-setting.patch │ ├── 0098-3-Revert-mlxsw-core_hwmon-Adjust-module-label-names.patch │ ├── 0098-mlxsw-Use-weak-reverse-dependencies-for-firmware-fla.patch │ ├── 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 │ ├── 0152-mlxsw-i2c-Prevent-transaction-execution-for-spec.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 │ ├── 0157-platform-x86-mlx-platform-Make-activation-of-some-dr.patch │ ├── 0158-platform-x86-mlx-platform-Add-cosmetic-changes-for-a.patch │ ├── 0159-mlx-platform-Add-support-for-systems-equipped-with-t.patch │ ├── 0160-platform-mellanox-Introduce-support-for-COMe-managem.patch │ ├── 0161-platform-x86-mlx-platform-Add-support-for-new-system.patch │ ├── 0162-platform-mellanox-Add-COME-board-revision-register.patch │ ├── 0163-platform-mellanox-Introduce-support-for-rack-manager.patch │ ├── 0164-hwmon-jc42-Add-support-for-Seiko-Instruments-S-34TS0.patch │ ├── 0165-platform-mellanox-mlxreg-io-Add-locking-for-io-opera.patch │ ├── 0166-DS-leds-leds-mlxreg-Send-udev-event-from-leds-mlxreg.patch │ ├── 0167-DS-lan743x-Add-support-for-fixed-phy.patch │ ├── 0168-TMP-mlxsw-minimal-Ignore-error-reading-SPAD-register.patch │ ├── 0170-i2c-mlxcpld-Fix-register-setting-for-400KHz-frequenc.patch │ ├── 0171-platform-mellanox-mlxreg-lc-Fix-cleanup-on-failure-a.patch │ ├── 0172-DS-platform-mlx-platform-Add-SPI-path-for-rack-switc.patch │ ├── 0173-mlxsw-core-Add-support-for-OSFP-transceiver-modules.patch │ ├── 0174-DS-mlxsw-core_linecards-Skip-devlink-and-provisionin.patch │ ├── 0175-hwmon-pmbus-Add-support-for-Infineon-Digital-Multi-p.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 │ ├── 0179-hwmon-mlxreg-fan-TMP-Do-not-return-negative-value-fo.patch │ ├── 0180-hwmon-pmbus-Fix-sensors-readouts-for-MPS-Multi-phase.patch │ ├── 0181-Revert-Fix-out-of-bounds-memory-accesses-in-thermal.patch │ ├── 0182-platform-mellanox-Introduce-support-of-new-Nvidia-L1.patch │ ├── 0183-platform-mellanox-Split-initialization-procedure.patch │ ├── 0184-platform-mellanox-Split-logic-in-init-and-exit-flow.patch │ ├── 0185-platform-mellanox-Extend-all-systems-with-I2C-notifi.patch │ ├── 0186-platform-mellanox-mlxreg-hotplug-Allow-more-flexible.patch │ ├── 0187-platform_data-mlxreg-Add-field-with-mapped-resource-.patch │ ├── 0188-i2c-mux-Add-register-map-based-mux-driver.patch │ ├── 0189-i2c-mlxcpld-Allow-driver-to-run-on-ARM64-architectur.patch │ ├── 0190-i2c-mlxcpld-Support-PCIe-mapped-register-space.patch │ ├── 0192-i2c-mlxcpld-Add-support-for-extended-transaction-len.patch │ ├── 0193-platform-mellanox-mlx-platform-Add-mux-selection-reg.patch │ ├── 0194-platform-mellanox-mlx-platform-Move-bus-shift-assign.patch │ ├── 0195-platform-mellanox-Add-support-for-dynamic-I2C-channe.patch │ ├── 0195-platform-x86-MLX_PLATFORM-select-REGMAP-instead-of-d.patch │ ├── 0196-platform-mellanox-Cosmetic-changes.patch │ ├── 0197-platform-mellanox-Fix-order-in-exit-flow.patch │ ├── 0198-platform-mellanox-Add-new-attributes.patch │ ├── 0199-platform-mellanox-Change-register-offset-addresses.patch │ ├── 0200-dt-bindings-i2c-mellanox-i2c-mlxbf-convert-txt-to-YA.patch │ ├── 0201-i2c-mlxbf-incorrect-base-address-passed-during-io-wr.patch │ ├── 0202-i2c-mlxbf-prevent-stack-overflow-in-mlxbf_i2c_smbus_.patch │ ├── 0203-i2c-mlxbf-remove-IRQF_ONESHOT.patch │ ├── 0204-i2c-mlxbf-Fix-frequency-calculation.patch │ ├── 0205-i2c-mlxbf-support-lock-mechanism.patch │ ├── 0206-i2c-mlxbf-add-multi-slave-functionality.patch │ ├── 0207-i2c-mlxbf-support-BlueField-3-SoC.patch │ ├── 0208-i2c-mlxbf-remove-device-tree-support.patch │ ├── 0209-UBUNTU-SAUCE-i2c-mlxbf.c-Add-driver-version.patch │ ├── 0210-platform-mellanox-Typo-fix-in-the-file-mlxbf-bootctl.patch │ ├── 0211-UBUNTU-SAUCE-platform-mellanox-mlxbf-tmfifo-Add-Blue.patch │ ├── 0212-workqueue-Add-resource-managed-version-of-delayed-wo.patch │ ├── 0213-devm-helpers-Fix-devm_delayed_work_autocancel-kernel.patch │ ├── 0214-devm-helpers-Add-resource-managed-version-of-work-in.patch │ ├── 0215-UBUNTU-SAUCE-Add-support-to-pwr-mlxbf.c-driver.patch │ ├── 0216-Add-Mellanox-BlueField-Gigabit-Ethernet-driver.patch │ ├── 0217-mlxbf_gige-clear-valid_polarity-upon-open.patch │ ├── 0218-net-mellanox-mlxbf_gige-Replace-non-standard-interru.patch │ ├── 0219-mlxbf_gige-increase-MDIO-polling-rate-to-5us.patch │ ├── 0220-mlxbf_gige-remove-driver-managed-interrupt-counts.patch │ ├── 0221-mlxbf_gige-remove-own-module-name-define-and-use-KBU.patch │ ├── 0222-UBUNTU-SAUCE-mlxbf_gige-add-ethtool-mlxbf_gige_set_r.patch │ ├── 0223-UBUNTU-SAUCE-Fix-OOB-handling-RX-packets-in-heavy-tr.patch │ ├── 0224-UBUNTU-SAUCE-mlxbf_gige-clear-MDIO-gateway-lock-afte.patch │ ├── 0225-mlxbf_gige-compute-MDIO-period-based-on-i1clk.patch │ ├── 0226-net-mlxbf_gige-Fix-an-IS_ERR-vs-NULL-bug-in-mlxbf_gi.patch │ ├── 0227-UBUNTU-SAUCE-mlxbf_gige-add-MDIO-support-for-BlueFie.patch │ ├── 0228-UBUNTU-SAUCE-mlxbf_gige-support-10M-100M-1G-speeds-o.patch │ ├── 0229-mmc-sdhci-of-dwcmshc-add-rockchip-platform-support.patch │ ├── 0230-mmc-sdhci-of-dwcmshc-add-ACPI-support-for-BlueField-.patch │ ├── 0231-mmc-sdhci-of-dwcmshc-fix-error-return-code-in-dwcmsh.patch │ ├── 0232-mmc-sdhci-of-dwcmshc-set-MMC_CAP_WAIT_WHILE_BUSY.patch │ ├── 0233-mmc-sdhci-of-dwcmshc-Re-enable-support-for-the-BlueF.patch │ ├── 0234-UBUNTU-SAUCE-Support-BlueField-3-GPIO-driver.patch │ ├── 0235-regmap-debugfs-Enable-writing-to-the-regmap-debugfs-.patch │ ├── 0236-mmc-sdhci-of-dwcmshc-Enable-host-V4-support-for-Blue.patch │ ├── 0237-mlxbf-ptm-power-and-thermal-management-debugfs-drive.patch │ ├── 0238-UBUNTU-SAUCE-platform-mellanox-Add-ctrl-message-and-.patch │ ├── 0239-hwmon-mlxreg-fan-Return-zero-speed-for-broken-fan.patch │ ├── 0240-UBUNTU-SAUCE-mmc-sdhci-of-dwcmshc-add-the-missing-de.patch │ ├── 0241-DS-mlxsw-core_linecards-Disable-firmware-bundling-ma.patch │ ├── 0242-platform-mellanox-Add-field-upgrade-capability-regis.patch │ ├── 0243-platform-mellanox-Modify-reset-causes-description.patch │ ├── 0244-mlxsw-Use-u16-for-local_port-field-instead-of-u8.patch │ ├── 0245-mlxsw-minimal-Change-type-for-local-port.patch │ ├── 0246-mlxsw-i2c-Fix-chunk-size-setting-in-output-mailbox-b.patch │ ├── 0247-platform-mellanox-mlx-platform-Modify-graceful-shutd.patch │ ├── 0248-platform-mellanox-mlx-platform-Fix-signals-polarity-.patch │ ├── 0249-platform-mellanox-mlxreg-hotplug-Extend-condition-fo.patch │ ├── 0250-platform-mellanox-mlx-platform-Modify-health-and-pow.patch │ ├── 0251-platform-mellanox-mlx-platform-Add-reset-cause-attri.patch │ ├── 0252-platform-mellanox-mlx-platform-add-support-for-addit.patch │ ├── 0253-UBUNTU-SAUCE-mlxbf-gige-Fix-intermittent-no-ip-issue.patch │ ├── 0254-pinctrl-Introduce-struct-pinfunction-and-PINCTRL_PIN.patch │ ├── 0255-UBUNTU-SAUCE-gpio-mmio-handle-ngpios-properly-in-bgp.patch │ ├── 0255-pinctrl-mlxbf3-Add-pinctrl-driver-support.patch │ ├── 0256-UBUNTU-SAUCE-gpio-mlxbf3-Add-gpio-driver-support.patch │ ├── 0257-mlxsw-core_hwmon-Align-modules-label-name-assignment.patch │ ├── 0258-mlxsw-i2c-Limit-single-transaction.patch │ ├── 0259-mlxsw-i2c-Limit-single-transaction-buffer-size.patch │ ├── 0260-mlxsw-reg-Limit-MTBR-register-records-buffer-by-one-.patch │ ├── 0261-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2891-c.patch │ ├── 0262-UBUNTU-SAUCE-mmc-sdhci-of-dwcmshc-Add-runtime-PM-ope.patch │ ├── 0262-dt-bindings-trivial-devices-Add-mps-mp2891.patch │ ├── 0263-UBUNTU-SAUCE-mlxbf-ptm-use-0444-instead-of-S_IRUGO.patch │ ├── 0264-UBUNTU-SAUCE-mlxbf-ptm-add-atx-debugfs-nodes.patch │ ├── 0265-UBUNTU-SAUCE-mlxbf-ptm-update-module-version.patch │ ├── 0266-UBUNTU-SAUCE-mlxbf-gige-Fix-kernel-panic-at-shutdown.patch │ ├── 0267-platform-mellanox-mlx-platform-Modify-power-off-call.patch │ ├── 0268-Extend-driver-to-support-Infineon-Digital-Multi-phas.patch │ ├── 0269-dt-bindings-trivial-devices-Add-infineon-xdpe1a2g7.patch │ ├── 0270-leds-mlxreg-Add-support-for-new-flavour-of-capabilit.patch │ ├── 0271-leds-mlxreg-Remove-code-for-amber-LED-colour.patch │ ├── 0272-platform_data-mlxreg-Add-capability-bit-and-mask-fie.patch │ ├── 0273-hwmon-mlxreg-fan-Add-support-for-new-flavour-of-capa.patch │ ├── 0274-hwmon-mlxreg-fan-Extend-number-of-supporetd-fans.patch │ ├── 0275-platform-mellanox-nvsw-sn2201-change-fans-i2c-busses.patch │ ├── 0276-platform-mellanox-mlx-platform-Add-reset-callback.patch │ ├── 0277-platform-mellanox-mlx-platform-Prepare-driver-to-all.patch │ ├── 0278-platform-mellanox-mlx-platform-Introduce-ACPI-init-f.patch │ ├── 0279-platform-mellanox-mlx-platform-Get-interrupt-line-th.patch │ ├── 0280-platform-mellanox-Add-initial-support-for-PCIe-based.patch │ ├── 0281-platform-mellanox-Introduce-support-for-switches-equ.patch │ ├── 0282-mellanox-Relocate-mlx-platform-driver.patch │ ├── 0283-UBUNTU-SAUCE-mlxbf-tmfifo-fix-potential-race.patch │ ├── 0284-UBUNTU-SAUCE-mlxbf-tmfifo-Drop-the-Rx-packet-if-no-m.patch │ ├── 0285-UBUNTU-SAUCE-mlxbf-tmfifo-Drop-jumbo-frames.patch │ ├── 0286-UBUNTU-SAUCE-mlxbf-tmfifo.c-Amend-previous-tmfifo-pa.patch │ ├── 0287-mlxbf_gige-add-set_link_ksettings-ethtool-callback.patch │ ├── 0288-mlxbf_gige-fix-white-space-in-mlxbf_gige_eth_ioctl.patch │ ├── 0290-platform-mellanox-mlxreg-hotplug-Add-support-for-new.patch │ ├── 0291-platform-mellanox-mlx-platform-Change-register-name.patch │ ├── 0292-platform-mellanox-mlx-platform-Add-support-for-new-X.patch │ ├── 0293-gpio-mlxbf3-Fix-error-message.patch │ ├── 0294-mlxsw-i2c-Downstream-Add-retry-mechanism-for-failed-.patch │ ├── 0295-mlxsw-i2c-DBG-Add-debug-output-for-failed-transactio.patch │ ├── 0296-platform-mellanox-indicate-deferred-I2C-bus-creation.patch │ ├── 0297-platform-mellanox-mlxreg-dpu-Add-initial-support-for.patch │ ├── 0298-platform-mellanox-mlx-platform-Fix-FAN-tacho-reading.patch │ ├── 0299-platform-mellanox-Introduce-support-of-Nvidia-smart-.patch │ ├── 0300-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2855-c.patch │ ├── 0301-crypto-ccp-Reject-SEV-commands-with-mismatching-comm.patch │ ├── 0302-crypto-ccp-Play-nice-with-vmalloc-d-memory-for-SEV-c.patch │ ├── 0303-platform-mellanox-mlxreg-io-Extend-number-of-hwmon-a.patch │ ├── 0304-platform-mellanox-mlx-platform-Add-support-for-new-N.patch │ ├── 0305-platform-mellanox-Downstream-Add-support-for-new-Nvi.patch │ ├── 0306-platform-mellanox-Downstream-Add-support-DGX-flavor-.patch │ ├── 0307-platform_data-mlxreg-Add-fields-for-interrupt-storm-.patch │ ├── 0308-platform-mellanox-mlxreg-hotplug-Add-support-for-han.patch │ ├── 0309-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2869-c.patch │ ├── 0310-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp29502-.patch │ ├── 7001-mctp-Add-MCTP-base.patch │ ├── 7002-mctp-Add-base-socket-protocol-definitions.patch │ ├── 7003-mctp-Add-base-packet-definitions.patch │ ├── 7004-mctp-Add-sockaddr_mctp-to-uapi.patch │ ├── 7005-mctp-Add-initial-driver-infrastructure.patch │ ├── 7006-mctp-Add-device-handling-and-netlink-interface.patch │ ├── 7007-mctp-Add-initial-routing-framework.patch │ ├── 7008-mctp-Add-netlink-route-management.patch │ ├── 7009-mctp-Add-neighbour-implementation.patch │ ├── 7010-mctp-Add-neighbour-netlink-interface.patch │ ├── 7011-mctp-Populate-socket-implementation.patch │ ├── 7012-mctp-Implement-message-fragmentation-reassembly.patch │ ├── 7013-mctp-Add-dest-neighbour-lladdr-to-route-output.patch │ ├── 7014-mctp-Allow-per-netns-default-networks.patch │ ├── 7015-mctp-Add-MCTP-overview-document.patch │ ├── 7016-mctp-remove-duplicated-assignment-of-pointer-hdr.patch │ ├── 7017-mctp-Specify-route-types-require-rtm_type-in-RTM_-RO.patch │ ├── 7018-mctp-Remove-the-repeated-declaration.patch │ ├── 7019-mctp-perform-route-destruction-under-RCU-read-lock.patch │ ├── 7020-perf-beauty-Update-copy-of-linux-socket.h-with-the-k.patch │ ├── 7021-mctp-Allow-MCTP-on-tun-devices.patch │ ├── 7022-mctp-Allow-local-delivery-to-the-null-EID.patch │ ├── 7023-mctp-locking-lifetime-and-validity-changes-for-sk_ke.patch │ ├── 7024-mctp-Add-refcounts-to-mctp_dev.patch │ ├── 7025-mctp-Implement-a-timeout-for-tags.patch │ ├── 7026-mctp-Add-tracepoints-for-tag-key-handling.patch │ ├── 7027-mctp-Do-inits-as-a-subsys_initcall.patch │ ├── 7028-doc-mctp-Add-a-little-detail-about-kernel-internals.patch │ ├── 7029-mctp-Set-route-MTU-via-netlink.patch │ ├── 7030-mctp-Warn-if-pointer-is-set-for-a-wrong-dev-type.patch │ ├── 7031-mctp-Avoid-leak-of-mctp_sk_key.patch │ ├── 7032-mctp-Implement-extended-addressing.patch │ ├── 7033-i2c-core-smbus-Expose-PEC-calculate-function-for-gen.patch │ ├── 7034-dt-bindings-net-New-binding-mctp-i2c-controller.patch │ ├── 7035-mctp-unify-sockaddr_mctp-types.patch │ ├── 7036-mctp-Be-explicit-about-struct-sockaddr_mctp-padding.patch │ ├── 7037-mctp-Return-new-key-from-mctp_alloc_local_tag.patch │ ├── 7038-mctp-Add-flow-extension-to-skb.patch │ ├── 7039-mctp-Pass-flow-data-flow-release-events-to-drivers.patch │ ├── 7040-mctp-unify-extended-addressing-implementation-with-u.patch │ ├── 7041-mctp-handle-the-struct-sockaddr_mctp-padding-fields.patch │ ├── 7042-mctp-handle-the-struct-sockaddr_mctp_ext-padding-fie.patch │ ├── 7043-mctp-i2c-MCTP-I2C-binding-driver.patch │ ├── 7044-mctp-i2c-Fix-potential-use-after-free.patch │ ├── 7045-mctp-i2c-Fix-hard-head-TX-bounds-length-check.patch │ ├── 7046-mctp-remove-unnecessary-check-before-calling-kfree_s.patch │ ├── 7047-mctp-Remove-redundant-if-statements.patch │ ├── 7048-mctp-Don-t-let-RTM_DELROUTE-delete-local-routes.patch │ ├── 7049-mctp-emit-RTM_NEWADDR-and-RTM_DELADDR.patch │ ├── 7050-mctp-Remove-only-static-neighbour-on-RTM_DELNEIGH.patch │ ├── 7051-mctp-Add-helper-for-address-match-checking.patch │ ├── 7052-mctp-Allow-keys-matching-any-local-address.patch │ ├── 7053-mctp-Add-SIOCMCTP-ALLOC-DROP-TAG-ioctls-for-tag-cont.patch │ ├── 7054-mctp-fix-use-after-free.patch │ ├── 7055-mctp-replace-mctp_address_ok-with-more-fine-grained-.patch │ ├── 7056-mctp-add-address-validity-checking-for-packet-receiv.patch │ ├── 7057-mctp-make-__mctp_dev_get-take-a-refcount-hold.patch │ ├── 7058-mctp-Fix-incorrect-netdev-unref-for-extended-addr.patch │ ├── 7059-mctp-Fix-warnings-reported-by-clang-analyzer.patch │ ├── 7060-mctp-Avoid-warning-if-unregister-notifies-twice.patch │ ├── 7061-mctp-Fix-check-for-dev_hard_header-result.patch │ ├── 7062-mctp-i2c-correct-mctp_i2c_header_create-result.patch │ ├── 7063-mctp-Use-output-netdev-to-allocate-skb-headroom.patch │ ├── 7064-mctp-defer-the-kfree-of-object-mdev-addrs.patch │ ├── 7065-mctp-prevent-double-key-removal-and-unref.patch │ ├── 7066-mctp-Fix-an-error-handling-path-in-mctp_init.patch │ ├── 7067-mctp-i2c-don-t-count-unused-invalid-keys-for-flow-re.patch │ ├── 7068-mctp-Remove-device-type-check-at-unregister.patch │ ├── 7069-net-mctp-add-an-explicit-reference-from-a-mctp_sk_ke.patch │ ├── 7070-net-mctp-move-expiry-timer-delete-to-unhash.patch │ ├── 7071-net-mctp-hold-key-reference-when-looking-up-a-genera.patch │ ├── 7072-net-mctp-mark-socks-as-dead-on-unhash-prevent-re-add.patch │ ├── 7073-net-mctp-purge-receive-queues-on-sk-destruction.patch │ ├── 7074-kernel-resource-Introduce-request_mem_region_muxed.patch │ ├── 7075-i2c-asf-Introduce-MCTP-support-over-ASF-controller.patch │ ├── 9000-DS-OPT-iio-pressure-icp20100-add-driver-for-InvenSense-.patch │ ├── 9001-DS-OPT-e1000e-skip-NVM-checksum.patch │ ├── 9002-TMP-fix-for-fan-minimum-speed.patch │ ├── 9003-platform-mellanox-Introduce-support-of-Nvidia-L1-tra.patch │ ├── 9004-DS-OPT-mlxsw-minimal-Downstream-Disable-ethtool-interface.patch │ ├── 9005-platform-mellanox-Downstream-Introduce-support-of-Nv.patch │ ├── 9006-mlxsw-core_hwmon-Downstream-Fix-module-sensor-number-for-QM3200.patch │ ├── 9007-platform-mellanox-mlx-platform-Change-register-0x28-.patch │ ├── 9008-platform-mellanox-mlx-platform-Add-support-for-Q3450.patch │ ├── cumulus │ │ └── .placeholder │ ├── dvs │ │ ├── 0013-hwmon-pmbus-shrink-code-and-remove-pmbus_do_remove.patch │ │ ├── 0036-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2888-c.patch │ │ ├── 0144-mlxsw-core-Introduce-flash-update-components.patch │ │ ├── 0261-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2891-c.patch │ │ ├── 0282-mellanox-Relocate-mlx-platform-driver.patch │ │ ├── 0300-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2855-c.patch │ │ ├── 0309-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2869-c.patch │ │ └── 0310-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp29502-.patch │ ├── nvos │ │ ├── 0013-hwmon-pmbus-shrink-code-and-remove-pmbus_do_remove.patch │ │ ├── 0036-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2888-c.patch │ │ ├── 0144-mlxsw-core-Introduce-flash-update-components.patch │ │ ├── 0261-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2891-c.patch │ │ ├── 0282-mellanox-Relocate-mlx-platform-driver.patch │ │ ├── 0300-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2855-c.patch │ │ ├── 0309-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2869-c.patch │ │ └── 0310-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp29502-.patch │ ├── opt │ │ ├── 0013-hwmon-pmbus-shrink-code-and-remove-pmbus_do_remove.patch │ │ ├── 0036-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2888-c.patch │ │ ├── 0144-mlxsw-core-Introduce-flash-update-components.patch │ │ ├── 0261-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2891-c.patch │ │ ├── 0282-mellanox-Relocate-mlx-platform-driver.patch │ │ ├── 0300-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2855-c.patch │ │ ├── 0309-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2869-c.patch │ │ └── 0310-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp29502-.patch │ ├── patchwork │ │ └── 0188-i2c-mux-Add-register-map-based-mux-driver.patch.txt │ └── sonic │ │ ├── 0013-hwmon-pmbus-shrink-code-and-remove-pmbus_do_remove.patch │ │ ├── 0036-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2888-c.patch │ │ ├── 0144-mlxsw-core-Introduce-flash-update-components.patch │ │ ├── 0261-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2891-c.patch │ │ ├── 0282-mellanox-Relocate-mlx-platform-driver.patch │ │ ├── 0300-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2855-c.patch │ │ └── 0310-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp29502-.patch │ ├── linux-5.14 │ ├── 0001-1-i2c-mlxcpld-Fix-criteria-for-frequency-setting.patch │ ├── 0001-i2c-mlxcpld-Reduce-polling-time-for-performance-impr.patch │ ├── 0002-i2c-mlxcpld-Allow-flexible-polling-time-setting-for-.patch │ ├── 0003-leds-mlxreg-Provide-conversion-for-hardware-LED-colo.patch │ ├── 0004-leds-mlxreg-Skip-setting-LED-color-during-initializa.patch │ ├── 0005-leds-mlxreg-Allow-multi-instantiation-of-same-name-L.patch │ ├── 0006-mlxsw-core-Avoid-creation-virtual-hwmon-objects-by-t.patch │ ├── 0007-mlxsw-minimal-Simplify-method-of-modules-number-dete.patch │ ├── 0008-platform_data-mlxreg-Add-new-type-to-support-modular.patch │ ├── 0009-platform-x86-mlx-platform-Add-initial-support-for-ne.patch │ ├── 0010-platform-mellanox-mlxreg-hotplug-Extend-logic-for-ho.patch │ ├── 0011-platform-x86-mlx-platform-Configure-notifier-callbac.patch │ ├── 0012-platform-mellanox-mlxreg-io-Extend-number-of-hwmon-a.patch │ ├── 0013-platform_data-mlxreg-Add-new-field-for-secured-acces.patch │ ├── 0014-platform-mellanox-mlxreg-lc-Add-initial-support-for-.patch │ ├── 0015-Documentation-ABI-Add-new-attributes-for-mlxreg-io-s.patch │ ├── 0016-Documentation-ABI-Add-new-line-card-attributes-for-m.patch │ ├── 0017-hwmon-mlxreg-fan-Extend-the-maximum-number-of-tachom.patch │ ├── 0018-platform-x86-mlx-platform-Extend-FAN-and-LED-config-.patch │ ├── 0019-platform-x86-mlx-platform-Add-new-attributes-for-Cof.patch │ ├── 0020-platform-mellanox-Add-dedicated-match-for-system-typ.patch │ ├── 0021-mlxsw-core-Initialize-switch-driver-last.patch │ ├── 0022-mlxsw-core-Remove-mlxsw_core_is_initialized.patch │ ├── 0023-mlxsw-core_env-Defer-handling-of-module-temperature-.patch │ ├── 0024-mlxsw-core_env-Convert-module_info_lock-to-a-mutex.patch │ ├── 0025-mlxsw-Track-per-module-port-status.patch │ ├── 0026-mlxsw-reg-Add-fields-to-PMAOS-register.patch │ ├── 0027-mlxsw-Make-PMAOS-pack-function-more-generic.patch │ ├── 0028-mlxsw-Add-support-for-transceiver-modules-reset.patch │ ├── 0029-ethtool-Add-ability-to-control-transceiver-modules-p.patch │ ├── 0030-mlxsw-reg-Add-Port-Module-Memory-Map-Properties-regi.patch │ ├── 0031-mlxsw-reg-Add-Management-Cable-IO-and-Notifications-.patch │ ├── 0032-mlxsw-Add-ability-to-control-transceiver-modules-pow.patch │ ├── 0033-ethtool-Add-transceiver-module-extended-states.patch │ ├── 0034-platform-x86-mlx-platform-Add-support-for-multiply-c.patch │ ├── 0035-mlxsw-core-Extend-external-cooling-device-whitelist-.patch │ ├── 0036-platform_data-mlxreg-Add-field-for-notification-call.patch │ ├── 0037-i2c-mlxcpld-Add-callback-to-notify-probing-completio.patch │ ├── 0038-hwmon-powr1220-Upgrade-driver-to-support-hwmon-info-.patch │ ├── 0039-hwmon-powr1220-Add-support-for-Lattice-s-POWR1014-po.patch │ ├── 0040-hwmon-Add-support-for-EMC2305-RPM-based-PWM-Fan-Spee.patch │ ├── 0041-platform-mellanox-Add-support-for-new-SN2201-system.patch │ ├── 0042-Documentation-ABI-Add-new-attributes-for-mlxreg-io-s.patch │ ├── 0043-platform-x86-mlx-platform-Add-support-for-new-system.patch │ ├── 0044-platform-mellanox-mlxreg-lc-fix-error-code-in-mlxreg.patch │ ├── 0045-hwmon-mlxreg-fan-Extend-driver-to-support-multiply-P.patch │ ├── 0046-1-hwmon-mlxreg-fan-Return-non-zero-value-when-fan-curr.patch │ ├── 0046-hwmon-mlxreg-fan-Extend-driver-to-support-multiply-c.patch │ ├── 0047-hwmon-mlxreg-fan-Fix-out-of-bounds-read-on-array-fan.patch │ ├── 0048-hwmon-mlxreg-fan-Modify-PWM-connectivity-validation.patch │ ├── 0049-hwmon-mlxreg-fan-Support-distinctive-names-per-diffe.patch │ ├── 0050-mlxsw-Use-weak-reverse-dependencies-for-firmware-fla.patch │ ├── 0051-mlxsw-core_hwmon-Fix-variable-names-for-hwmon-attrib.patch │ ├── 0052-mlxsw-core_thermal-Rename-labels-according-to-naming.patch │ ├── 0053-mlxsw-core_thermal-Remove-obsolete-API-for-query-res.patch │ ├── 0054-mlxsw-reg-Add-mgpir_-prefix-to-MGPIR-fields-comments.patch │ ├── 0055-mlxsw-core-Remove-unnecessary-asserts.patch │ ├── 0056-mlxsw-reg-Extend-MTMP-register-with-new-slot-number-.patch │ ├── 0057-mlxsw-reg-Extend-MTBR-register-with-new-slot-number-.patch │ ├── 0058-mlxsw-reg-Extend-MCIA-register-with-new-slot-number-.patch │ ├── 0059-mlxsw-reg-Extend-MCION-register-with-new-slot-number.patch │ ├── 0060-mlxsw-reg-Extend-PMMP-register-with-new-slot-number-.patch │ ├── 0061-mlxsw-reg-Extend-MGPIR-register-with-new-slot-fields.patch │ ├── 0062-mlxsw-core_env-Pass-slot-index-during-PMAOS-register.patch │ ├── 0063-mlxsw-reg-Add-new-field-to-Management-General-Periph.patch │ ├── 0064-mlxsw-core-Extend-interfaces-for-cable-info-access-w.patch │ ├── 0065-mlxsw-core-Extend-port-module-data-structures-for-li.patch │ ├── 0066-mlxsw-core-Move-port-module-events-enablement-to-a-s.patch │ ├── 0067-mlxsw-core_hwmon-Split-gearbox-initialization.patch │ ├── 0068-mlxsw-core_hwmon-Extend-internal-structures-to-suppo.patch │ ├── 0069-mlxsw-core_hwmon-Introduce-slot-parameter-in-hwmon-i.patch │ ├── 0070-mlxsw-core_hwmon-Extend-hwmon-device-with-gearbox-ma.patch │ ├── 0071-mlxsw-core_thermal-Extend-internal-structures-to-sup.patch │ ├── 0072-mlxsw-core_thermal-Split-gearbox-initialization.patch │ ├── 0073-mlxsw-core_thermal-Extend-thermal-area-with-gearbox-.patch │ ├── 0074-mlxsw-core_thermal-Add-line-card-id-prefix-to-line-c.patch │ ├── 0075-mlxsw-core_thermal-Use-exact-name-of-cooling-devices.patch │ ├── 0076-1-mlxsw-thermal-Fix-out-of-bounds-memory-accesses.patch │ ├── 0076-mlxsw-core_thermal-Use-common-define-for-thermal-zon.patch │ ├── 0077-devlink-add-support-to-create-line-card-and-expose-t.patch │ ├── 0078-devlink-implement-line-card-provisioning.patch │ ├── 0079-devlink-implement-line-card-active-state.patch │ ├── 0080-devlink-add-port-to-line-card-relationship-set.patch │ ├── 0081-devlink-introduce-linecard-info-get-message.patch │ ├── 0082-devlink-introduce-linecard-info-get-message.patch │ ├── 0083-mlxsw-reg-Add-Ports-Mapping-event-Configuration-Regi.patch │ ├── 0084-mlxsw-reg-Add-Management-DownStream-Device-Query-Reg.patch │ ├── 0085-mlxsw-reg-Add-Management-DownStream-Device-Control-R.patch │ ├── 0086-mlxsw-reg-Add-Management-Binary-Code-Transfer-Regist.patch │ ├── 0087-mlxsw-core_linecards-Add-line-card-objects-and-imple.patch │ ├── 0088-mlxsw-core_linecards-Implement-line-card-activation-.patch │ ├── 0089-mlxsw-core-Extend-driver-ops-by-remove-selected-port.patch │ ├── 0090-mlxsw-spectrum-Add-port-to-linecard-mapping.patch │ ├── 0091-mlxsw-reg-Introduce-Management-Temperature-Extended-.patch │ ├── 0092-mlxsw-core-Add-APIs-for-thermal-sensor-mapping.patch │ ├── 0093-mlxsw-reg-Add-Management-DownStream-Device-Tunneling.patch │ ├── 0094-mlxsw-core_linecards-Probe-devices-for-provisioned-l.patch │ ├── 0095-mlxsw-core_linecards-Expose-device-FW-version-over-d.patch │ ├── 0096-mlxsw-core-Introduce-flash-update-components.patch │ ├── 0097-mlxfw-Get-the-PSID-value-using-op-instead-of-passing.patch │ ├── 0098-mlxsw-core_linecards-Implement-line-card-device-flas.patch │ ├── 0099-mlxsw-core_linecards-Introduce-ops-for-linecards-sta.patch │ ├── 0100-mlxsw-core-Add-interfaces-for-line-card-initializati.patch │ ├── 0101-mlxsw-core_thermal-Add-interfaces-for-line-card-init.patch │ ├── 0102-mlxsw-core_hwmon-Add-interfaces-for-line-card-initia.patch │ ├── 0103-mlxsw-minimal-Prepare-driver-for-modular-system-supp.patch │ ├── 0104-mlxsw-i2c-Prevent-transaction-execution-for-special-.patch │ ├── 0105-mlxsw-core-Extend-bus-init-function-with-event-handl.patch │ ├── 0106-mlxsw-i2c-Add-support-for-system-events-handling.patch │ ├── 0107-mlxsw-core-Export-line-card-API.patch │ ├── 0108-mlxsw-minimal-Add-system-event-handler.patch │ ├── 0109-mlxsw-minimal-Add-interfaces-for-line-card-initializ.patch │ ├── 0110-platform-x86-mlx-platform-Make-activation-of-some-dr.patch │ ├── 0111-platform-x86-mlx-platform-Add-cosmetic-changes-for-a.patch │ ├── 0112-mlx-platform-Add-support-for-systems-equipped-with-t.patch │ ├── 0113-platform-mellanox-Introduce-support-for-COMe-managem.patch │ ├── 0114-platform-x86-mlx-platform-Add-support-for-new-system.patch │ ├── 0115-platform-mellanox-Add-COME-board-revision-register.patch │ ├── 0116-platform-mellanox-Introduce-support-for-rack-manager.patch │ ├── 0117-hwmon-jc42-Add-support-for-Seiko-Instruments-S-34TS0.patch │ ├── 0118-platform-mellanox-mlxreg-io-Add-locking-for-io-opera.patch │ ├── 0119-DS-leds-leds-mlxreg-Send-udev-event-from-leds-mlxreg.patch │ ├── 0120-DS-lan743x-Add-support-for-fixed-phy.patch │ ├── 0121-TMP-mlxsw-minimal-Ignore-error-reading-SPAD-register.patch │ ├── 0122-1-i2c-mlxcpld-Modify-register-setting-for-400KHz-frequ.patch │ ├── 0122-i2c-mlxcpld-Fix-register-setting-for-400KHz-frequenc.patch │ ├── 0123-platform-mellanox-mlxreg-lc-Fix-cleanup-on-failure-a.patch │ ├── 0124-DS-platform-mlx-platform-Add-SPI-path-for-rack-switc.patch │ ├── 0125-mlxsw-core-Add-support-for-OSFP-transceiver-modules.patch │ ├── 0126-DS-mlxsw-core_linecards-Skip-devlink-and-provisionin.patch │ ├── 0127-hwmon-pmbus-Add-support-for-Infineon-Digital-Multi-p.patch │ ├── 0128-platform-mellanox-fix-reset_pwr_converter_fail-attri.patch │ ├── 0129-Documentation-ABI-fix-description-of-fix-reset_pwr_c.patch │ ├── 0130-platform-mellanox-Introduce-support-for-next-generat.patch │ ├── 0131-hwmon-pmbus-Fix-sensors-readouts-for-MPS-Multi-phase.patch │ ├── 0132-Revert-mlxsw-thermal-Fix-out-of-bounds-memory-access.patch │ ├── 0133-platform-mellanox-Introduce-support-of-new-Nvidia-L1.patch │ ├── 0134-platform-mellanox-Split-initialization-procedure.patch │ ├── 0135-platform-mellanox-Split-logic-in-init-and-exit-flow.patch │ ├── 0136-platform-mellanox-Extend-all-systems-with-I2C-notifi.patch │ ├── 0137-platform-mellanox-mlxreg-hotplug-Allow-more-flexible.patch │ ├── 0138-platform_data-mlxreg-Add-field-with-mapped-resource-.patch │ ├── 0139-i2c-mux-Add-register-map-based-mux-driver.patch │ ├── 0140-i2c-mlxcpld-Allow-driver-to-run-on-ARM64-architectur.patch │ ├── 0141-i2c-mlxcpld-Support-PCIe-mapped-register-space.patch │ ├── 0142-i2c-mlxcpld-Add-support-for-extended-transaction-len.patch │ ├── 0143-platform-mellanox-mlx-platform-Add-mux-selection-reg.patch │ ├── 0144-platform-mellanox-mlx-platform-Move-bus-shift-assign.patch │ ├── 0145-platform-x86-MLX_PLATFORM-select-REGMAP-instead-of-d.patch │ ├── 0146-platform-mellanox-Add-support-for-dynamic-I2C-channe.patch │ ├── 0147-platform-mellanox-Cosmetic-changes.patch │ ├── 0148-platform-mellanox-Fix-order-in-exit-flow.patch │ ├── 0149-platform-mellanox-Add-new-attributes.patch │ ├── 0150-platform-mellanox-Change-register-offset-addresses.patch │ ├── 0151-regmap-debugfs-Enable-writing-to-the-regmap-debugfs-.patch │ ├── 0152-hwmon-mlxreg-fan-Return-zero-speed-for-broken-fan.patch │ ├── 0153-DS-mlxsw-core_linecards-Disable-firmware-bundling-ma.patch │ ├── 0154-platform-mellanox-Add-field-upgrade-capability-regis.patch │ ├── 0155-platform-mellanox-Modify-reset-causes-description.patch │ ├── 0156-mlxsw-Use-u16-for-local_port-field-instead-of-u8.patch │ ├── 0157-mlxsw-minimal-Change-type-for-local-port.patch │ ├── 0158-mlxsw-i2c-Fix-chunk-size-setting-in-output-mailbox-b.patch │ ├── 0159-platform-mellanox-mlx-platform-Modify-graceful-shutd.patch │ ├── 0160-platform-mellanox-mlx-platform-Fix-signals-polarity-.patch │ ├── 0161-platform-mellanox-mlxreg-hotplug-Extend-condition-fo.patch │ ├── 0162-platform-mellanox-mlx-platform-Modify-health-and-pow.patch │ ├── 0163-platform-mellanox-mlx-platform-Add-reset-cause-attri.patch │ ├── 0164-platform-mellanox-mlx-platform-add-support-for-addit.patch │ ├── 0165-pinctrl-Introduce-struct-pinfunction-and-PINCTRL_PIN.patch │ ├── 0166-mlxsw-core_hwmon-Align-modules-label-name-assignment.patch │ ├── 0167-mlxsw-i2c-Limit-single-transaction.patch │ ├── 0168-mlxsw-i2c-Limit-single-transaction-buffer-size.patch │ ├── 0169-mlxsw-reg-Limit-MTBR-register-records-buffer-by-one-.patch │ ├── 0170-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2891-c.patch │ ├── 0171-dt-bindings-trivial-devices-Add-mps-mp2891.patch │ ├── 0172-platform-mellanox-mlx-platform-Modify-power-off-call.patch │ ├── 0173-Extend-driver-to-support-Infineon-Digital-Multi-phas.patch │ ├── 0174-dt-bindings-trivial-devices-Add-infineon-xdpe1a2g7.patch │ ├── 0175-leds-mlxreg-Add-support-for-new-flavour-of-capabilit.patch │ ├── 0176-leds-mlxreg-Remove-code-for-amber-LED-colour.patch │ ├── 0177-platform_data-mlxreg-Add-capability-bit-and-mask-fie.patch │ ├── 0178-hwmon-mlxreg-fan-Add-support-for-new-flavour-of-capa.patch │ ├── 0179-hwmon-mlxreg-fan-Extend-number-of-supporetd-fans.patch │ ├── 0180-platform-mellanox-nvsw-sn2201-change-fans-i2c-busses.patch │ ├── 0181-platform-mellanox-mlx-platform-Add-reset-callback.patch │ ├── 0182-platform-mellanox-mlx-platform-Prepare-driver-to-all.patch │ ├── 0183-platform-mellanox-mlx-platform-Introduce-ACPI-init-f.patch │ ├── 0184-platform-mellanox-mlx-platform-Get-interrupt-line-th.patch │ ├── 0185-platform-mellanox-Add-initial-support-for-PCIe-based.patch │ ├── 0186-platform-mellanox-Introduce-support-for-switches-equ.patch │ ├── 0187-mellanox-Relocate-mlx-platform-driver.patch │ ├── 0188-platform-mellanox-mlxreg-hotplug-Add-support-for-new.patch │ ├── 0189-platform-mellanox-mlx-platform-Change-register-name.patch │ ├── 0190-platform-mellanox-mlx-platform-Add-support-for-new-X.patch │ ├── 0191-mlxsw-i2c-Downstream-Add-retry-mechanism-for-failed-.patch │ ├── 0192-mlxsw-i2c-DBG-Add-debug-output-for-failed-transactio.patch │ ├── 0193-platform-mellanox-indicate-deferred-I2C-bus-creation.patch │ ├── 0194-platform-mellanox-mlxreg-dpu-Add-initial-support-for.patch │ ├── 0195-platform-mellanox-mlx-platform-Fix-FAN-tacho-reading.patch │ ├── 0196-platform-mellanox-Introduce-support-of-Nvidia-smart-.patch │ ├── 0197-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2855-c.patch │ └── 9000-iio-pressure-icp20100-OPT-add-driver-for-InvenSense-.patch │ └── linux-6.1 │ ├── 0001-platform-mellanox-Introduce-support-for-rack-manager.patch │ ├── 0002-platform-mellanox-Change-reset_pwr_converter_fail-at.patch │ ├── 0003-platform-mellanox-Cosmetic-changes-rename-to-more-co.patch │ ├── 0004-platform-mellanox-Introduce-support-for-next-generat.patch │ ├── 0005-platform-mellanox-Introduce-support-of-new-Nvidia-L1.patch │ ├── 0006-platform-mellanox-Split-initialization-procedure.patch │ ├── 0007-platform-mellanox-Split-logic-in-init-and-exit-flow.patch │ ├── 0008-platform-mellanox-Extend-all-systems-with-I2C-notifi.patch │ ├── 0009-platform-mellanox-mlx-platform-Add-mux-selection-reg.patch │ ├── 0010-platform-mellanox-mlx-platform-Move-bus-shift-assign.patch │ ├── 0011-platform-mellanox-mlx-platform-Initialize-shift-vari.patch │ ├── 0012-platform-mellanox-Fix-order-in-exit-flow.patch │ ├── 0013-platform-mellanox-mlx-platform-Fix-signals-polarity-.patch │ ├── 0014-platform-mellanox-mlx-platform-Modify-graceful-shutd.patch │ ├── 0015-platform-mellanox-Change-register-offset-addresses.patch │ ├── 0016-platform-mellanox-Add-new-attributes.patch │ ├── 0017-platform-mellanox-Add-field-upgrade-capability-regis.patch │ ├── 0018-platform-mellanox-Modify-reset-causes-description.patch │ ├── 0019-platform-mellanox-mlx-platform-Modify-health-and-pow.patch │ ├── 0020-platform-mellanox-mlx-platform-Add-reset-cause-attri.patch │ ├── 0021-platform-mellanox-mlx-platform-add-support-for-addit.patch │ ├── 0022-platform-mellanox-mlx-platform-Modify-power-off-call.patch │ ├── 0023-platform-mellanox-Cosmetic-changes.patch │ ├── 0024-platform-mellanox-mlx-platform-Add-reset-callback.patch │ ├── 0025-platform-mellanox-mlx-platform-Prepare-driver-to-all.patch │ ├── 0026-platform-mellanox-mlx-platform-Introduce-ACPI-init-f.patch │ ├── 0027-platform-mellanox-mlx-platform-Get-interrupt-line-th.patch │ ├── 0028-platform-mellanox-Add-initial-support-for-PCIe-based.patch │ ├── 0029-platform-mellanox-mlxreg-hotplug-Extend-condition-fo.patch │ ├── 0030-1-platform-mellanox-nvsw-sn2201-Add-check-for-platform.patch │ ├── 0030-platform-mellanox-nvsw-sn2201-change-fans-i2c-busses.patch │ ├── 0032-platform_data-mlxreg-Add-field-with-mapped-resource-.patch │ ├── 0033-i2c-mlxcpld-Allow-driver-to-run-on-ARM64-architectur.patch │ ├── 0034-i2c-mlxcpld-Add-support-for-extended-transaction-len.patch │ ├── 0035-i2c-mlxcpld-Support-PCIe-mapped-register-space.patch │ ├── 0036-mlxsw-i2c-Fix-chunk-size-setting-in-output-mailbox-b.patch │ ├── 0037-mlxsw-i2c-Limit-single-transaction-buffer-size.patch │ ├── 0038-mlxsw-core_hwmon-Adjust-module-label-names-based-on-.patch │ ├── 0039-mlxsw-reg-Limit-MTBR-register-payload-to-a-single-da.patch │ ├── 0040-mlxsw-core-Extend-allowed-list-of-external-cooling-d.patch │ ├── 0041-mlxsw-i2c-Utilize-standard-macros-for-dividing-buffe.patch │ ├── 0042-hwmon-mlxreg-fan-Add-support-for-new-flavour-of-capa.patch │ ├── 0043-hwmon-mlxreg-fan-Extend-number-of-supporetd-fans.patch │ ├── 0044-leds-mlxreg-Add-support-for-new-flavour-of-capabilit.patch │ ├── 0045-leds-mlxreg-Remove-code-for-amber-LED-colour.patch │ ├── 0046-Extend-driver-to-support-Infineon-Digital-Multi-phas.patch │ ├── 0047-dt-bindings-trivial-devices-Add-infineon-xdpe1a2g7.patch │ ├── 0048-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2891-c.patch │ ├── 0049-dt-bindings-trivial-devices-Add-mps-mp2891.patch │ ├── 0050-leds-mlxreg-Skip-setting-LED-color-during-initializa.patch │ ├── 0051-platform-mellanox-mlxreg-hotplug-Allow-more-flexible.patch │ ├── 0052-i2c-mux-Add-register-map-based-mux-driver.patch │ ├── 0053-platform-mellanox-Add-support-for-dynamic-I2C-channe.patch │ ├── 0054-platform-mellanox-Introduce-support-for-switches-equ.patch │ ├── 0055-mellanox-Relocate-mlx-platform-driver.patch │ ├── 0056-Documentation-ABI-Add-new-attribute-for-mlxreg-io-sy.patch │ ├── 0057-Documentation-ABI-Add-new-attribute-for-mlxreg-io-sy.patch │ ├── 0061-pinctrl-Introduce-struct-pinfunction-and-PINCTRL_PIN.patch │ ├── 0062-pinctrl-mlxbf3-Add-pinctrl-driver-support.patch │ ├── 0063-pinctrl-mlxbf3-set-varaiable-mlxbf3_pmx_funcs-storag.patch │ ├── 0064-pinctrl-mlxbf3-Remove-gpio_disable_free.patch │ ├── 0065-gpio-mlxbf3-Add-gpio-driver-support.patch │ ├── 0066-gpio-mlxbf3-Support-add_pin_ranges.patch │ ├── 0067-gpio-mlxbf3-Fix-error-message.patch │ ├── 0068-mmc-sdhci-of-dwcmshc-enable-host-V4-support-for-Blue.patch │ ├── 0069-mmc-sdhci-of-dwcmshc-add-the-missing-device-table-ID.patch │ ├── 0070-mlxbf_gige-fix-receive-packet-race-condition.patch │ ├── 0071-mlxbf_gige-Fix-intermittent-no-ip-issue.patch │ ├── 0072-mlxbf_gige-Enable-the-GigE-port-in-mlxbf_gige_open.patch │ ├── 0073-mlxbf_gige-stop-PHY-during-open-error-paths.patch │ ├── 0074-mlxbf_gige-call-request_irq-after-NAPI-initialized.patch │ ├── 0075-mlxbf_gige-stop-interface-during-shutdown.patch │ ├── 0076-mlxbf_gige-add-MDIO-support-for-BlueField-3.patch │ ├── 0077-mlxbf_gige-support-10M-100M-1G-speeds-on-BlueField-3.patch │ ├── 0078-mlxbf_gige-add-set_link_ksettings-ethtool-callback.patch │ ├── 0079-UBUNTU-SAUCE-mlxbf_gige-add-RX_DMA-disable-to-NAPI-p.patch │ ├── 0080-mlxbf-bootctl-correctly-identify-secure-boot-with-de.patch │ ├── 0081-UBUNTU-SAUCE-mlxbf-ptm-power-and-thermal-management-.patch │ ├── 0082-UBUNTU-SAUCE-mlxbf-ptm-update-license.patch │ ├── 0083-UBUNTU-SAUCE-mlxbf-ptm-use-0444-instead-of-S_IRUGO.patch │ ├── 0085-hwmon-mlxreg-fan-Separate-methods-of-fan-setting-com.patch │ ├── 0087-platform-mellanox-indicate-deferred-I2C-bus-creation.patch │ ├── 0087-platform_data-mlxreg-Add-capability-bit-and-mask-fie.patch │ ├── 0088-platform-mellanox-mlxreg-hotplug-Add-support-for-new.patch │ ├── 0089-platform-mellanox-mlx-platform-Change-register-name.patch │ ├── 0090-platform-mellanox-mlx-platform-Add-support-for-new-X.patch │ ├── 0091-platform-mellanox-mlxreg-dpu-Add-initial-support-for.patch │ ├── 0092-platform-mellanox-Introduce-support-of-Nvidia-smart-.patch │ ├── 0093-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2855-c.patch │ ├── 0094-i2c-asf-Introduce-MCTP-support-over-ASF-controller.patch │ ├── 0095-platform-mellanox-nvsw-sn2201-Add-support-for-new-sy.patch │ ├── 0096-platform-mellanox-Downstream-Add-dedicated-match-for.patch │ ├── 0097-platform-mellanox-mlx-platform-Add-support-for-new-N.patch │ ├── 0098-platform-mellanox-Downstream-Add-support-for-new-Nvi.patch │ ├── 0099-platform-mellanox-Downstream-Add-support-DGX-flavor-.patch │ ├── 0100-platform-mellanox-mlxreg-io-Extend-number-of-hwmon-a.patch │ ├── 0101-platform_data-mlxreg-Add-fields-for-interrupt-storm-.patch │ ├── 0102-platform-mellanox-mlxreg-hotplug-Add-support-for-han.patch │ ├── 0103-platform-mellanox-mlx-dpu-improve-interrupt-handling.patch │ ├── 0104-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2869-c.patch │ ├── 0105-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp29502-.patch │ ├── 8000-mlxsw-Use-weak-reverse-dependencies-for-firmware-fla.patch │ ├── 8002-platform-mlx-platform-Downstream-Add-SPI-path-for-ra.patch │ ├── 8003-mlxsw-i2c-SONIC-ISSU-Prevent-transaction-execution-f.patch │ ├── 8004-mlxsw-minimal-Downstream-Ignore-error-reading-SPAD-r.patch │ ├── 8005-leds-leds-mlxreg-Downstream-Send-udev-event-from-led.patch │ ├── 8006-i2c-mlxcpld-Downstream-WA-to-avoid-error-for-SMBUS-r.patch │ ├── 8007-hwmon-mlxreg-fan-Downstream-Allow-fan-speed-setting-.patch │ ├── 8008-hwmon-emc2305-Downstream-Allow-fan-speed-setting-gra.patch │ ├── 8009-hwmon-mlxsw-Downstream-Allow-fan-speed-setting-granu.patch │ ├── 8010-mlxsw-i2c-Downstream-Add-retry-mechanism-for-failed-.patch │ ├── 8011-mlxsw-minimal-Downstream-Disable-ethtool-interface.patch │ ├── 8012-hwmon-pmbus-Downstream-Workaround-for-psu-attributes.patch │ ├── 9000-e1000e-OPT-skip-NVM-checksum.patch │ ├── 9001-iio-pressure-icp20100-OPT-add-driver-for-InvenSense-.patch │ ├── 9002-regmap-debugfs-FT-Enable-writing-to-the-regmap-debug.patch │ ├── 9003-platform-mellanox-Introduce-support-of-Nvidia-L1-tra.patch │ ├── 9004-platform-mellanox-Downstream-Introduce-support-of-Nv.patch │ ├── 9006-mlxsw-core_hwmon-Downstream-Fix-module-sensor-number-for-QM3200.patch │ ├── 9007-mlxsw-core-Downstream-Fix-uninitialized-variable.patch │ ├── 9008-platform-mellanox-mlx-platform-Change-register-0x28-.patch │ ├── 9009-platform-mellanox-mlx-platform-Add-support-for-Q3450.patch │ ├── cumulus │ └── 0091-platform-mellanox-mlxreg-dpu-Add-initial-support-for.patch │ ├── dvs │ └── .placeholder │ ├── nvos │ └── .placeholder │ ├── opt │ └── .placeholder │ ├── patchwork │ ├── 0012-platform-mellanox-Fix-order-in-exit-flow.patch.txt │ ├── 0013-platform-mellanox-mlx-platform-Fix-signals-polarity-.patch.txt │ ├── 0014-platform-mellanox-mlx-platform-Modify-graceful-shutd.patch.txt │ ├── 0015-platform-mellanox-Change-register-offset-addresses.patch.txt │ ├── 0016-platform-mellanox-Add-new-attributes.patch.txt │ ├── 0017-platform-mellanox-Add-field-upgrade-capability-regis.patch.txt │ ├── 0018-platform-mellanox-Modify-reset-causes-description.patch.txt │ ├── 0019-platform-mellanox-mlx-platform-Modify-health-and-pow.patch.txt │ ├── 0020-platform-mellanox-mlx-platform-Add-reset-cause-attri.patch.txt │ ├── 0021-platform-mellanox-mlx-platform-add-support-for-addit.patch.txt │ ├── 0022-platform-mellanox-mlx-platform-Modify-power-off-call.patch.txt │ ├── 0023-platform-mellanox-Cosmetic-changes.patch.txt │ ├── 0024-platform-mellanox-mlx-platform-Add-reset-callback.patch.txt │ ├── 0025-platform-mellanox-mlx-platform-Prepare-driver-to-all.patch.txt │ ├── 0026-platform-mellanox-mlx-platform-Introduce-ACPI-init-f.patch.txt │ ├── 0027-platform-mellanox-mlx-platform-Get-interrupt-line-th.patch.txt │ ├── 0028-platform-mellanox-Add-initial-support-for-PCIe-based.patch.txt │ ├── 0030-platform-mellanox-nvsw-sn2201-change-fans-i2c-busses.patch.txt │ ├── 0033-i2c-mlxcpld-Allow-driver-to-run-on-ARM64-architectur.patch.txt │ ├── 0034-i2c-mlxcpld-Add-support-for-extended-transaction-len.patch.txt │ ├── 0036-mlxsw-i2c-Fix-chunk-size-setting-in-output-mailbox-b.patch.txt │ ├── 0037-mlxsw-i2c-Limit-single-transaction-buffer-size.patch.txt │ ├── 0038-mlxsw-core_hwmon-Adjust-module-label-names-based-on-.patch │ ├── 0039-mlxsw-reg-Limit-MTBR-register-payload-to-a-single-da.patch.txt │ ├── 0040-mlxsw-core-Extend-allowed-list-of-external-cooling-d.patch.txt │ ├── 0041-mlxsw-i2c-Utilize-standard-macros-for-dividing-buffe.patch.txt │ ├── 0043-hwmon-mlxreg-fan-Extend-number-of-supporetd-fans.patch.txt │ ├── 0045-leds-mlxreg-Remove-code-for-amber-LED-colour.patch.txt │ ├── 0048-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2891-c.patch.txt │ ├── 0050-leds-mlxreg-Skip-setting-LED-color-during-initializa.patch.txt │ ├── 0052-i2c-mux-Add-register-map-based-mux-driver.patch.txt │ ├── 0077-UBUNTU-SAUCE-mlx-bootctl-support-icm-carveout-eeprom.patch.txt │ └── 0078-UBUNTU-SAUCE-mlxbf-bootctl-support-SMC-call-for-sett.patch.txt │ └── sonic │ └── 0091-platform-mellanox-mlxreg-dpu-Add-initial-support-for.patch ├── rpm ├── gen_rpm.sh └── hw-management.spec ├── unittest └── hw_management_bmcaccessor_login_test.py └── usr ├── etc ├── hw-management-fast-sysfs-monitor │ └── fast_sysfs_labels.json ├── hw-management-sensors │ ├── e3597_sensors.conf │ ├── mqm9510_sensors.conf │ ├── mqm9520_sensors.conf │ ├── mqm9700_rev1_sensors.conf │ ├── mqm9700_sensors.conf │ ├── mqm9700_sensors_labels.json │ ├── mqm9701_sensors.conf │ ├── mqm9701_sensors_labels.json │ ├── msn2010_sensors.conf │ ├── msn2100_sensors.conf │ ├── msn2410_sensors.conf │ ├── msn27002_sensors.conf │ ├── msn2700_sensors.conf │ ├── msn2740_sensors.conf │ ├── msn3420_sensors.conf │ ├── msn3700_A1_sensors.conf │ ├── msn3700_sensors.conf │ ├── msn3800_sensors.conf │ ├── msn4600c_2_sensors.conf │ ├── msn4700_respin_sensors.conf │ ├── msn4700_sensors.conf │ ├── msn4800_sensors.conf │ ├── msn4800_sensors_lc.conf │ ├── n51xxld_sensors.conf │ ├── n51xxld_sensors_labels.json │ ├── n5240ld_sensors.conf │ ├── p2317_sensors.conf │ ├── p4262_sensors.conf │ ├── p4300_sensors.conf │ ├── p4697_sensors.conf │ ├── q3200_sensors.conf │ ├── q3200_sensors_labels.json │ ├── q3400_sensors.conf │ ├── q3400_sensors_labels.json │ ├── q3450_sensors.conf │ ├── q3450_sensors_labels.json │ ├── sn2201_sensors.conf │ ├── sn3750sx_sensors.conf │ ├── sn4280_sensors.conf │ ├── sn5600_sensors.conf │ ├── sn5600d_sensors.conf │ ├── sn5600d_sensors_labels.json │ ├── sn5640_sensors.conf │ ├── sn5640_sensors_labels.json │ ├── ui_tree_HI130.tar.gz │ ├── ui_tree_HI151.tar.gz │ ├── ui_tree_HI157.tar.gz │ ├── ui_tree_HI158.tar.gz │ ├── ui_tree_HI162.tar.gz │ ├── ui_tree_HI166.tar.gz │ ├── ui_tree_HI166_1.tar.gz │ ├── ui_tree_HI167.tar.gz │ ├── ui_tree_HI167_1.tar.gz │ ├── ui_tree_HI169.tar.gz │ ├── ui_tree_HI169_1.tar.gz │ ├── ui_tree_HI170.tar.gz │ ├── ui_tree_HI170_1.tar.gz │ ├── ui_tree_HI173.tar.gz │ ├── ui_tree_HI175.tar.gz │ ├── ui_tree_HI177.tar.gz │ └── ui_tree_HI178.tar.gz ├── hw-management-thermal │ ├── tc_config_default.json │ ├── tc_config_mqm8700.json │ ├── tc_config_mqm9700.json │ ├── tc_config_mqm9701.json │ ├── tc_config_msb7xxx.json │ ├── tc_config_msn2010.json │ ├── tc_config_msn2100.json │ ├── tc_config_msn2201.json │ ├── tc_config_msn2201_busbar.json │ ├── tc_config_msn2410.json │ ├── tc_config_msn2700.json │ ├── tc_config_msn27002.json │ ├── tc_config_msn3420.json │ ├── tc_config_msn3700.json │ ├── tc_config_msn3700C.json │ ├── tc_config_msn3750.json │ ├── tc_config_msn3800.json │ ├── tc_config_msn4410.json │ ├── tc_config_msn4600.json │ ├── tc_config_msn4600C.json │ ├── tc_config_msn4700.json │ ├── tc_config_msn4700_mps.json │ ├── tc_config_msn5400.json │ ├── tc_config_msn5600.json │ ├── tc_config_msn5600d.json │ ├── tc_config_n5100ld.json │ ├── tc_config_n5110ld.json │ ├── tc_config_n5110ld_ttm.json │ ├── tc_config_not_supported.json │ ├── tc_config_q3200.json │ ├── tc_config_q3400.json │ ├── tc_config_q3450.json │ ├── tc_config_sn4280.json │ ├── tc_config_sn5610.json │ └── tc_config_sn5640.json ├── hw-management-virtual │ ├── HI122 │ │ └── psu_vpd │ ├── HI130 │ │ └── psu_vpd │ ├── HI144 │ │ └── psu_vpd │ ├── HI147 │ │ └── psu_vpd │ ├── HI157 │ │ └── psu_vpd │ ├── HI158 │ │ └── psu_vpd │ ├── HI160 │ │ └── psu_vpd │ ├── HI166 │ │ ├── environment │ │ └── thermal │ ├── HI171 │ │ └── psu_vpd │ ├── HI172 │ │ └── psu_vpd │ └── HI176 │ │ ├── environment │ │ └── thermal ├── logrotate.d │ └── udev ├── modprobe.d │ ├── hw-management-arm64.conf │ └── hw-management.conf └── modules-load.d │ ├── 05-hw-management-modules-arm64.conf │ └── 05-hw-management-modules.conf ├── lib └── udev │ └── rules.d │ ├── 49-hw-management-fast-events.rules │ ├── 50-hw-management-events-dpu.rules │ ├── 50-hw-management-events.rules │ ├── 51-hw-management-events-modular.rules │ └── 70-hw-management-bmc.rules └── usr └── bin ├── __init.py__ ├── hw-management-chassis-events.sh ├── hw-management-check-bios-update.sh ├── hw-management-devtree-check.sh ├── hw-management-devtree.sh ├── hw-management-fast-sysfs-monitor.sh ├── hw-management-generate-dump.sh ├── hw-management-global-wp.sh ├── hw-management-helpers.sh ├── hw-management-i2c-gpio-expander.sh ├── hw-management-if-rename.sh ├── hw-management-ifupdown.sh ├── hw-management-kexec-notifier.sh ├── hw-management-label-init-complete.sh ├── hw-management-labels-maker.sh ├── hw-management-led-state-conversion.sh ├── hw-management-parse-eeprom.sh ├── hw-management-power-helper.sh ├── hw-management-ps-vpd.sh ├── hw-management-ready.sh ├── hw-management-start-post.sh ├── hw-management-sysfs-monitor.sh ├── hw-management-thermal-events.sh ├── hw-management-vpd-parser.py ├── hw-management-wd.sh ├── hw-management.sh ├── hw_management_dpu_thermal_update.py ├── hw_management_independent_mode_update.py ├── hw_management_nvl_temperature_get.py ├── hw_management_parse_labels.py ├── hw_management_psu_fw_update_common.py ├── hw_management_psu_fw_update_delta.py ├── hw_management_psu_fw_update_murata.py ├── hw_management_redfish_client.py ├── hw_management_sync.py ├── hw_management_thermal_control.py ├── hw_management_thermal_control_2_5.py ├── iorw ├── iorw.sh └── sxd_read_cpld_ver.py /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @sholeksandr @ciju-nvidia @felixradensky @mshych @acoifmannvidia @vadimp-nvidia 2 | -------------------------------------------------------------------------------- /.github/workflows/build-release.yml: -------------------------------------------------------------------------------- 1 | # This is an action script to build and attach the packages to a release 2 | name: Build hw-management release artifacts 3 | 4 | on: 5 | release: 6 | types: [published] 7 | 8 | jobs: 9 | rpm_build: 10 | runs-on: ubuntu-latest 11 | permissions: 12 | contents: write 13 | steps: 14 | - uses: actions/checkout@v3.5.2 15 | - name: Install build packages 16 | run: | 17 | sudo apt-get update 18 | sudo apt-get install rpm 19 | sudo apt-get install devscripts build-essential lintian dh-make 20 | - name: Build deb & rpm packages 21 | run: | 22 | debuild -us -uc -d 23 | debuild -us -uc -b -aarm64 24 | cd rpm 25 | chmod a+x ./gen_rpm.sh 26 | ./gen_rpm.sh 27 | 28 | - name: Release 29 | uses: softprops/action-gh-release@v0.1.15 30 | if: startsWith(github.ref, 'refs/tags/') 31 | with: 32 | files: | 33 | ../*.deb 34 | rpm/*.rpm 35 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | output/ 2 | -------------------------------------------------------------------------------- /.pulse-trufflehog-allowlist.json: -------------------------------------------------------------------------------- 1 | { 2 | "usr/usr/bin/hw_management_redfish_client.py": { 3 | "Password" : ["\"pa*****************\"", "\"password\" : \"******\""] 4 | }, 5 | "recipes-kernel/linux/linux-6.1/0103-platform-mellanox-mlx-dpu-improve-interrupt-handling.patch": { 6 | "Github": ["4b17e10a22771fcd2dbb4754c43200af2fc69425"] 7 | }, 8 | "recipes-kernel/linux/linux-5.10/0292-platform-mellanox-mlx-platform-Add-support-for-new-X.patch": { 9 | "Github": ["f194151e386cb26826766dcfe8a2a0c5fba2799e", "92a3877be169c1083cf2ccdbe2e25a4591ed89aa", "f25ad1918eb613aa315805717603a0960f42e6df"] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /CI/ONL/daily/linux-4.19/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/CI/ONL/daily/linux-4.19/.gitkeep -------------------------------------------------------------------------------- /CI/ONL/daily/linux-4.9/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/CI/ONL/daily/linux-4.9/.gitkeep -------------------------------------------------------------------------------- /CI/ONL/verification/linux-4.19/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/CI/ONL/verification/linux-4.19/.gitkeep -------------------------------------------------------------------------------- /CI/ONL/verification/linux-4.19/@ONL_thermal_sim_kernel_config.patch: -------------------------------------------------------------------------------- 1 | diff --git a/packages/base/any/kernels/4.19-lts/configs/x86_64-all/x86_64-all.config b/packages/base/any/kernels/4.19-lts/configs/x86_64-all/x86_64-all.config 2 | index 90c23ee..a0b2862 100644 3 | --- a/packages/base/any/kernels/4.19-lts/configs/x86_64-all/x86_64-all.config 4 | +++ b/packages/base/any/kernels/4.19-lts/configs/x86_64-all/x86_64-all.config 5 | @@ -2713,7 +2713,7 @@ CONFIG_THERMAL_GOV_STEP_WISE=y 6 | # CONFIG_THERMAL_GOV_BANG_BANG is not set 7 | CONFIG_THERMAL_GOV_USER_SPACE=y 8 | # CONFIG_THERMAL_GOV_POWER_ALLOCATOR is not set 9 | -# CONFIG_THERMAL_EMULATION is not set 10 | +CONFIG_THERMAL_EMULATION=y 11 | # CONFIG_INTEL_POWERCLAMP is not set 12 | CONFIG_X86_PKG_TEMP_THERMAL=m 13 | # CONFIG_INTEL_SOC_DTS_THERMAL is not set 14 | -------------------------------------------------------------------------------- /CI/ONL/verification/linux-4.9/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/CI/ONL/verification/linux-4.9/.gitkeep -------------------------------------------------------------------------------- /CI/ONL/verification/linux-4.9/@ONL_thermal_sim_kernel_config.patch: -------------------------------------------------------------------------------- 1 | diff --git a/packages/base/any/kernels/4.9-lts/configs/x86_64-all/x86_64-all.config b/packages/base/any/kernels/4.9-lts/configs/x86_64-all/x86_64-all.config 2 | index e81ebd3..2a26cf4 100755 3 | --- a/packages/base/any/kernels/4.9-lts/configs/x86_64-all/x86_64-all.config 4 | +++ b/packages/base/any/kernels/4.9-lts/configs/x86_64-all/x86_64-all.config 5 | @@ -2682,7 +2682,7 @@ CONFIG_THERMAL_GOV_STEP_WISE=y 6 | # CONFIG_THERMAL_GOV_BANG_BANG is not set 7 | CONFIG_THERMAL_GOV_USER_SPACE=y 8 | # CONFIG_THERMAL_GOV_POWER_ALLOCATOR is not set 9 | -# CONFIG_THERMAL_EMULATION is not set 10 | +CONFIG_THERMAL_EMULATION=y 11 | # CONFIG_INTEL_POWERCLAMP is not set 12 | CONFIG_X86_PKG_TEMP_THERMAL=m 13 | # CONFIG_INTEL_SOC_DTS_THERMAL is not set 14 | -------------------------------------------------------------------------------- /Documentation/Chassis_Management_for_Mellanox_Switch_Systems_with_Sysfs_rev.2.8.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/Documentation/Chassis_Management_for_Mellanox_Switch_Systems_with_Sysfs_rev.2.8.pdf -------------------------------------------------------------------------------- /Documentation/Thermal Monitoring for Mellanox Systems with third party OS.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/Documentation/Thermal Monitoring for Mellanox Systems with third party OS.pdf -------------------------------------------------------------------------------- /debian/changelog: -------------------------------------------------------------------------------- 1 | hw-management (1.mlnx.7.0050.0939) unstable; urgency=low 2 | [ MLNX ] 3 | 4 | -- NBU BSP Mon, 02 Jun 2025 20:00:00 +030 5 | -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- 1 | Source: hw-management 2 | Section: utils 3 | Priority: optional 4 | Maintainer: Yehuda Yehudai 5 | Build-Depends: debhelper (>= 10.0.0) 6 | Standards-Version: 3.9.8 7 | Homepage: http://www.nvidia.com 8 | 9 | Package:hw-management 10 | Architecture: any 11 | Depends: ${misc:Depends}, ${shlibs:Depends}, ${dist:Depends}, lsb-base (>= 3.0-6), python2.7 | python3, xxd, libiio-utils, dmidecode, i2c-tools 12 | Description: Thermal control and chassis management for Nvidia systems 13 | This package supports Nvidia switches family for chassis 14 | management and thermal control. 15 | -------------------------------------------------------------------------------- /debian/hw-management.hw-management-fast-sysfs-monitor.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=HW management Fast Lables Monitor 3 | 4 | StartLimitIntervalSec=1200 5 | StartLimitBurst=5 6 | 7 | [Service] 8 | Type=oneshot 9 | ExecStart=/bin/sh -c "/usr/bin/hw-management-fast-sysfs-monitor.sh start" 10 | ExecStop=/bin/sh -c "/usr/bin/hw-management-fast-sysfs-monitor.sh stop" 11 | 12 | Restart=on-failure 13 | RestartSec=60s 14 | 15 | [Install] 16 | WantedBy=multi-user.target 17 | -------------------------------------------------------------------------------- /debian/hw-management.hw-management-sync.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Hw-management events sync service of Nvidia systems 3 | After=hw-management.service 4 | Requires=hw-management.service 5 | PartOf=hw-management.service 6 | 7 | StartLimitIntervalSec=1200 8 | StartLimitBurst=5 9 | 10 | [Service] 11 | ExecStart=/bin/sh -c "/usr/bin/hw_management_sync.py" 12 | ExecStop=/bin/kill $MAINPID 13 | TimeoutStopSec=1 14 | 15 | Restart=on-failure 16 | RestartSec=10s 17 | 18 | [Install] 19 | WantedBy=multi-user.target 20 | -------------------------------------------------------------------------------- /debian/hw-management.hw-management-sysfs-monitor.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=HW management Lables Monitor 3 | After=hw-management.service 4 | Requires=hw-management.service 5 | PartOf=hw-management.service 6 | 7 | StartLimitIntervalSec=1200 8 | StartLimitBurst=5 9 | 10 | [Service] 11 | Type=oneshot 12 | ExecStart=/bin/sh -c "/usr/bin/hw-management-sysfs-monitor.sh start" 13 | ExecStop=/bin/sh -c "/usr/bin/hw-management-sysfs-monitor.sh stop" 14 | 15 | Restart=on-failure 16 | RestartSec=60s 17 | 18 | [Install] 19 | WantedBy=multi-user.target 20 | -------------------------------------------------------------------------------- /debian/hw-management.hw-management-tc.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Thermal control service (ver 2.0) of Mellanox systems 3 | After=hw-management.service 4 | Requires=hw-management.service 5 | PartOf=hw-management.service 6 | Documentation=man:hw-management-tc.service(8) 7 | 8 | StartLimitIntervalSec=1200 9 | StartLimitBurst=5 10 | 11 | [Service] 12 | ExecStart=/bin/sh -c "/usr/bin/hw_management_thermal_control.py" 13 | ExecStop=/bin/kill $MAINPID 14 | TimeoutStopSec=1 15 | 16 | Restart=on-failure 17 | RestartSec=60s 18 | 19 | [Install] 20 | WantedBy=multi-user.target 21 | -------------------------------------------------------------------------------- /debian/hw-management.hw-management.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Chassis HW management service of Mellanox systems 3 | Documentation=man:hw-management.service(8) 4 | Wants=hw-management-sync.service 5 | 6 | [Service] 7 | Type=oneshot 8 | RemainAfterExit=true 9 | ExecStartPre=-/bin/sh -c "/usr/bin/hw-management-ready.sh" 10 | ExecStart=/bin/sh -c "/usr/bin/hw-management.sh start" 11 | ExecStop=/bin/sh -c "/usr/bin/hw-management.sh stop" 12 | ExecStopPost=/bin/sleep 3 13 | 14 | [Install] 15 | WantedBy=multi-user.target 16 | -------------------------------------------------------------------------------- /debian/hw-management.manpages: -------------------------------------------------------------------------------- 1 | doc/man/hw-management.service.8 2 | doc/man/hw-management-tc.service.8 3 | doc/man/hw-management.1 -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 1.0 -------------------------------------------------------------------------------- /debian/source/options: -------------------------------------------------------------------------------- 1 | extend-diff-ignore = "(^|/)(.git)$" -------------------------------------------------------------------------------- /doc/man/hw-management-tc.service.8: -------------------------------------------------------------------------------- 1 | .TH HW-MANAGEMENT-TC "8" "June 2020" "hw-management-tc " "hw-management" 2 | .SH NAME 3 | hw-management-tc.service \- service used to run hw-management-thermal-control.sh 4 | .SH SYNOPSIS 5 | Thermal control for Mellanox systems. 6 | A method for performing switch or router system thermal control monitoring, such as that employed 7 | for complex system's configuration with a single FAN control and with multi-points of temperature 8 | measure is disclosed. The technique referred to as the Optimized Thermal Monitoring Algorithm 9 | (OTMA) approach, periodically re-calculates the highest temperature score of all thermal zones 10 | and enforce thermal control to following the thermal zone with the highest score. 11 | .SH OPTIONS 12 | .TP 13 | start 14 | Start hw\-management-tc service. 15 | .TP 16 | stop 17 | Stop hw\-management-tc service. 18 | .SH SEE ALSO 19 | \fBhw-management\fR(1) 20 | \fBhw-management.service\fR(8) 21 | -------------------------------------------------------------------------------- /doc/man/hw-management.service.8: -------------------------------------------------------------------------------- 1 | .TH HW-MANAGEMENT "8" "June 2020" "hw-management " "hw-management" 2 | .SH NAME 3 | hw-management.service \- service used to run hw-management.sh 4 | .SH SYNOPSIS 5 | Chassis management for Mellanox systems. 6 | Mellanox hw-management package uses a virtual file system provided by the Linux kernel 7 | called sysfs. 8 | The sysfs file system enumerates the devices and buses attached to the system in a file 9 | system hierarchy that can be accessed from the user space. 10 | The major advantage of working with sysfs is that it makes HW hierarchy easy to understand 11 | and control without having to learn about HW component location and the buses through 12 | which they are connected. 13 | .SH SEE ALSO 14 | \fBhw-management\fR(1) 15 | \fBhw-management-tc.service\fR(8) 16 | -------------------------------------------------------------------------------- /docker_build/build-helper.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | # Install extra dependencies that were provided for the build (if any) 4 | # Note: dpkg can fail due to dependencies, ignore errors, and use 5 | # apt-get to install those afterwards 6 | [[ -d /dependencies ]] && dpkg -i /dependencies/*.deb || apt-get -f install -y --no-install-recommends 7 | 8 | # Make read-write copy of source code 9 | mkdir -p /build 10 | cp -a /source-ro /build/source 11 | cd /build/source 12 | 13 | # Install build dependencies 14 | mk-build-deps -ir -t "apt-get -o Debug::pkgProblemResolver=yes -y --no-install-recommends" 15 | 16 | # Build packages 17 | #1. build deb package 18 | debuild -b -uc -us 19 | 20 | # Copy packages to output dir with user's permissions 21 | chown -R $USER:$GROUP /build 22 | cp -a /build/*.deb /output/ 23 | 24 | #2. convert to rpm 25 | alien -r -c -v /build/*.deb 26 | cp -a *.rpm /output/ 27 | -------------------------------------------------------------------------------- /docker_build/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | SCRIPT=`realpath $0` 4 | PWD=`dirname $SCRIPT` 5 | OUTPUT=${PWD}/../output/ 6 | if [ ! -d "$OUTPUT" ]; then 7 | mkdir $OUTPUT 8 | fi 9 | docker build -t docker-deb-builder:stretsh -f ${PWD}/dockerfile_hw_mgmt ${PWD}/ 10 | docker run -v ${PWD}/../:/source-ro:ro -v ${OUTPUT}:/output -v ${PWD}/build-helper.sh:/build-helper.sh:ro -e USER=5616 -e GROUP=101 --rm docker-deb-builder:stretsh /build-helper.sh 11 | cd ${OUTPUT} 12 | echo $(pwd)/$(ls) 13 | -------------------------------------------------------------------------------- /docker_build/dockerfile_hw_mgmt: -------------------------------------------------------------------------------- 1 | FROM debian:bullseye 2 | MAINTAINER Oleksandr Shamray 3 | RUN apt-get update \ 4 | && apt-get install -y --no-install-recommends \ 5 | build-essential \ 6 | devscripts \ 7 | equivs \ 8 | fakeroot \ 9 | debhelper \ 10 | automake \ 11 | autotools-dev \ 12 | pkg-config \ 13 | ca-certificates \ 14 | alien \ 15 | && apt-get clean \ 16 | && rm -rf /tmp/* /var/tmp/* 17 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0002-i2c-mlxcpld-Decrease-polling-time-for-performance-im.patch: -------------------------------------------------------------------------------- 1 | From 12fe50acf879f7552616a539e7b4a580da809a7b Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Thu, 10 Dec 2020 18:51:12 +0200 4 | Subject: [PATCH backport 5.10 002/182] i2c: mlxcpld: Decrease polling time for 5 | performance improvement 6 | 7 | Decrease polling time 'MLXCPLD_I2C_POLL_TIME' from 2000 usec to 400 8 | usec. It greatly improves performance of I2C transactions. 9 | 10 | Reliability of setting polling time to 400 usec has been thoroughly 11 | validated across all the supported systems. 12 | 13 | Signed-off-by: Vadim Pasternak 14 | Signed-off-by: Wolfram Sang 15 | --- 16 | drivers/i2c/busses/i2c-mlxcpld.c | 2 +- 17 | 1 file changed, 1 insertion(+), 1 deletion(-) 18 | 19 | diff --git a/drivers/i2c/busses/i2c-mlxcpld.c b/drivers/i2c/busses/i2c-mlxcpld.c 20 | index dbd185368c38..9e45214d1eb6 100644 21 | --- a/drivers/i2c/busses/i2c-mlxcpld.c 22 | +++ b/drivers/i2c/busses/i2c-mlxcpld.c 23 | @@ -25,7 +25,7 @@ 24 | #define MLXCPLD_I2C_MAX_ADDR_LEN 4 25 | #define MLXCPLD_I2C_RETR_NUM 2 26 | #define MLXCPLD_I2C_XFER_TO 500000 /* usec */ 27 | -#define MLXCPLD_I2C_POLL_TIME 2000 /* usec */ 28 | +#define MLXCPLD_I2C_POLL_TIME 400 /* usec */ 29 | 30 | /* LPC I2C registers */ 31 | #define MLXCPLD_LPCI2C_CPBLTY_REG 0x0 32 | -- 33 | 2.20.1 34 | 35 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0021-mlxsw-reg-Add-bank-number-to-MCIA-register.patch: -------------------------------------------------------------------------------- 1 | From 4fb08df650df57f76a7bbe71a6e9e6e9e0b447e9 Mon Sep 17 00:00:00 2001 2 | From: Ido Schimmel 3 | Date: Mon, 21 Jun 2021 10:50:39 +0300 4 | Subject: [PATCH backport 5.10 021/182] mlxsw: reg: Add bank number to MCIA 5 | register 6 | 7 | Add bank number to MCIA (Management Cable Info Access) register in order 8 | to allow access to banked pages on EEPROMs using CMIS (Common Management 9 | Interface Specification) memory map. 10 | 11 | Signed-off-by: Ido Schimmel 12 | Reviewed-by: Jiri Pirko 13 | Signed-off-by: David S. Miller 14 | --- 15 | drivers/net/ethernet/mellanox/mlxsw/reg.h | 6 ++++++ 16 | 1 file changed, 6 insertions(+) 17 | 18 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h 19 | index dfcde953174c..d9b5cfb939f0 100644 20 | --- a/drivers/net/ethernet/mellanox/mlxsw/reg.h 21 | +++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h 22 | @@ -8736,6 +8736,12 @@ MLXSW_ITEM32(reg, mcia, page_number, 0x04, 16, 8); 23 | */ 24 | MLXSW_ITEM32(reg, mcia, device_address, 0x04, 0, 16); 25 | 26 | +/* reg_mcia_bank_number 27 | + * Bank number. 28 | + * Access: Index 29 | + */ 30 | +MLXSW_ITEM32(reg, mcia, bank_number, 0x08, 16, 8); 31 | + 32 | /* reg_mcia_size 33 | * Number of bytes to read/write (up to 48 bytes). 34 | * Access: RW 35 | -- 36 | 2.20.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0027-ethtool-Decrease-size-of-module-EEPROM-get-policy-ar.patch: -------------------------------------------------------------------------------- 1 | From 9de352f9a4b7575e8934eb000b1cf388520020e5 Mon Sep 17 00:00:00 2001 2 | From: Ido Schimmel 3 | Date: Tue, 22 Jun 2021 09:50:48 +0300 4 | Subject: [PATCH backport 5.10 027/182] ethtool: Decrease size of module EEPROM 5 | get policy array 6 | 7 | The 'ETHTOOL_A_MODULE_EEPROM_DATA' attribute is not part of the get 8 | request. 9 | 10 | Signed-off-by: Ido Schimmel 11 | Signed-off-by: David S. Miller 12 | --- 13 | net/ethtool/netlink.h | 2 +- 14 | 1 file changed, 1 insertion(+), 1 deletion(-) 15 | 16 | diff --git a/net/ethtool/netlink.h b/net/ethtool/netlink.h 17 | index 4a07fc93c5cc..28dbd582c860 100644 18 | --- a/net/ethtool/netlink.h 19 | +++ b/net/ethtool/netlink.h 20 | @@ -379,7 +379,7 @@ extern const struct nla_policy ethnl_tsinfo_get_policy[ETHTOOL_A_TSINFO_HEADER + 21 | extern const struct nla_policy ethnl_cable_test_act_policy[ETHTOOL_A_CABLE_TEST_HEADER + 1]; 22 | extern const struct nla_policy ethnl_cable_test_tdr_act_policy[ETHTOOL_A_CABLE_TEST_TDR_CFG + 1]; 23 | extern const struct nla_policy ethnl_tunnel_info_get_policy[ETHTOOL_A_TUNNEL_INFO_HEADER + 1]; 24 | -extern const struct nla_policy ethnl_module_eeprom_get_policy[ETHTOOL_A_MODULE_EEPROM_DATA + 1]; 25 | +extern const struct nla_policy ethnl_module_eeprom_get_policy[ETHTOOL_A_MODULE_EEPROM_I2C_ADDRESS + 1]; 26 | 27 | int ethnl_set_linkinfo(struct sk_buff *skb, struct genl_info *info); 28 | int ethnl_set_linkmodes(struct sk_buff *skb, struct genl_info *info); 29 | -- 30 | 2.20.1 31 | 32 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0028-ethtool-Use-kernel-data-types-for-internal-EEPROM-st.patch: -------------------------------------------------------------------------------- 1 | From e6b7a06472dd05d7eb4d8daec023534223e6772f Mon Sep 17 00:00:00 2001 2 | From: Ido Schimmel 3 | Date: Tue, 22 Jun 2021 09:50:50 +0300 4 | Subject: [PATCH backport 5.10 028/182] ethtool: Use kernel data types for 5 | internal EEPROM struct 6 | 7 | The struct is not visible to user space and therefore should not use the 8 | user visible data types. 9 | 10 | Instead, use internal data types like other structures in the file. 11 | 12 | Signed-off-by: Ido Schimmel 13 | Signed-off-by: David S. Miller 14 | --- 15 | include/linux/ethtool.h | 12 ++++++------ 16 | 1 file changed, 6 insertions(+), 6 deletions(-) 17 | 18 | diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h 19 | index 4d199de36e02..dbabd804b2cb 100644 20 | --- a/include/linux/ethtool.h 21 | +++ b/include/linux/ethtool.h 22 | @@ -276,12 +276,12 @@ struct ethtool_pause_stats { 23 | * required information to the driver. 24 | */ 25 | struct ethtool_module_eeprom { 26 | - __u32 offset; 27 | - __u32 length; 28 | - __u8 page; 29 | - __u8 bank; 30 | - __u8 i2c_address; 31 | - __u8 *data; 32 | + u32 offset; 33 | + u32 length; 34 | + u8 page; 35 | + u8 bank; 36 | + u8 i2c_address; 37 | + u8 *data; 38 | }; 39 | 40 | /** 41 | -- 42 | 2.20.1 43 | 44 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0035-hwmon-pmbus-Increase-maximum-number-of-phases-per-pa.patch: -------------------------------------------------------------------------------- 1 | From 9a37a1e841f05b5a2f35728c6531411335c8db00 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Tue, 11 May 2021 08:56:17 +0300 4 | Subject: [PATCH backport 5.10 035/182] hwmon: (pmbus) Increase maximum number 5 | of phases per page 6 | 7 | Increase maximum number of phases from 8 to 10 to support multi-phase 8 | devices allowing up to 10 phases. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | Link: https://lore.kernel.org/r/20210511055619.118104-2-vadimp@nvidia.com 12 | Signed-off-by: Guenter Roeck 13 | --- 14 | drivers/hwmon/pmbus/pmbus.h | 2 +- 15 | 1 file changed, 1 insertion(+), 1 deletion(-) 16 | 17 | diff --git a/drivers/hwmon/pmbus/pmbus.h b/drivers/hwmon/pmbus/pmbus.h 18 | index c88ac5fd91f0..cb6dbe29c0bf 100644 19 | --- a/drivers/hwmon/pmbus/pmbus.h 20 | +++ b/drivers/hwmon/pmbus/pmbus.h 21 | @@ -376,7 +376,7 @@ enum pmbus_sensor_classes { 22 | }; 23 | 24 | #define PMBUS_PAGES 32 /* Per PMBus specification */ 25 | -#define PMBUS_PHASES 8 /* Maximum number of phases per page */ 26 | +#define PMBUS_PHASES 10 /* Maximum number of phases per page */ 27 | 28 | /* Functionality bit mask */ 29 | #define PMBUS_HAVE_VIN BIT(0) 30 | -- 31 | 2.20.1 32 | 33 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0037-dt-bindings-Add-MP2888-voltage-regulator-device.patch: -------------------------------------------------------------------------------- 1 | From f5c7f2a6c2443f8991fef683ad7bd8b2cddf5415 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Tue, 11 May 2021 08:56:19 +0300 4 | Subject: [PATCH backport 5.10 037/182] dt-bindings: Add MP2888 voltage 5 | regulator device 6 | 7 | Monolithic Power Systems, Inc. (MPS) dual-loop, digital, multi-phase 8 | controller. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | Acked-by: Rob Herring 12 | Link: https://lore.kernel.org/r/20210511055619.118104-4-vadimp@nvidia.com 13 | Signed-off-by: Guenter Roeck 14 | --- 15 | Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 16 | 1 file changed, 2 insertions(+) 17 | 18 | diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml 19 | index ab623ba930d5..52bc54b2d723 100644 20 | --- a/Documentation/devicetree/bindings/trivial-devices.yaml 21 | +++ b/Documentation/devicetree/bindings/trivial-devices.yaml 22 | @@ -82,6 +82,8 @@ properties: 23 | - fsl,mpl3115 24 | # MPR121: Proximity Capacitive Touch Sensor Controller 25 | - fsl,mpr121 26 | + # Monolithic Power Systems Inc. multi-phase controller mp2888 27 | + - mps,mp2888 28 | # Monolithic Power Systems Inc. multi-phase controller mp2975 29 | - mps,mp2975 30 | # G751: Digital Temperature Sensor and Thermal Watchdog with Two-Wire Interface 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0044-platform-mellanox-mlxreg-io-Fix-read-access-of-n-byt.patch: -------------------------------------------------------------------------------- 1 | From 5819cfb897358c008e0fe5ccd5efd5ca681eb151 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Tue, 6 Jul 2021 05:57:39 +0000 4 | Subject: [PATCH backport v5.10.43 44/67] platform/mellanox: mlxreg-io: Fix 5 | read access of n-bytes size attributes 6 | 7 | Fix shift argument for function rol32(). It should be provided in bits, 8 | while was provided in bytes. 9 | 10 | Fixes: 86148190a7db: (" platform/mellanox: mlxreg-io: Add support for complex attributes") 11 | Signed-off-by: Vadim Pasternak 12 | --- 13 | drivers/platform/mellanox/mlxreg-io.c | 2 +- 14 | 1 file changed, 1 insertion(+), 1 deletion(-) 15 | 16 | diff --git a/drivers/platform/mellanox/mlxreg-io.c b/drivers/platform/mellanox/mlxreg-io.c 17 | index a023ec02126b..a916cd89cbbe 100644 18 | --- a/drivers/platform/mellanox/mlxreg-io.c 19 | +++ b/drivers/platform/mellanox/mlxreg-io.c 20 | @@ -98,7 +98,7 @@ mlxreg_io_get_reg(void *regmap, struct mlxreg_core_data *data, u32 in_val, 21 | if (ret) 22 | goto access_error; 23 | 24 | - *regval |= rol32(val, regsize * i); 25 | + *regval |= rol32(val, regsize * i * 8); 26 | } 27 | } 28 | 29 | -- 30 | 2.20.1 31 | 32 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0045-i2c-mlxcpld-Fix-criteria-for-frequency-setting.patch: -------------------------------------------------------------------------------- 1 | From a0ea663d696f2d67fc5ac8f33ab26b60b932f5cd Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Sat, 10 Jul 2021 07:24:22 +0000 4 | Subject: [PATCH backport 5.10 045/182] i2c: mlxcpld: Fix criteria for 5 | frequency setting 6 | 7 | Value for getting frequency capability wrongly has been taken from 8 | register offset instead of register value. 9 | 10 | Fixes: 66b0c2846ba8de ("i2c: mlxcpld: Add support for I2C bus frequency setting") 11 | Signed-off-by: Vadim Pasternak 12 | --- 13 | drivers/i2c/busses/i2c-mlxcpld.c | 2 +- 14 | 1 file changed, 1 insertion(+), 1 deletion(-) 15 | 16 | diff --git a/drivers/i2c/busses/i2c-mlxcpld.c b/drivers/i2c/busses/i2c-mlxcpld.c 17 | index 4e0b7c2882ce..6d41c3db8a2b 100644 18 | --- a/drivers/i2c/busses/i2c-mlxcpld.c 19 | +++ b/drivers/i2c/busses/i2c-mlxcpld.c 20 | @@ -495,7 +495,7 @@ mlxcpld_i2c_set_frequency(struct mlxcpld_i2c_priv *priv, 21 | return err; 22 | 23 | /* Set frequency only if it is not 100KHz, which is default. */ 24 | - switch ((data->reg & data->mask) >> data->bit) { 25 | + switch ((regval & data->mask) >> data->bit) { 26 | case MLXCPLD_I2C_FREQ_1000KHZ: 27 | freq = MLXCPLD_I2C_FREQ_1000KHZ_SET; 28 | break; 29 | -- 30 | 2.20.1 31 | 32 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0046-i2c-mlxcpld-Reduce-polling-time-for-performance-impr.patch: -------------------------------------------------------------------------------- 1 | From fdcccb92ef348e32a9e3693f8a2e3df9dfa48ccf Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Tue, 6 Jul 2021 09:37:04 +0000 4 | Subject: [PATCH backport 5.10 046/182] i2c: mlxcpld: Reduce polling time for 5 | performance improvement 6 | 7 | Decrease polling time 'MLXCPLD_I2C_POLL_TIME' from 400 usec to 200 8 | usec. It improves performance of I2C transactions. 9 | 10 | Reliability of setting polling time to 200 usec has been validated 11 | across all the supported systems. 12 | 13 | Signed-off-by: Vadim Pasternak 14 | --- 15 | drivers/i2c/busses/i2c-mlxcpld.c | 2 +- 16 | 1 file changed, 1 insertion(+), 1 deletion(-) 17 | 18 | diff --git a/drivers/i2c/busses/i2c-mlxcpld.c b/drivers/i2c/busses/i2c-mlxcpld.c 19 | index 6d41c3db8a2b..8e110d792147 100644 20 | --- a/drivers/i2c/busses/i2c-mlxcpld.c 21 | +++ b/drivers/i2c/busses/i2c-mlxcpld.c 22 | @@ -27,7 +27,7 @@ 23 | #define MLXCPLD_I2C_MAX_ADDR_LEN 4 24 | #define MLXCPLD_I2C_RETR_NUM 2 25 | #define MLXCPLD_I2C_XFER_TO 500000 /* usec */ 26 | -#define MLXCPLD_I2C_POLL_TIME 400 /* usec */ 27 | +#define MLXCPLD_I2C_POLL_TIME 200 /* usec */ 28 | 29 | /* LPC I2C registers */ 30 | #define MLXCPLD_LPCI2C_CPBLTY_REG 0x0 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0048-hwmon-pmbus-mp2975-Add-missed-POUT-attribute-for-pag.patch: -------------------------------------------------------------------------------- 1 | From 7d6e083233a774fdc790e99f742d88933825f98c Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Sat, 10 Jul 2021 07:26:38 +0000 4 | Subject: [PATCH backport v5.10.43 48/67] hwmon: (pmbus/mp2975) Add missed POUT 5 | attribute for page 2 mp2975 controller 6 | 7 | Add missed attribute for reading POUT from page 2. 8 | It is supported by device, but has been missed in initial commit. 9 | 10 | Fixes: 2c6fcbb21149 ("hwmon: (pmbus) Add support for MPS Multi-phase mp2975 controller") 11 | Signed-off-by: Vadim Pasternak 12 | --- 13 | drivers/hwmon/pmbus/mp2975.c | 2 +- 14 | 1 file changed, 1 insertion(+), 1 deletion(-) 15 | 16 | diff --git a/drivers/hwmon/pmbus/mp2975.c b/drivers/hwmon/pmbus/mp2975.c 17 | index 60fbdb371332..74060bc477cf 100644 18 | --- a/drivers/hwmon/pmbus/mp2975.c 19 | +++ b/drivers/hwmon/pmbus/mp2975.c 20 | @@ -54,7 +54,7 @@ 21 | 22 | #define MP2975_RAIL2_FUNC (PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT | \ 23 | PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT | \ 24 | - PMBUS_PHASE_VIRTUAL) 25 | + PMBUS_HAVE_POUT | PMBUS_PHASE_VIRTUAL) 26 | 27 | struct mp2975_data { 28 | struct pmbus_driver_info info; 29 | -- 30 | 2.20.1 31 | 32 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0050-leds-mlxreg-Skip-setting-LED-color-during-initializa.patch: -------------------------------------------------------------------------------- 1 | From 3d0e396f29b5da17385c279946b70ee5cd373efe Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Wed, 7 Jul 2021 10:18:14 +0000 4 | Subject: [PATCH backport 5.10 050/182] leds: mlxreg: Skip setting LED color 5 | during initialization 6 | 7 | Hardware controls LED through CPLD device and LED control ownership 8 | passes to the software after it performs the first write operation for 9 | any LED on a system. 10 | For example, hardware sets "system" LED "green blink" during boot and 11 | might change it to "red", in case something is went wrong from hardware 12 | point of view. 13 | The motivation for not setting LED during kernel initialization is for 14 | keeping hardware settings visible for user, until user will not decide 15 | to set LEDs according to user OS specific requirements. 16 | 17 | Signed-off-by: Vadim Pasternak 18 | --- 19 | drivers/leds/leds-mlxreg.c | 3 --- 20 | 1 file changed, 3 deletions(-) 21 | 22 | diff --git a/drivers/leds/leds-mlxreg.c b/drivers/leds/leds-mlxreg.c 23 | index 82aea1cd0c12..7df4653a80d7 100644 24 | --- a/drivers/leds/leds-mlxreg.c 25 | +++ b/drivers/leds/leds-mlxreg.c 26 | @@ -243,9 +243,6 @@ static int mlxreg_led_config(struct mlxreg_led_priv_data *priv) 27 | if (err) 28 | return err; 29 | 30 | - if (led_cdev->brightness) 31 | - mlxreg_led_brightness_set(led_cdev, 32 | - led_cdev->brightness); 33 | dev_info(led_cdev->dev, "label: %s, mask: 0x%02x, offset:0x%02x\n", 34 | data->label, data->mask, data->reg); 35 | } 36 | -- 37 | 2.20.1 38 | 39 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0059-platform-mellanox-mlxreg-io-Extend-number-of-hwmon-a.patch: -------------------------------------------------------------------------------- 1 | From 1832955f5b8d4f7dc9e20d4e860564d798f6d24c Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Thu, 25 Mar 2021 20:12:07 +0200 4 | Subject: [PATCH backport 5.10 059/182] platform/mellanox: mlxreg-io: Extend 5 | number of hwmon attributes 6 | 7 | Extend maximum number of the attributes, exposed to 'sysfs'. 8 | It is requires in order to support modular systems, which 9 | provide more attributes for system control, statuses and info. 10 | 11 | Signed-off-by: Vadim Pasternak 12 | Signed-off-by: Jiri Pirko 13 | --- 14 | drivers/platform/mellanox/mlxreg-io.c | 2 +- 15 | 1 file changed, 1 insertion(+), 1 deletion(-) 16 | 17 | diff --git a/drivers/platform/mellanox/mlxreg-io.c b/drivers/platform/mellanox/mlxreg-io.c 18 | index a916cd89cbbe..2c2686d5c2fc 100644 19 | --- a/drivers/platform/mellanox/mlxreg-io.c 20 | +++ b/drivers/platform/mellanox/mlxreg-io.c 21 | @@ -18,7 +18,7 @@ 22 | 23 | /* Attribute parameters. */ 24 | #define MLXREG_IO_ATT_SIZE 10 25 | -#define MLXREG_IO_ATT_NUM 48 26 | +#define MLXREG_IO_ATT_NUM 96 27 | 28 | /** 29 | * struct mlxreg_io_priv_data - driver's private data: 30 | -- 31 | 2.20.1 32 | 33 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0060-platform_data-mlxreg-Add-new-field-for-secured-acces.patch: -------------------------------------------------------------------------------- 1 | From d48bd08b57cf84861e741ef8e5a2c4d3d142401c Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 12 Jul 2021 21:39:51 +0000 4 | Subject: [PATCH backport 5.10 060/182] platform_data/mlxreg: Add new field for 5 | secured access 6 | 7 | Extend structure 'mlxreg_core_data' with the field "secured". The 8 | purpose of this field is to restrict access to some attributes, if 9 | kernel is configured with security options, like: 10 | LOCK_DOWN_KERNEL_FORCE_CONFIDENTIALITY. 11 | Access to some attributes, which for example, allow burning of some 12 | hardware components, like FPGA, CPLD, SPI, etcetera can break the 13 | system. In case user does not want to allow such access, it can disable 14 | it by setting security options. 15 | 16 | Signed-off-by: Vadim Pasternak 17 | Reviewed-by: Michael Shych 18 | --- 19 | include/linux/platform_data/mlxreg.h | 1 + 20 | 1 file changed, 1 insertion(+) 21 | 22 | diff --git a/include/linux/platform_data/mlxreg.h b/include/linux/platform_data/mlxreg.h 23 | index 3122d550dc00..40185f9d7c14 100644 24 | --- a/include/linux/platform_data/mlxreg.h 25 | +++ b/include/linux/platform_data/mlxreg.h 26 | @@ -150,6 +150,7 @@ struct mlxreg_core_data { 27 | bool attached; 28 | u8 regnum; 29 | u8 slot; 30 | + u8 secured; 31 | }; 32 | 33 | /** 34 | -- 35 | 2.20.1 36 | 37 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0064-hwmon-mlxreg-fan-Extend-the-maximum-number-of-tachom.patch: -------------------------------------------------------------------------------- 1 | From 0e6b16e3aefc494a1e0a4b1a2c731f8a2fb6ec33 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 12 Jul 2021 22:04:25 +0000 4 | Subject: [PATCH backport 5.10 064/182] hwmon: (mlxreg-fan) Extend the maximum 5 | number of tachometers 6 | 7 | Extend support of maximum tachometers from 12 to 14 in order to support 8 | new systems, equipped with more fans. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | drivers/hwmon/mlxreg-fan.c | 4 +++- 13 | 1 file changed, 3 insertions(+), 1 deletion(-) 14 | 15 | diff --git a/drivers/hwmon/mlxreg-fan.c b/drivers/hwmon/mlxreg-fan.c 16 | index 89fe7b9fe26b..0f5b109817a7 100644 17 | --- a/drivers/hwmon/mlxreg-fan.c 18 | +++ b/drivers/hwmon/mlxreg-fan.c 19 | @@ -12,7 +12,7 @@ 20 | #include 21 | #include 22 | 23 | -#define MLXREG_FAN_MAX_TACHO 12 24 | +#define MLXREG_FAN_MAX_TACHO 14 25 | #define MLXREG_FAN_MAX_STATE 10 26 | #define MLXREG_FAN_MIN_DUTY 51 /* 20% */ 27 | #define MLXREG_FAN_MAX_DUTY 255 /* 100% */ 28 | @@ -266,6 +266,8 @@ static const struct hwmon_channel_info *mlxreg_fan_hwmon_info[] = { 29 | HWMON_F_INPUT | HWMON_F_FAULT, 30 | HWMON_F_INPUT | HWMON_F_FAULT, 31 | HWMON_F_INPUT | HWMON_F_FAULT, 32 | + HWMON_F_INPUT | HWMON_F_FAULT, 33 | + HWMON_F_INPUT | HWMON_F_FAULT, 34 | HWMON_F_INPUT | HWMON_F_FAULT), 35 | HWMON_CHANNEL_INFO(pwm, 36 | HWMON_PWM_INPUT), 37 | -- 38 | 2.20.1 39 | 40 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0081-platform-x86-mlx-platform-Add-support-for-multiply-c.patch: -------------------------------------------------------------------------------- 1 | From 7de97d7e381e768ea11ad1f3520261d5e77c1ab4 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Thu, 19 Aug 2021 14:23:39 +0000 4 | Subject: [PATCH backport 5.10 081/182] platform/x86: mlx-platform: Add support 5 | for multiply cooling devices 6 | 7 | Add new registers to support systems with multiply cooling devices. 8 | Modular systems support up-to four cooling devices. This capability 9 | is detected according to the registers initial setting. 10 | 11 | Signed-off-by: Vadim Pasternak 12 | Reviewed-by: Michael 13 | --- 14 | drivers/platform/x86/mlx-platform.c | 12 ++++++++++++ 15 | 1 file changed, 12 insertions(+) 16 | 17 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 18 | index 614b9f5c673f..5c91410a649b 100644 19 | --- a/drivers/platform/x86/mlx-platform.c 20 | +++ b/drivers/platform/x86/mlx-platform.c 21 | @@ -3688,6 +3688,18 @@ static struct mlxreg_core_data mlxplat_mlxcpld_default_fan_data[] = { 22 | .label = "pwm1", 23 | .reg = MLXPLAT_CPLD_LPC_REG_PWM1_OFFSET, 24 | }, 25 | + { 26 | + .label = "pwm2", 27 | + .reg = MLXPLAT_CPLD_LPC_REG_PWM2_OFFSET, 28 | + }, 29 | + { 30 | + .label = "pwm3", 31 | + .reg = MLXPLAT_CPLD_LPC_REG_PWM3_OFFSET, 32 | + }, 33 | + { 34 | + .label = "pwm4", 35 | + .reg = MLXPLAT_CPLD_LPC_REG_PWM4_OFFSET, 36 | + }, 37 | { 38 | .label = "tacho1", 39 | .reg = MLXPLAT_CPLD_LPC_REG_TACHO1_OFFSET, 40 | -- 41 | 2.20.1 42 | 43 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0082-mlxsw-core-Extend-external-cooling-device-whitelist-.patch: -------------------------------------------------------------------------------- 1 | From 7fbd7c25c4010e8e5fbbc0d8741cff9c69bcea05 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Thu, 7 Oct 2021 19:30:05 +0000 4 | Subject: [PATCH backport 5.10 082/182] mlxsw: core: Extend external cooling 5 | device whitelist for thermal zone binding 6 | 7 | Allow thermal zone binding to an external cooling device of type 8 | "emc2305". 9 | Motivation to support new system SN2021 equipped with ASIC Spectrum-1 10 | supporting 48x Gbps RJ45 + 4x100G QSFP28 ports. 11 | System airflow control is provided by EMC2305 RPM-based PWM Fan Speed 12 | Controller as colling device. 13 | 14 | Signed-off-by: Vadim Pasternak 15 | --- 16 | drivers/net/ethernet/mellanox/mlxsw/core_thermal.c | 1 + 17 | 1 file changed, 1 insertion(+) 18 | 19 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c b/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 20 | index e1a760519097..91abc7a3f7ea 100644 21 | --- a/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 22 | +++ b/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 23 | @@ -30,6 +30,7 @@ 24 | /* External cooling devices, allowed for binding to mlxsw thermal zones. */ 25 | static char * const mlxsw_thermal_external_allowed_cdev[] = { 26 | "mlxreg_fan", 27 | + "emc2305", 28 | }; 29 | 30 | enum mlxsw_thermal_trips { 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0084-i2c-mlxcpld-Add-callback-to-notify-probing-completio.patch: -------------------------------------------------------------------------------- 1 | From eea982a68f01f3e5e63e88d147f581b5c751dc81 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Thu, 7 Oct 2021 19:04:25 +0000 4 | Subject: [PATCH backport 5.10 084/182] i2c: mlxcpld: Add callback to notify 5 | probing completion 6 | 7 | Add notification to inform caller that driver probing has been 8 | completed. It allows to user, invoked platform device registration for 9 | "i2c-mlxcpld" driver, to be notified that bus adapter is available, and 10 | thus some devices could be connected to this bus. 11 | 12 | Signed-off-by: Vadim Pasternak 13 | --- 14 | drivers/i2c/busses/i2c-mlxcpld.c | 4 ++++ 15 | 1 file changed, 4 insertions(+) 16 | 17 | diff --git a/drivers/i2c/busses/i2c-mlxcpld.c b/drivers/i2c/busses/i2c-mlxcpld.c 18 | index 56aa424fd71d..363ea9fd66c4 100644 19 | --- a/drivers/i2c/busses/i2c-mlxcpld.c 20 | +++ b/drivers/i2c/busses/i2c-mlxcpld.c 21 | @@ -560,6 +560,10 @@ static int mlxcpld_i2c_probe(struct platform_device *pdev) 22 | if (err) 23 | goto mlxcpld_i2_probe_failed; 24 | 25 | + /* Notify caller when adapter is added. */ 26 | + if (pdata && pdata->completion_notify) 27 | + pdata->completion_notify(pdata->handle, mlxcpld_i2c_adapter.nr); 28 | + 29 | return 0; 30 | 31 | mlxcpld_i2_probe_failed: 32 | -- 33 | 2.20.1 34 | 35 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0095-hwmon-mlxreg-fan-Fix-out-of-bounds-read-on-array-fan.patch: -------------------------------------------------------------------------------- 1 | From 3e3dcc8a418d6901578e20b081bbf75f2c7a7316 Mon Sep 17 00:00:00 2001 2 | From: Colin Ian King 3 | Date: Mon, 20 Sep 2021 19:09:21 +0100 4 | Subject: [PATCH backport 5.10 095/182] hwmon: (mlxreg-fan) Fix out of bounds 5 | read on array fan->pwm 6 | 7 | Array fan->pwm[] is MLXREG_FAN_MAX_PWM elements in size, however the 8 | for-loop has a off-by-one error causing index i to be out of range 9 | causing an out of bounds read on the array. Fix this by replacing 10 | the <= operator with < in the for-loop. 11 | 12 | Addresses-Coverity: ("Out-of-bounds read") 13 | Reported-by: Vadim Pasternak 14 | Fixes: 35edbaab3bbf ("hwmon: (mlxreg-fan) Extend driver to support multiply cooling devices") 15 | Signed-off-by: Colin Ian King 16 | Link: https://lore.kernel.org/r/20210920180921.16246-1-colin.king@canonical.com 17 | Signed-off-by: Guenter Roeck 18 | --- 19 | drivers/hwmon/mlxreg-fan.c | 2 +- 20 | 1 file changed, 1 insertion(+), 1 deletion(-) 21 | 22 | diff --git a/drivers/hwmon/mlxreg-fan.c b/drivers/hwmon/mlxreg-fan.c 23 | index 35228ed112d7..feab9ec6a6ca 100644 24 | --- a/drivers/hwmon/mlxreg-fan.c 25 | +++ b/drivers/hwmon/mlxreg-fan.c 26 | @@ -554,7 +554,7 @@ static int mlxreg_fan_cooling_config(struct device *dev, struct mlxreg_fan *fan) 27 | { 28 | int i, j; 29 | 30 | - for (i = 0; i <= MLXREG_FAN_MAX_PWM; i++) { 31 | + for (i = 0; i < MLXREG_FAN_MAX_PWM; i++) { 32 | struct mlxreg_fan_pwm *pwm = &fan->pwm[i]; 33 | 34 | if (!pwm->connected) 35 | -- 36 | 2.20.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0098-2-Revert-mlxsw-i2c-Fix-chunk-size-setting.patch: -------------------------------------------------------------------------------- 1 | From 0dda3bcede5f26c2bd44edbd90c7e9f0aab9ccf0 Mon Sep 17 00:00:00 2001 2 | From: Ciju Rajan K 3 | Date: Thu, 17 Aug 2023 10:00:59 +0000 4 | Subject: Revert "mlxsw: i2c: Fix chunk size setting in output mailbox buffer" 5 | 6 | This reverts commit ac91378962238d34030bb4035308f88ba173165f. 7 | --- 8 | drivers/net/ethernet/mellanox/mlxsw/i2c.c | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/i2c.c b/drivers/net/ethernet/mellanox/mlxsw/i2c.c 12 | index cc99ec3f4e96..b8a5c0cbb6b5 100644 13 | --- a/drivers/net/ethernet/mellanox/mlxsw/i2c.c 14 | +++ b/drivers/net/ethernet/mellanox/mlxsw/i2c.c 15 | @@ -447,7 +447,7 @@ mlxsw_i2c_cmd(struct device *dev, u16 opcode, u32 in_mod, size_t in_mbox_size, 16 | } else { 17 | /* No input mailbox is case of initialization query command. */ 18 | reg_size = MLXSW_I2C_MAX_DATA_SIZE; 19 | - num = DIV_ROUND_UP(reg_size, mlxsw_i2c->block_size); 20 | + num = reg_size / mlxsw_i2c->block_size; 21 | 22 | if (mutex_lock_interruptible(&mlxsw_i2c->cmd.lock) < 0) { 23 | dev_err(&client->dev, "Could not acquire lock"); 24 | -- 25 | 2.14.1 26 | 27 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0098-3-Revert-mlxsw-core_hwmon-Adjust-module-label-names.patch: -------------------------------------------------------------------------------- 1 | From e0f5c6c6572fd70ad8fa0d268ee95fb8aba1bd98 Mon Sep 17 00:00:00 2001 2 | From: Ciju Rajan K 3 | Date: Thu, 17 Aug 2023 10:01:22 +0000 4 | Subject: Revert "mlxsw: core_hwmon: Adjust module label names based on MTCAP 5 | sensor counter" 6 | 7 | This reverts commit 33aa62a331425d5828d417eeac7fab697eb45286. 8 | --- 9 | drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c | 3 +-- 10 | 1 file changed, 1 insertion(+), 2 deletions(-) 11 | 12 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c b/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 13 | index 464787b10b73..d41afdfbd085 100644 14 | --- a/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 15 | +++ b/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c 16 | @@ -377,8 +377,7 @@ mlxsw_hwmon_module_temp_label_show(struct device *dev, 17 | container_of(attr, struct mlxsw_hwmon_attr, dev_attr); 18 | 19 | return sprintf(buf, "front panel %03u\n", 20 | - mlwsw_hwmon_attr->type_index + 1 - 21 | - mlwsw_hwmon_attr->hwmon->sensor_count); 22 | + mlwsw_hwmon_attr->type_index); 23 | } 24 | 25 | static ssize_t 26 | -- 27 | 2.14.1 28 | 29 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0098-mlxsw-Use-weak-reverse-dependencies-for-firmware-fla.patch: -------------------------------------------------------------------------------- 1 | From 934af80d8c6d5d42a9aebc51e225e165973b4245 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Wed, 20 Oct 2021 09:49:28 +0000 4 | Subject: [PATCH backport 5.10 098/182] mlxsw: Use weak reverse dependencies 5 | for firmware flashing selection 6 | 7 | Replace configuration options "select" by "imply". It allows to set 8 | 'MLXFW' symbol to 'n' from a direct dependency or with a visible 9 | prompt. 10 | 11 | User might wish to disable this option in case only 'mlxsw_minimal' is 12 | configured, since it does not support firmware flashing. 13 | 14 | Signed-off-by: Vadim Pasternak 15 | --- 16 | drivers/net/ethernet/mellanox/mlxsw/Kconfig | 2 +- 17 | 1 file changed, 1 insertion(+), 1 deletion(-) 18 | 19 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/Kconfig b/drivers/net/ethernet/mellanox/mlxsw/Kconfig 20 | index a619d90559f7..79ecb14280d3 100644 21 | --- a/drivers/net/ethernet/mellanox/mlxsw/Kconfig 22 | +++ b/drivers/net/ethernet/mellanox/mlxsw/Kconfig 23 | @@ -6,7 +6,7 @@ 24 | config MLXSW_CORE 25 | tristate "Mellanox Technologies Switch ASICs support" 26 | select NET_DEVLINK 27 | - select MLXFW 28 | + imply MLXFW 29 | help 30 | This driver supports Mellanox Technologies Switch ASICs family. 31 | 32 | -- 33 | 2.20.1 34 | 35 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0111-mlxsw-reg-Add-new-field-to-Management-General-Periph.patch: -------------------------------------------------------------------------------- 1 | From 4b630e780a6fa8b387e79e252169d5743faf5321 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Fri, 3 Dec 2021 11:48:49 +0200 4 | Subject: [PATCH backport 5.10 111/182] mlxsw: reg: Add new field to Management 5 | General Peripheral Information Register 6 | 7 | Add new field 'max_modules_per_slot' to provide maximum number of 8 | modules that can be connected per slot. This field will always be zero, 9 | if 'slot_index' in query request is set to non-zero value, otherwise 10 | value in this field will provide maximum modules number, which can be 11 | equipped on device inserted at any slot. 12 | 13 | Signed-off-by: Vadim Pasternak 14 | Signed-off-by: Ido Schimmel 15 | --- 16 | drivers/net/ethernet/mellanox/mlxsw/reg.h | 6 ++++++ 17 | 1 file changed, 6 insertions(+) 18 | 19 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h 20 | index 07f68fd1a4e5..98c627ffe039 100644 21 | --- a/drivers/net/ethernet/mellanox/mlxsw/reg.h 22 | +++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h 23 | @@ -10190,6 +10190,12 @@ MLXSW_ITEM32(reg, mgpir, devices_per_flash, 0x00, 16, 8); 24 | */ 25 | MLXSW_ITEM32(reg, mgpir, num_of_devices, 0x00, 0, 8); 26 | 27 | +/* max_modules_per_slot 28 | + * Maximum number of modules that can be connected per slot. 29 | + * Access: RO 30 | + */ 31 | +MLXSW_ITEM32(reg, mgpir, max_modules_per_slot, 0x04, 16, 8); 32 | + 33 | /* mgpir_num_of_slots 34 | * Number of slots in the system. 35 | * Access: RO 36 | -- 37 | 2.20.1 38 | 39 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0123-mlxsw-core_thermal-Use-exact-name-of-cooling-devices.patch: -------------------------------------------------------------------------------- 1 | From 7e5f922bac5153137a8b1f486728d9d95b4922bc Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Tue, 14 Dec 2021 10:57:37 +0200 4 | Subject: [PATCH backport 5.10 123/182] mlxsw: core_thermal: Use exact name of 5 | cooling devices for binding 6 | 7 | Modular system supports additional cooling devices "mlxreg_fan1", 8 | "mlxreg_fan2", etcetera. Thermal zones in "mlxsw" driver should be 9 | bound to the same device as before called "mlxreg_fan". Used exact 10 | match for cooling device name to avoid binding to new additional 11 | cooling devices. 12 | 13 | Signed-off-by: Vadim Pasternak 14 | Signed-off-by: Ido Schimmel 15 | --- 16 | drivers/net/ethernet/mellanox/mlxsw/core_thermal.c | 3 +-- 17 | 1 file changed, 1 insertion(+), 2 deletions(-) 18 | 19 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c b/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 20 | index 4964c9164c2d..64c6a78f3aa0 100644 21 | --- a/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 22 | +++ b/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 23 | @@ -133,8 +133,7 @@ static int mlxsw_get_cooling_device_idx(struct mlxsw_thermal *thermal, 24 | 25 | /* Allow mlxsw thermal zone binding to an external cooling device */ 26 | for (i = 0; i < ARRAY_SIZE(mlxsw_thermal_external_allowed_cdev); i++) { 27 | - if (strnstr(cdev->type, mlxsw_thermal_external_allowed_cdev[i], 28 | - strlen(cdev->type))) 29 | + if (!strcmp(cdev->type, mlxsw_thermal_external_allowed_cdev[i])) 30 | return 0; 31 | } 32 | 33 | -- 34 | 2.20.1 35 | 36 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0154-mlxsw-core-Export-line-card-API.patch: -------------------------------------------------------------------------------- 1 | From a89d212954b74f3169e3061a3623eadfb86441e6 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Sun, 19 Dec 2021 09:31:32 +0000 4 | Subject: [PATCH backport 5.10 154/182] mlxsw: core: Export line card API 5 | 6 | Export API mlxsw_core_linecards() for being used by 'minimal' driver. 7 | 8 | Signed-off-by: Vadim Pasternak 9 | --- 10 | drivers/net/ethernet/mellanox/mlxsw/core.c | 1 + 11 | 1 file changed, 1 insertion(+) 12 | 13 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/core.c b/drivers/net/ethernet/mellanox/mlxsw/core.c 14 | index a9bb43837b33..a26c6d880928 100644 15 | --- a/drivers/net/ethernet/mellanox/mlxsw/core.c 16 | +++ b/drivers/net/ethernet/mellanox/mlxsw/core.c 17 | @@ -103,6 +103,7 @@ struct mlxsw_linecards *mlxsw_core_linecards(struct mlxsw_core *mlxsw_core) 18 | { 19 | return mlxsw_core->linecards; 20 | } 21 | +EXPORT_SYMBOL(mlxsw_core_linecards); 22 | 23 | #define MLXSW_PORT_MAX_PORTS_DEFAULT 0x40 24 | 25 | -- 26 | 2.20.1 27 | 28 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0168-TMP-mlxsw-minimal-Ignore-error-reading-SPAD-register.patch: -------------------------------------------------------------------------------- 1 | From cbb77f161d60964733f332e4ccfb9f240947c3ef Mon Sep 17 00:00:00 2001 2 | From: root 3 | Date: Tue, 5 Apr 2022 21:35:55 +0300 4 | Subject: [PATCH backport 5.10 168/182] TMP: mlxsw: minimal: Ignore error 5 | reading SPAD register 6 | 7 | WA until FW will add support for SPAD register for all systems. 8 | 9 | Signed-off-by: Vadim Pasternak 10 | --- 11 | drivers/net/ethernet/mellanox/mlxsw/minimal.c | 3 ++- 12 | 1 file changed, 2 insertions(+), 1 deletion(-) 13 | 14 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/minimal.c b/drivers/net/ethernet/mellanox/mlxsw/minimal.c 15 | index 0b605c6aa637..5fd319697c94 100644 16 | --- a/drivers/net/ethernet/mellanox/mlxsw/minimal.c 17 | +++ b/drivers/net/ethernet/mellanox/mlxsw/minimal.c 18 | @@ -64,11 +64,12 @@ static int mlxsw_m_base_mac_get(struct mlxsw_m *mlxsw_m) 19 | { 20 | char spad_pl[MLXSW_REG_SPAD_LEN] = {0}; 21 | int err; 22 | - 23 | +#if 0 24 | err = mlxsw_reg_query(mlxsw_m->core, MLXSW_REG(spad), spad_pl); 25 | if (err) 26 | return err; 27 | mlxsw_reg_spad_base_mac_memcpy_from(spad_pl, mlxsw_m->base_mac); 28 | +#endif 29 | return 0; 30 | } 31 | 32 | -- 33 | 2.20.1 34 | 35 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0170-i2c-mlxcpld-Fix-register-setting-for-400KHz-frequenc.patch: -------------------------------------------------------------------------------- 1 | From d0aec4e04bda89b1183f7568cc64519cda380da8 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 13 Jun 2022 20:51:35 +0300 4 | Subject: [PATCH backport 5.10 170/182] i2c: mlxcpld: Fix register setting for 5 | 400KHz frequency 6 | 7 | Fix setting of 'Half Cycle' register for 400KHz frequency. 8 | 9 | Fixes: fa1049135c15 ("i2c: mlxcpld: Modify register setting for 400KHz frequency") 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | drivers/i2c/busses/i2c-mlxcpld.c | 2 +- 13 | 1 file changed, 1 insertion(+), 1 deletion(-) 14 | 15 | diff --git a/drivers/i2c/busses/i2c-mlxcpld.c b/drivers/i2c/busses/i2c-mlxcpld.c 16 | index 363ea9fd66c4..72fcfb17dd67 100644 17 | --- a/drivers/i2c/busses/i2c-mlxcpld.c 18 | +++ b/drivers/i2c/busses/i2c-mlxcpld.c 19 | @@ -49,7 +49,7 @@ 20 | #define MLXCPLD_LPCI2C_NACK_IND 2 21 | 22 | #define MLXCPLD_I2C_FREQ_1000KHZ_SET 0x04 23 | -#define MLXCPLD_I2C_FREQ_400KHZ_SET 0x0c 24 | +#define MLXCPLD_I2C_FREQ_400KHZ_SET 0x0e 25 | #define MLXCPLD_I2C_FREQ_100KHZ_SET 0x42 26 | 27 | enum mlxcpld_i2c_frequency { 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0176-platform-mellanox-fix-reset_pwr_converter_fail-attri.patch: -------------------------------------------------------------------------------- 1 | From eb20a45ca217d897a1cb623c3ae84d97e6000f88 Mon Sep 17 00:00:00 2001 2 | From: Michael Shych 3 | Date: Sun, 4 Sep 2022 10:41:45 +0300 4 | Subject: [PATCH backport 5.10 176/182] platform: mellanox: fix 5 | reset_pwr_converter_fail attribute. 6 | 7 | Change incorrect reset_voltmon_upgrade_fail atitribute name to 8 | reset_pwr_converter_fail. 9 | 10 | Signed-off-by: Michael Shych 11 | Reviewed-by: Vadim Pasternak 12 | --- 13 | drivers/platform/x86/mlx-platform.c | 2 +- 14 | 1 file changed, 1 insertion(+), 1 deletion(-) 15 | 16 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 17 | index 135ccea3a34e..3f29ab98480d 100644 18 | --- a/drivers/platform/x86/mlx-platform.c 19 | +++ b/drivers/platform/x86/mlx-platform.c 20 | @@ -3414,7 +3414,7 @@ static struct mlxreg_core_data mlxplat_mlxcpld_default_ng_regs_io_data[] = { 21 | .mode = 0444, 22 | }, 23 | { 24 | - .label = "reset_voltmon_upgrade_fail", 25 | + .label = "reset_pwr_converter_fail", 26 | .reg = MLXPLAT_CPLD_LPC_REG_RST_CAUSE2_OFFSET, 27 | .mask = GENMASK(7, 0) & ~BIT(0), 28 | .mode = 0444, 29 | -- 30 | 2.20.1 31 | 32 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0179-hwmon-mlxreg-fan-TMP-Do-not-return-negative-value-fo.patch: -------------------------------------------------------------------------------- 1 | From 9fe1b4a8f9eae290996d554458fb7d6e63f2eaae Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 23 Jan 2023 18:12:57 +0200 4 | Subject: [PATCH backport 5.10 181/181] hwmon: (mlxreg-fan) TMP: Do not return 5 | negative value for fan speed configuration setting 6 | 7 | Do not return negative return value for fan speed configuration 8 | request. 9 | 10 | Downstream patch - should be removed when new thermal algorithm is 11 | available. 12 | 13 | Signed-off-by: Vadim Pasternak 14 | --- 15 | drivers/hwmon/mlxreg-fan.c | 2 +- 16 | 1 file changed, 1 insertion(+), 1 deletion(-) 17 | 18 | diff --git a/drivers/hwmon/mlxreg-fan.c b/drivers/hwmon/mlxreg-fan.c 19 | index 4a8becdb0..acba9d688 100644 20 | --- a/drivers/hwmon/mlxreg-fan.c 21 | +++ b/drivers/hwmon/mlxreg-fan.c 22 | @@ -358,7 +358,7 @@ static int mlxreg_fan_set_cur_state(struct thermal_cooling_device *cdev, 23 | * For configuration non-zero value is to be returned to avoid thermal 24 | * statistics update. 25 | */ 26 | - config = 1; 27 | + config = 0; /*1*/; 28 | state -= MLXREG_FAN_MAX_STATE; 29 | for (i = 0; i < state; i++) 30 | pwm->cooling_levels[i] = state; 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0187-platform_data-mlxreg-Add-field-with-mapped-resource-.patch: -------------------------------------------------------------------------------- 1 | From e1d1afba7f7285bebb2d30fce961901ee944d201 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Wed, 9 Nov 2022 09:43:28 +0200 4 | Subject: [PATCH backport 5.10 01/10] platform_data/mlxreg: Add field with 5 | mapped resource address 6 | 7 | Add field with PCIe remapped based address for passing it across 8 | relevant platform drivers sharing common system resources. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | include/linux/platform_data/mlxreg.h | 2 ++ 13 | 1 file changed, 2 insertions(+) 14 | 15 | diff --git a/include/linux/platform_data/mlxreg.h b/include/linux/platform_data/mlxreg.h 16 | index a6bd74e29..0b9f81a6f 100644 17 | --- a/include/linux/platform_data/mlxreg.h 18 | +++ b/include/linux/platform_data/mlxreg.h 19 | @@ -216,6 +216,7 @@ struct mlxreg_core_platform_data { 20 | * @mask_low: low aggregation interrupt common mask; 21 | * @deferred_nr: I2C adapter number must be exist prior probing execution; 22 | * @shift_nr: I2C adapter numbers must be incremented by this value; 23 | + * @addr: mapped resource address; 24 | * @handle: handle to be passed by callback; 25 | * @completion_notify: callback to notify when platform driver probing is done; 26 | */ 27 | @@ -230,6 +231,7 @@ struct mlxreg_core_hotplug_platform_data { 28 | u32 mask_low; 29 | int deferred_nr; 30 | int shift_nr; 31 | + void __iomem *addr; 32 | void *handle; 33 | int (*completion_notify)(void *handle, int id); 34 | }; 35 | -- 36 | 2.20.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0189-i2c-mlxcpld-Allow-driver-to-run-on-ARM64-architectur.patch: -------------------------------------------------------------------------------- 1 | From d644dd584988f25f0029e513ff3ae85f2397dfec Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 7 Nov 2022 12:00:37 +0200 4 | Subject: [PATCH backport 5.10.179 01/26] i2c: mlxcpld: Allow driver to run on 5 | ARM64 architecture 6 | 7 | Extend driver dependency by ARM64 architecture. 8 | 9 | Signed-off-by: Vadim Pasternak 10 | --- 11 | drivers/i2c/busses/Kconfig | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig 15 | index ea474b16e..220655702 100644 16 | --- a/drivers/i2c/busses/Kconfig 17 | +++ b/drivers/i2c/busses/Kconfig 18 | @@ -1328,7 +1328,7 @@ config I2C_ICY 19 | 20 | config I2C_MLXCPLD 21 | tristate "Mellanox I2C driver" 22 | - depends on X86_64 || COMPILE_TEST 23 | + depends on X86_64 || ARM64 || COMPILE_TEST 24 | help 25 | This exposes the Mellanox platform I2C busses to the linux I2C layer 26 | for X86 based systems. 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0194-platform-mellanox-mlx-platform-Move-bus-shift-assign.patch: -------------------------------------------------------------------------------- 1 | From deb8517499160d77e94b2969a98b3c01bed1a649 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Wed, 18 Jan 2023 15:25:37 +0200 4 | Subject: [PATCH backport 5.10 082/150] platform: mellanox: mlx-platform: Move 5 | bus shift assignment out of the loop 6 | 7 | Move assignment of bus shift setting out of the loop to avoid redundant 8 | operation. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | drivers/platform/x86/mlx-platform.c | 5 +++-- 13 | 1 file changed, 3 insertions(+), 2 deletions(-) 14 | 15 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 16 | index de8fd0886..9d4cab937 100644 17 | --- a/drivers/platform/x86/mlx-platform.c 18 | +++ b/drivers/platform/x86/mlx-platform.c 19 | @@ -6371,10 +6371,11 @@ static int mlxplat_mlxcpld_verify_bus_topology(int *nr) 20 | shift = *nr - mlxplat_mux_data[i].parent; 21 | mlxplat_mux_data[i].parent = *nr; 22 | mlxplat_mux_data[i].base_nr += shift; 23 | - if (shift > 0) 24 | - mlxplat_hotplug->shift_nr = shift; 25 | } 26 | 27 | + if (shift > 0) 28 | + mlxplat_hotplug->shift_nr = shift; 29 | + 30 | return 0; 31 | } 32 | 33 | -- 34 | 2.20.1 35 | 36 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0197-platform-mellanox-Fix-order-in-exit-flow.patch: -------------------------------------------------------------------------------- 1 | From b666d5bb4b283be0626b1d2b30ac5f636ad9355c Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Sun, 23 Jul 2023 20:46:32 +0000 4 | Subject: [PATCH backport 5.10.179 08/26] platform: mellanox: Fix order in exit 5 | flow 6 | 7 | Fix exit flow order: call mlxplat_post_exit() after 8 | mlxplat_i2c_main_exit() in order to unregister main i2c driver before 9 | to "mlxplat" driver. 10 | 11 | Fixes: 0170f616f496 ("platform: mellanox: Split initialization procedure") 12 | Signed-off-by: Vadim Pasternak 13 | Reviewed-by: Michael Shych 14 | --- 15 | drivers/platform/x86/mlx-platform.c | 3 +-- 16 | 1 file changed, 1 insertion(+), 2 deletions(-) 17 | 18 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 19 | index a65fd187c..b7297a08b 100644 20 | --- a/drivers/platform/x86/mlx-platform.c 21 | +++ b/drivers/platform/x86/mlx-platform.c 22 | @@ -6654,8 +6654,6 @@ static void mlxplat_i2c_mux_topology_exit(struct mlxplat_priv *priv) 23 | if (priv->pdev_mux[i]) 24 | platform_device_unregister(priv->pdev_mux[i]); 25 | } 26 | - 27 | - mlxplat_post_exit(); 28 | } 29 | 30 | static int mlxplat_i2c_main_complition_notify(void *handle, int id) 31 | @@ -6785,6 +6783,7 @@ static void __exit mlxplat_exit(void) 32 | pm_power_off = NULL; 33 | mlxplat_pre_exit(priv); 34 | mlxplat_i2c_main_exit(priv); 35 | + mlxplat_post_exit(); 36 | } 37 | module_exit(mlxplat_exit); 38 | 39 | -- 40 | 2.20.1 41 | 42 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0203-i2c-mlxbf-remove-IRQF_ONESHOT.patch: -------------------------------------------------------------------------------- 1 | From 9cd9614ce49f3c793efcc47dbbbfa90d793ed543 Mon Sep 17 00:00:00 2001 2 | From: Asmaa Mnebhi 3 | Date: Thu, 8 Sep 2022 13:35:37 -0400 4 | Subject: [PATCH backport 5.10 04/63] i2c: mlxbf: remove IRQF_ONESHOT 5 | 6 | BugLink: https://bugs.launchpad.net/bugs/1991551 7 | 8 | IRQF_ONESHOT is not needed so remove it. 9 | 10 | Reviewed-by: Khalil Blaiech 11 | Signed-off-by: Asmaa Mnebhi 12 | Signed-off-by: Wolfram Sang 13 | (cherry picked from commit 92be2c122e495f0249090c0048f4fd05fe1efa9e) 14 | Signed-off-by: Asmaa Mnebhi 15 | Acked-by: Tim Gardner 16 | Acked-by: Bartlomiej Zolnierkiewicz 17 | Signed-off-by: Bartlomiej Zolnierkiewicz 18 | --- 19 | drivers/i2c/busses/i2c-mlxbf.c | 2 +- 20 | 1 file changed, 1 insertion(+), 1 deletion(-) 21 | 22 | diff --git a/drivers/i2c/busses/i2c-mlxbf.c b/drivers/i2c/busses/i2c-mlxbf.c 23 | index d78fb24d5..066bfeb8a 100644 24 | --- a/drivers/i2c/busses/i2c-mlxbf.c 25 | +++ b/drivers/i2c/busses/i2c-mlxbf.c 26 | @@ -2382,7 +2382,7 @@ static int mlxbf_i2c_probe(struct platform_device *pdev) 27 | if (irq < 0) 28 | return irq; 29 | ret = devm_request_irq(dev, irq, mlxbf_smbus_irq, 30 | - IRQF_ONESHOT | IRQF_SHARED | IRQF_PROBE_SHARED, 31 | + IRQF_SHARED | IRQF_PROBE_SHARED, 32 | dev_name(dev), priv); 33 | if (ret < 0) { 34 | dev_err(dev, "Cannot get irq %d\n", irq); 35 | -- 36 | 2.20.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0209-UBUNTU-SAUCE-i2c-mlxbf.c-Add-driver-version.patch: -------------------------------------------------------------------------------- 1 | From c78abc95294213920e386abb941df6e23ba1ede3 Mon Sep 17 00:00:00 2001 2 | From: Asmaa Mnebhi 3 | Date: Tue, 11 Oct 2022 14:28:57 -0400 4 | Subject: [PATCH backport 5.10 10/63] UBUNTU: SAUCE: i2c-mlxbf.c: Add driver 5 | version 6 | 7 | BugLink: https://bugs.launchpad.net/bugs/1991551 8 | 9 | Signed-off-by: Asmaa Mnebhi 10 | Acked-by: Tim Gardner 11 | Acked-by: Bartlomiej Zolnierkiewicz 12 | Signed-off-by: Bartlomiej Zolnierkiewicz 13 | --- 14 | drivers/i2c/busses/i2c-mlxbf.c | 3 +++ 15 | 1 file changed, 3 insertions(+) 16 | 17 | diff --git a/drivers/i2c/busses/i2c-mlxbf.c b/drivers/i2c/busses/i2c-mlxbf.c 18 | index 67548702f..0eb92bbc1 100644 19 | --- a/drivers/i2c/busses/i2c-mlxbf.c 20 | +++ b/drivers/i2c/busses/i2c-mlxbf.c 21 | @@ -19,6 +19,8 @@ 22 | #include 23 | #include 24 | 25 | +#define DRV_VERSION "3.2" 26 | + 27 | /* Defines what functionality is present. */ 28 | #define MLXBF_I2C_FUNC_SMBUS_BLOCK \ 29 | (I2C_FUNC_SMBUS_BLOCK_DATA | I2C_FUNC_SMBUS_BLOCK_PROC_CALL) 30 | @@ -2532,3 +2534,4 @@ MODULE_DESCRIPTION("Mellanox BlueField I2C bus driver"); 31 | MODULE_AUTHOR("Khalil Blaiech "); 32 | MODULE_AUTHOR("Asmaa Mnebhi "); 33 | MODULE_LICENSE("GPL v2"); 34 | +MODULE_VERSION(DRV_VERSION); 35 | -- 36 | 2.20.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0231-mmc-sdhci-of-dwcmshc-fix-error-return-code-in-dwcmsh.patch: -------------------------------------------------------------------------------- 1 | From 72d369a9be4bc4b92ab1e006dc36c612f0305b46 Mon Sep 17 00:00:00 2001 2 | From: Wei Yongjun 3 | Date: Tue, 23 Mar 2021 11:29:56 +0000 4 | Subject: [PATCH backport 5.10 55/63] mmc: sdhci-of-dwcmshc: fix error return 5 | code in dwcmshc_probe() 6 | 7 | Fix to return negative error code -ENOMEM from the error handling 8 | case instead of 0, as done elsewhere in this function. 9 | 10 | Fixes: c2c4da37837e ("mmc: sdhci-of-dwcmshc: add rockchip platform support") 11 | Reported-by: Hulk Robot 12 | Signed-off-by: Wei Yongjun 13 | Link: https://lore.kernel.org/r/20210323112956.1016884-1-weiyongjun1@huawei.com 14 | Signed-off-by: Ulf Hansson 15 | --- 16 | drivers/mmc/host/sdhci-of-dwcmshc.c | 4 +++- 17 | 1 file changed, 3 insertions(+), 1 deletion(-) 18 | 19 | diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c 20 | index 1113a56fe..34d26e388 100644 21 | --- a/drivers/mmc/host/sdhci-of-dwcmshc.c 22 | +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c 23 | @@ -404,8 +404,10 @@ static int dwcmshc_probe(struct platform_device *pdev) 24 | 25 | if (pltfm_data == &sdhci_dwcmshc_rk3568_pdata) { 26 | rk_priv = devm_kzalloc(&pdev->dev, sizeof(struct rk3568_priv), GFP_KERNEL); 27 | - if (!rk_priv) 28 | + if (!rk_priv) { 29 | + err = -ENOMEM; 30 | goto err_clk; 31 | + } 32 | 33 | priv->priv = rk_priv; 34 | 35 | -- 36 | 2.20.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0232-mmc-sdhci-of-dwcmshc-set-MMC_CAP_WAIT_WHILE_BUSY.patch: -------------------------------------------------------------------------------- 1 | From 17e98239da6fd921a76cbee7ac8dcc3c437ad5d6 Mon Sep 17 00:00:00 2001 2 | From: Jisheng Zhang 3 | Date: Wed, 24 Mar 2021 15:47:21 +0800 4 | Subject: [PATCH backport 5.10 56/63] mmc: sdhci-of-dwcmshc: set 5 | MMC_CAP_WAIT_WHILE_BUSY 6 | 7 | The host supports HW busy detection of the device busy signaling over 8 | dat0 line. Set MMC_CAP_wAIT_WHILE_BUSY host capability. 9 | 10 | Signed-off-by: Jisheng Zhang 11 | Link: https://lore.kernel.org/r/20210324154703.69f97fde@xhacker.debian 12 | Signed-off-by: Ulf Hansson 13 | --- 14 | drivers/mmc/host/sdhci-of-dwcmshc.c | 2 ++ 15 | 1 file changed, 2 insertions(+) 16 | 17 | diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c 18 | index 34d26e388..bac874ab0 100644 19 | --- a/drivers/mmc/host/sdhci-of-dwcmshc.c 20 | +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c 21 | @@ -416,6 +416,8 @@ static int dwcmshc_probe(struct platform_device *pdev) 22 | goto err_clk; 23 | } 24 | 25 | + host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY; 26 | + 27 | err = sdhci_add_host(host); 28 | if (err) 29 | goto err_clk; 30 | -- 31 | 2.20.1 32 | 33 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0235-regmap-debugfs-Enable-writing-to-the-regmap-debugfs-.patch: -------------------------------------------------------------------------------- 1 | From 5a6717305bc0ee08d08dc27f8f3415c4bb1c34c3 Mon Sep 17 00:00:00 2001 2 | From: Felix Radensky 3 | Date: Sun, 20 Nov 2022 15:25:58 +0200 4 | Subject: [PATCH backport 5.10 59/63] regmap: debugfs: Enable writing to the 5 | regmap debugfs registers 6 | 7 | Signed-off-by: Felix Radensky 8 | --- 9 | drivers/base/regmap/regmap-debugfs.c | 2 +- 10 | 1 file changed, 1 insertion(+), 1 deletion(-) 11 | 12 | diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c 13 | index 211a335a6..ee3cccaf5 100644 14 | --- a/drivers/base/regmap/regmap-debugfs.c 15 | +++ b/drivers/base/regmap/regmap-debugfs.c 16 | @@ -290,7 +290,7 @@ static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf, 17 | count, ppos); 18 | } 19 | 20 | -#undef REGMAP_ALLOW_WRITE_DEBUGFS 21 | +#define REGMAP_ALLOW_WRITE_DEBUGFS 22 | #ifdef REGMAP_ALLOW_WRITE_DEBUGFS 23 | /* 24 | * This can be dangerous especially when we have clients such as 25 | -- 26 | 2.20.1 27 | 28 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0236-mmc-sdhci-of-dwcmshc-Enable-host-V4-support-for-Blue.patch: -------------------------------------------------------------------------------- 1 | From 8650b784688c0822951993d98f196e1c7689a5cc Mon Sep 17 00:00:00 2001 2 | From: Liming Sun 3 | Date: Fri, 25 Nov 2022 22:29:23 -0500 4 | Subject: [PATCH backport 5.10 61/63] mmc: sdhci-of-dwcmshc: Enable host V4 5 | support for BlueField-3 SoC 6 | 7 | This commit enables SDHCI Host V4 support on Bluefield-3 SoC to be 8 | consistent with UEFI setting. 9 | 10 | Change-Id: I4d5ea43ca5f36c6c642443b9335c321924cca2ed 11 | Signed-off-by: Liming Sun 12 | --- 13 | drivers/mmc/host/sdhci-of-dwcmshc.c | 6 ++++++ 14 | 1 file changed, 6 insertions(+) 15 | 16 | diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c 17 | index 173a9167a..ea972bd3c 100644 18 | --- a/drivers/mmc/host/sdhci-of-dwcmshc.c 19 | +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c 20 | @@ -426,6 +426,12 @@ static int dwcmshc_probe(struct platform_device *pdev) 21 | goto err_clk; 22 | } 23 | 24 | +#ifdef CONFIG_ACPI 25 | + if (pltfm_data == &sdhci_dwcmshc_bf3_pdata) { 26 | + sdhci_enable_v4_mode(host); 27 | + } 28 | +#endif 29 | + 30 | host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY; 31 | 32 | err = sdhci_add_host(host); 33 | -- 34 | 2.20.1 35 | 36 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0239-hwmon-mlxreg-fan-Return-zero-speed-for-broken-fan.patch: -------------------------------------------------------------------------------- 1 | From 0bb5bbc78316970c3bde085f091a70799b39b262 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Sun, 5 Feb 2023 09:34:20 +0200 4 | Subject: [PATCH hwmon backport 5.10 1/1] hwmon: (mlxreg-fan) Return zero speed 5 | for broken fan 6 | 7 | Currently for broken fan driver returns value calculated based on error 8 | code (0xFF) in related fan speed register. 9 | Thus, for such fan user gets fan{n}_fault to 1 and fan{n}_input with 10 | misleading value. 11 | 12 | Add check for fan fault prior return speed value and return zero if 13 | fault is detected. 14 | 15 | Fixes: 65afb4c8e7e4 ("hwmon: (mlxreg-fan) Add support for Mellanox FAN driver") 16 | Signed-off-by: Vadim Pasternak 17 | --- 18 | drivers/hwmon/mlxreg-fan.c | 6 ++++++ 19 | 1 file changed, 6 insertions(+) 20 | 21 | diff --git a/drivers/hwmon/mlxreg-fan.c b/drivers/hwmon/mlxreg-fan.c 22 | index acba9d688..b999ca648 100644 23 | --- a/drivers/hwmon/mlxreg-fan.c 24 | +++ b/drivers/hwmon/mlxreg-fan.c 25 | @@ -158,6 +158,12 @@ mlxreg_fan_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, 26 | if (err) 27 | return err; 28 | 29 | + if (MLXREG_FAN_GET_FAULT(regval, tacho->mask)) { 30 | + /* FAN is broken - return zero for FAN speed. */ 31 | + *val = 0; 32 | + return 0; 33 | + } 34 | + 35 | *val = MLXREG_FAN_GET_RPM(regval, fan->divider, 36 | fan->samples); 37 | break; 38 | -- 39 | 2.20.1 40 | 41 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0240-UBUNTU-SAUCE-mmc-sdhci-of-dwcmshc-add-the-missing-de.patch: -------------------------------------------------------------------------------- 1 | From 51ec31f1bfb39fd87dea8861b4642d03cbd6c887 Mon Sep 17 00:00:00 2001 2 | From: Liming Sun 3 | Date: Fri, 3 Feb 2023 07:52:18 -0500 4 | Subject: [PATCH 12/12] UBUNTU: SAUCE: mmc: sdhci-of-dwcmshc: add the missing 5 | device table IDs for acpi 6 | X-NVConfidentiality: public 7 | 8 | BugLink: https://bugs.launchpad.net/bugs/2004645 9 | 10 | This commit adds the missing MODULE_DEVICE_TABLE for acpi, or else 11 | it won't be loaded automatically when compiled as a kernel module. 12 | 13 | Signed-off-by: Liming Sun 14 | Acked-by: Tim Gardner 15 | Acked-by: Bartlomiej Zolnierkiewicz 16 | [bzolnier: use a short URL version for BugLink] 17 | Signed-off-by: Bartlomiej Zolnierkiewicz 18 | --- 19 | drivers/mmc/host/sdhci-of-dwcmshc.c | 1 + 20 | 1 file changed, 1 insertion(+) 21 | 22 | diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c 23 | index ea972bd3c..565489ee7 100644 24 | --- a/drivers/mmc/host/sdhci-of-dwcmshc.c 25 | +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c 26 | @@ -349,6 +349,7 @@ static const struct acpi_device_id sdhci_dwcmshc_acpi_ids[] = { 27 | }, 28 | {} 29 | }; 30 | +MODULE_DEVICE_TABLE(acpi, sdhci_dwcmshc_acpi_ids); 31 | #endif 32 | 33 | static int dwcmshc_probe(struct platform_device *pdev) 34 | -- 35 | 2.14.1 36 | 37 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0241-DS-mlxsw-core_linecards-Disable-firmware-bundling-ma.patch: -------------------------------------------------------------------------------- 1 | From a98a8781b6a6fad632a0fcaa3c78a05007b15f2e Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 20 Feb 2023 15:15:46 +0200 4 | Subject: [PATCH net backport 5.10 1/1] DS: mlxsw: core_linecards: Disable 5 | firmware bundling macros 6 | 7 | Remove line card firmware bundling flow in non upstream environment to 8 | avoid warning in case path /lib/firmware/mellanox is not available. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | drivers/net/ethernet/mellanox/mlxsw/core_linecards.c | 4 +++- 13 | 1 file changed, 3 insertions(+), 1 deletion(-) 14 | 15 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_linecards.c b/drivers/net/ethernet/mellanox/mlxsw/core_linecards.c 16 | index 30665a6f3..4bae0643a 100644 17 | --- a/drivers/net/ethernet/mellanox/mlxsw/core_linecards.c 18 | +++ b/drivers/net/ethernet/mellanox/mlxsw/core_linecards.c 19 | @@ -1501,5 +1501,7 @@ void mlxsw_linecards_event_ops_unregister(struct mlxsw_core *mlxsw_core, 20 | } 21 | } 22 | EXPORT_SYMBOL(mlxsw_linecards_event_ops_unregister); 23 | - 24 | +/* Skip for non-upstream flow. */ 25 | +#if 0 26 | MODULE_FIRMWARE(MLXSW_LINECARDS_INI_BUNDLE_FILE); 27 | +#endif 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0249-platform-mellanox-mlxreg-hotplug-Extend-condition-fo.patch: -------------------------------------------------------------------------------- 1 | From 3985890fc1221c9525db827368a2ab7e5186fcd1 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Sun, 19 Mar 2023 15:04:26 +0000 4 | Subject: [PATCH backport 5.10.179 15/26] platform/mellanox: mlxreg-hotplug: 5 | Extend condition for notification callback processing 6 | 7 | Allow processing of notification callback in routine 8 | mlxreg_hotplug_device_create() in case hotplug object is configured 9 | with action "MLXREG_HOTPLUG_DEVICE_NO_ACTION" in case no I2C parent bus 10 | is specified. 11 | 12 | Signed-off-by: Vadim Pasternak 13 | Reviewed-by: Michael Shych 14 | --- 15 | drivers/platform/mellanox/mlxreg-hotplug.c | 2 +- 16 | 1 file changed, 1 insertion(+), 1 deletion(-) 17 | 18 | diff --git a/drivers/platform/mellanox/mlxreg-hotplug.c b/drivers/platform/mellanox/mlxreg-hotplug.c 19 | index b7dcc64cd..c5abedd35 100644 20 | --- a/drivers/platform/mellanox/mlxreg-hotplug.c 21 | +++ b/drivers/platform/mellanox/mlxreg-hotplug.c 22 | @@ -113,7 +113,7 @@ static int mlxreg_hotplug_device_create(struct mlxreg_hotplug_priv_data *priv, 23 | * Return if adapter number is negative. It could be in case hotplug 24 | * event is not associated with hotplug device. 25 | */ 26 | - if (data->hpdev.nr < 0) 27 | + if (data->hpdev.nr < 0 && data->hpdev.action != MLXREG_HOTPLUG_DEVICE_NO_ACTION) 28 | return 0; 29 | 30 | pdata = dev_get_platdata(&priv->pdev->dev); 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0251-platform-mellanox-mlx-platform-Add-reset-cause-attri.patch: -------------------------------------------------------------------------------- 1 | From 2eacf2e4412791f713be5e2b071ad2ea46e1a58f Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 24 Jul 2023 05:20:15 +0000 4 | Subject: [PATCH backport 5.10.179 17/26] platform: mellanox: mlx-platform: Add 5 | reset cause attribute 6 | 7 | Extend IO registers description for some system types with reset cause 8 | attribute "reset_swb_dc_dc_pwr_fail" to indicate reset caused by switch 9 | board DC-DC power failure. 10 | 11 | Signed-off-by: Vadim Pasternak 12 | Reviewed-by: Michael Shych 13 | --- 14 | drivers/platform/x86/mlx-platform.c | 6 ++++++ 15 | 1 file changed, 6 insertions(+) 16 | 17 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 18 | index 976e12224..6206595db 100644 19 | --- a/drivers/platform/x86/mlx-platform.c 20 | +++ b/drivers/platform/x86/mlx-platform.c 21 | @@ -3790,6 +3790,12 @@ static struct mlxreg_core_data mlxplat_mlxcpld_default_ng_regs_io_data[] = { 22 | .mask = GENMASK(7, 0) & ~BIT(2), 23 | .mode = 0444, 24 | }, 25 | + { 26 | + .label = "reset_swb_dc_dc_pwr_fail", 27 | + .reg = MLXPLAT_CPLD_LPC_REG_RESET_CAUSE_OFFSET, 28 | + .mask = GENMASK(7, 0) & ~BIT(3), 29 | + .mode = 0444, 30 | + }, 31 | { 32 | .label = "reset_from_asic", 33 | .reg = MLXPLAT_CPLD_LPC_REG_RESET_CAUSE_OFFSET, 34 | -- 35 | 2.20.1 36 | 37 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0260-mlxsw-reg-Limit-MTBR-register-records-buffer-by-one-.patch: -------------------------------------------------------------------------------- 1 | From d11192c5d4622552cd399194bf90af03ea2495a5 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Thu, 6 Jul 2023 07:40:34 +0000 4 | Subject: [PATH backport 2/2] mlxsw: reg: Limit MTBR register records buffer by 5 | one record 6 | 7 | The MTBR register is used to obtain specific cable status, so just only 8 | one data record is required in transaction. 9 | 10 | Limit size of MTBR register to avoid sending redundant size of buffer 11 | to firmware. 12 | 13 | Signed-off-by: Vadim Pasternak 14 | --- 15 | drivers/net/ethernet/mellanox/mlxsw/reg.h | 2 +- 16 | 1 file changed, 1 insertion(+), 1 deletion(-) 17 | 18 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h 19 | index f8c828e05..81b4278fc 100644 20 | --- a/drivers/net/ethernet/mellanox/mlxsw/reg.h 21 | +++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h 22 | @@ -8771,7 +8771,7 @@ MLXSW_ITEM_BIT_ARRAY(reg, mtwe, sensor_warning, 0x0, 0x10, 1); 23 | #define MLXSW_REG_MTBR_ID 0x900F 24 | #define MLXSW_REG_MTBR_BASE_LEN 0x10 /* base length, without records */ 25 | #define MLXSW_REG_MTBR_REC_LEN 0x04 /* record length */ 26 | -#define MLXSW_REG_MTBR_REC_MAX_COUNT 47 /* firmware limitation */ 27 | +#define MLXSW_REG_MTBR_REC_MAX_COUNT 1 28 | #define MLXSW_REG_MTBR_LEN (MLXSW_REG_MTBR_BASE_LEN + \ 29 | MLXSW_REG_MTBR_REC_LEN * \ 30 | MLXSW_REG_MTBR_REC_MAX_COUNT) 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0262-dt-bindings-trivial-devices-Add-mps-mp2891.patch: -------------------------------------------------------------------------------- 1 | From 5f3313b3f1f36ccb328bcec8dbf49978448decdd Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Thu, 13 Jul 2023 06:20:05 +0000 4 | Subject: [PATCH backport 5.10.179 10/10] dt-bindings: trivial-devices: Add 5 | mps,mp2891 6 | 7 | Add new dual-loop, digital, multi-phase controller MP2891 fro 8 | Monolithic Power Systems, Inc. (MPS) to trivial devices. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 13 | 1 file changed, 2 insertions(+) 14 | 15 | diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml 16 | index 52bc54b2d..adec3a0f6 100644 17 | --- a/Documentation/devicetree/bindings/trivial-devices.yaml 18 | +++ b/Documentation/devicetree/bindings/trivial-devices.yaml 19 | @@ -82,6 +82,8 @@ properties: 20 | - fsl,mpl3115 21 | # MPR121: Proximity Capacitive Touch Sensor Controller 22 | - fsl,mpr121 23 | + # Monolithic Power Systems Inc. multi-phase controller mp2891 24 | + - mps,mp2891 25 | # Monolithic Power Systems Inc. multi-phase controller mp2888 26 | - mps,mp2888 27 | # Monolithic Power Systems Inc. multi-phase controller mp2975 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0265-UBUNTU-SAUCE-mlxbf-ptm-update-module-version.patch: -------------------------------------------------------------------------------- 1 | From 83e12ab298ef4c328ae0b410412abc9c5bf40678 Mon Sep 17 00:00:00 2001 2 | From: Jitendra Lanka 3 | Date: Wed, 22 Mar 2023 11:39:57 -0400 4 | Subject: [PATCH] UBUNTU: SAUCE: mlxbf-ptm: update module version 5 | X-NVConfidentiality: public 6 | 7 | BugLink: https://bugs.launchpad.net/bugs/2011738 8 | 9 | update module version 10 | 11 | Signed-off-by: Jitendra Lanka 12 | Acked-by: Tim Gardner 13 | Acked-by: Bartlomiej Zolnierkiewicz 14 | Signed-off-by: Bartlomiej Zolnierkiewicz 15 | --- 16 | drivers/platform/mellanox/mlxbf-ptm.c | 2 +- 17 | 1 file changed, 1 insertion(+), 1 deletion(-) 18 | 19 | diff --git a/drivers/platform/mellanox/mlxbf-ptm.c b/drivers/platform/mellanox/mlxbf-ptm.c 20 | index a2845aa57..eb4460cb0 100644 21 | --- a/drivers/platform/mellanox/mlxbf-ptm.c 22 | +++ b/drivers/platform/mellanox/mlxbf-ptm.c 23 | @@ -227,4 +227,4 @@ module_exit(mlxbf_ptm_exit); 24 | MODULE_AUTHOR("Jitendra Lanka "); 25 | MODULE_DESCRIPTION("Nvidia Bluefield power and thermal debugfs driver"); 26 | MODULE_LICENSE("Dual BSD/GPL"); 27 | -MODULE_VERSION("1.0"); 28 | +MODULE_VERSION("1.1"); 29 | -- 30 | 2.14.1 31 | 32 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0267-platform-mellanox-mlx-platform-Modify-power-off-call.patch: -------------------------------------------------------------------------------- 1 | From 586705cd91fb55150a3a0b88ed179d0568df30ed Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 24 Jul 2023 06:22:13 +0000 4 | Subject: [PATCH backport 5.10.179 19/26] platform: mellanox: mlx-platform: 5 | Modify power off callback 6 | 7 | Extend platform power off callback with kernel_halt() call. 8 | 9 | Signed-off-by: Vadim Pasternak 10 | Reviewed-by: Michael Shych 11 | --- 12 | drivers/platform/x86/mlx-platform.c | 1 + 13 | 1 file changed, 1 insertion(+) 14 | 15 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 16 | index d48f0eab8..26aefcb70 100644 17 | --- a/drivers/platform/x86/mlx-platform.c 18 | +++ b/drivers/platform/x86/mlx-platform.c 19 | @@ -5872,6 +5872,7 @@ static void mlxplat_poweroff(void) 20 | struct mlxplat_priv *priv = platform_get_drvdata(mlxplat_dev); 21 | 22 | regmap_write(priv->regmap, MLXPLAT_CPLD_LPC_REG_GP1_OFFSET, MLXPLAT_CPLD_HALT_MASK); 23 | + kernel_halt(); 24 | } 25 | 26 | static int __init mlxplat_dmi_default_matched(const struct dmi_system_id *dmi) 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0268-Extend-driver-to-support-Infineon-Digital-Multi-phas.patch: -------------------------------------------------------------------------------- 1 | From d8982275de43fa8e259c2282acb09f44641491b5 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 17 Jul 2023 15:40:08 +0000 4 | Subject: [PATCH hwmon-next 1/2] Extend driver to support Infineon Digital 5 | Multi-phase XDPE1A2G7 device. 6 | 7 | From telemetry perspective device is almost the same as XDPE15284, but 8 | does not support READ_EIN (86h) and READ_EOUT (87h) commands. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | drivers/hwmon/pmbus/xdpe152c4.c | 2 ++ 13 | 1 file changed, 2 insertions(+) 14 | 15 | diff --git a/drivers/hwmon/pmbus/xdpe152c4.c b/drivers/hwmon/pmbus/xdpe152c4.c 16 | index b8a36ef73..1ef1141ba 100644 17 | --- a/drivers/hwmon/pmbus/xdpe152c4.c 18 | +++ b/drivers/hwmon/pmbus/xdpe152c4.c 19 | @@ -44,6 +44,7 @@ static int xdpe152_probe(struct i2c_client *client) 20 | } 21 | 22 | static const struct i2c_device_id xdpe152_id[] = { 23 | + {"xdpe1a2g7", 0}, 24 | {"xdpe152c4", 0}, 25 | {"xdpe15284", 0}, 26 | {} 27 | @@ -52,6 +53,7 @@ static const struct i2c_device_id xdpe152_id[] = { 28 | MODULE_DEVICE_TABLE(i2c, xdpe152_id); 29 | 30 | static const struct of_device_id __maybe_unused xdpe152_of_match[] = { 31 | + {.compatible = "infineon,xdpe1a2g7"}, 32 | {.compatible = "infineon,xdpe152c4"}, 33 | {.compatible = "infineon,xdpe15284"}, 34 | {} 35 | -- 36 | 2.20.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0269-dt-bindings-trivial-devices-Add-infineon-xdpe1a2g7.patch: -------------------------------------------------------------------------------- 1 | From 752f09e963ed92cf6ba69930a26dc4cba674bdd3 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 17 Jul 2023 16:24:58 +0000 4 | Subject: [PATCH hwmon-next 2/2] dt-bindings: trivial-devices: Add 5 | infineon,xdpe1a2g7 6 | 7 | Add new Infineon Multi-phase Digital VR Controller xdpe1a2g7 8 | 9 | Signed-off-by: Vadim Pasternak 10 | --- 11 | Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 12 | 1 file changed, 2 insertions(+) 13 | 14 | diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml 15 | index adec3a0f6..aa1fa8414 100644 16 | --- a/Documentation/devicetree/bindings/trivial-devices.yaml 17 | +++ b/Documentation/devicetree/bindings/trivial-devices.yaml 18 | @@ -98,6 +98,8 @@ properties: 19 | - infineon,slb9645tt 20 | # Infineon TLV493D-A1B6 I2C 3D Magnetic Sensor 21 | - infineon,tlv493d-a1b6 22 | + # Infineon Multi-phase Digital VR Controller xdpe1a2g7 23 | + - infineon,xdpe1a2g7 24 | # Infineon Multi-phase Digital VR Controller xdpe12254 25 | - infineon,xdpe12254 26 | # Infineon Multi-phase Digital VR Controller xdpe12284 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0293-gpio-mlxbf3-Fix-error-message.patch: -------------------------------------------------------------------------------- 1 | From 3ce9346f449fb7cb5a47fb84dd27bb27b409cec4 Mon Sep 17 00:00:00 2001 2 | From: Felix Radensky 3 | Date: Mon, 16 Oct 2023 16:51:48 +0000 4 | Subject: [PATCH] gpio: mlxbf3: Fix error message 5 | X-NVConfidentiality: public 6 | 7 | Fix the following error message produced by gpio-mlxbf3 driver: 8 | 9 | mlxbf3_gpio MLNXBF33:01: IRQ index 0 not found 10 | 11 | Bluefield-3 SOC has 2 GPIO controllers, but only one of them 12 | is configured in ACPI table to support GPIO interrupts. By using 13 | platform_get_irq_optional() the error message regarding missing 14 | IRQ support is avoided. 15 | 16 | Signed-off-by: Felix Radensky 17 | Reviewed-by: Vadim Pasternak 18 | --- 19 | drivers/gpio/gpio-mlxbf3.c | 2 +- 20 | 1 file changed, 1 insertion(+), 1 deletion(-) 21 | 22 | diff --git a/drivers/gpio/gpio-mlxbf3.c b/drivers/gpio/gpio-mlxbf3.c 23 | index 51dce3ae1..75ec26a68 100644 24 | --- a/drivers/gpio/gpio-mlxbf3.c 25 | +++ b/drivers/gpio/gpio-mlxbf3.c 26 | @@ -220,7 +220,7 @@ static int mlxbf3_gpio_probe(struct platform_device *pdev) 27 | gc->owner = THIS_MODULE; 28 | gc->init_valid_mask = mlxbf3_gpio_init_valid_mask; 29 | 30 | - irq = platform_get_irq(pdev, 0); 31 | + irq = platform_get_irq_optional(pdev, 0); 32 | if (irq >= 0) { 33 | girq = &gs->gc.irq; 34 | girq->chip = &gpio_mlxbf3_irqchip; 35 | -- 36 | 2.14.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0296-platform-mellanox-indicate-deferred-I2C-bus-creation.patch: -------------------------------------------------------------------------------- 1 | From ab5040e2b99cc3eb57eaa266b90877bcc38c28ed Mon Sep 17 00:00:00 2001 2 | From: Michael Shych 3 | Date: Wed, 29 Nov 2023 13:12:38 +0000 4 | Subject: [PATCH v1 1/1] platform: mellanox: indicate deferred I2C bus creation 5 | for a hot-plug driver 6 | 7 | It fixes timing issue when during initialization hot-plug driver 8 | attempts to attach a component to I2C bus, which is still not created. 9 | Setting deferred bus parameter will force hot-plug driver to wait 10 | until the bus is available. 11 | 12 | Signed-off-by: Michael Shych 13 | --- 14 | drivers/platform/mellanox/nvsw-sn2201.c | 1 + 15 | 1 file changed, 1 insertion(+) 16 | 17 | diff --git a/drivers/platform/mellanox/nvsw-sn2201.c b/drivers/platform/mellanox/nvsw-sn2201.c 18 | index 65b677690..79e4d0619 100644 19 | --- a/drivers/platform/mellanox/nvsw-sn2201.c 20 | +++ b/drivers/platform/mellanox/nvsw-sn2201.c 21 | @@ -520,6 +520,7 @@ struct mlxreg_core_hotplug_platform_data nvsw_sn2201_hotplug = { 22 | .counter = ARRAY_SIZE(nvsw_sn2201_items), 23 | .cell = NVSW_SN2201_SYS_INT_STATUS_OFFSET, 24 | .mask = NVSW_SN2201_CPLD_AGGR_MASK_DEF, 25 | + .deferred_nr = NVSW_SN2201_2ND_MUX_CH3_NR, 26 | }; 27 | 28 | /* SN2201 static devices. */ 29 | -- 30 | 2.14.1 31 | 32 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/0303-platform-mellanox-mlxreg-io-Extend-number-of-hwmon-a.patch: -------------------------------------------------------------------------------- 1 | From 47139cf7689304ea32467fd61647380b42599578 Mon Sep 17 00:00:00 2001 2 | From: Oleksandr Shamray 3 | Date: Tue, 4 Feb 2025 14:12:42 +0200 4 | Subject: [PATCH] platform/mellanox: mlxreg-io: Extend number of hwmon 5 | attributes 6 | 7 | Extend maximum number of the attributes, exposed to 'sysfs' to support 8 | new systems having more attributes. 9 | 10 | Signed-off-by: Oleksandr Shamray 11 | Reviewed-by: Vadim Pasternak 12 | --- 13 | drivers/platform/mellanox/mlxreg-io.c | 2 +- 14 | 1 file changed, 1 insertion(+), 1 deletion(-) 15 | 16 | diff --git a/drivers/platform/mellanox/mlxreg-io.c b/drivers/platform/mellanox/mlxreg-io.c 17 | index ddc08ab..881182c 100644 18 | --- a/drivers/platform/mellanox/mlxreg-io.c 19 | +++ b/drivers/platform/mellanox/mlxreg-io.c 20 | @@ -18,7 +18,7 @@ 21 | 22 | /* Attribute parameters. */ 23 | #define MLXREG_IO_ATT_SIZE 10 24 | -#define MLXREG_IO_ATT_NUM 96 25 | +#define MLXREG_IO_ATT_NUM 128 26 | 27 | /** 28 | * struct mlxreg_io_priv_data - driver's private data: 29 | -- 30 | 2.8.4 31 | 32 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/7004-mctp-Add-sockaddr_mctp-to-uapi.patch: -------------------------------------------------------------------------------- 1 | From c6904cdcfd14eac29510c6999700975008362ba0 Mon Sep 17 00:00:00 2001 2 | From: Jeremy Kerr 3 | Date: Thu, 29 Jul 2021 10:20:42 +0800 4 | Subject: [PATCH backport 5.10 04/73] mctp: Add sockaddr_mctp to uapi 5 | 6 | This change introduces the user-visible MCTP header, containing the 7 | protocol-specific addressing definitions. 8 | 9 | Signed-off-by: Jeremy Kerr 10 | Signed-off-by: David S. Miller 11 | --- 12 | include/uapi/linux/mctp.h | 21 +++++++++++++++++++++ 13 | 1 file changed, 21 insertions(+) 14 | 15 | diff --git a/include/uapi/linux/mctp.h b/include/uapi/linux/mctp.h 16 | index 2640a589c14c..52b54d13f385 100644 17 | --- a/include/uapi/linux/mctp.h 18 | +++ b/include/uapi/linux/mctp.h 19 | @@ -9,7 +9,28 @@ 20 | #ifndef __UAPI_MCTP_H 21 | #define __UAPI_MCTP_H 22 | 23 | +#include 24 | + 25 | +typedef __u8 mctp_eid_t; 26 | + 27 | +struct mctp_addr { 28 | + mctp_eid_t s_addr; 29 | +}; 30 | + 31 | struct sockaddr_mctp { 32 | + unsigned short int smctp_family; 33 | + int smctp_network; 34 | + struct mctp_addr smctp_addr; 35 | + __u8 smctp_type; 36 | + __u8 smctp_tag; 37 | }; 38 | 39 | +#define MCTP_NET_ANY 0x0 40 | + 41 | +#define MCTP_ADDR_NULL 0x00 42 | +#define MCTP_ADDR_ANY 0xff 43 | + 44 | +#define MCTP_TAG_MASK 0x07 45 | +#define MCTP_TAG_OWNER 0x08 46 | + 47 | #endif /* __UAPI_MCTP_H */ 48 | -- 49 | 2.20.1 50 | 51 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/7016-mctp-remove-duplicated-assignment-of-pointer-hdr.patch: -------------------------------------------------------------------------------- 1 | From 40420139292335a95ce96b69b15b561c1748aeab Mon Sep 17 00:00:00 2001 2 | From: Colin Ian King 3 | Date: Wed, 4 Aug 2021 13:15:30 +0100 4 | Subject: [PATCH backport 5.10 16/73] mctp: remove duplicated assignment of 5 | pointer hdr 6 | 7 | The pointer hdr is being initialized and also re-assigned with the 8 | same value from the call to function mctp_hdr. Static analysis reports 9 | that the initializated value is unused. The second assignment is 10 | duplicated and can be removed. 11 | 12 | Addresses-Coverity: ("Unused value"). 13 | Signed-off-by: Colin Ian King 14 | Signed-off-by: David S. Miller 15 | --- 16 | net/mctp/af_mctp.c | 1 - 17 | 1 file changed, 1 deletion(-) 18 | 19 | diff --git a/net/mctp/af_mctp.c b/net/mctp/af_mctp.c 20 | index 84f722d31fd7..a9526ac29dff 100644 21 | --- a/net/mctp/af_mctp.c 22 | +++ b/net/mctp/af_mctp.c 23 | @@ -170,7 +170,6 @@ static int mctp_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, 24 | /* TODO: expand mctp_skb_cb for header fields? */ 25 | struct mctp_hdr *hdr = mctp_hdr(skb); 26 | 27 | - hdr = mctp_hdr(skb); 28 | addr = msg->msg_name; 29 | addr->smctp_family = AF_MCTP; 30 | addr->smctp_network = cb->net; 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/7018-mctp-Remove-the-repeated-declaration.patch: -------------------------------------------------------------------------------- 1 | From 30a4b822fb7bcfbbe6502ce94e080fc08b1b489c Mon Sep 17 00:00:00 2001 2 | From: Shaokun Zhang 3 | Date: Wed, 25 Aug 2021 14:34:31 +0800 4 | Subject: [PATCH backport 5.10 18/73] mctp: Remove the repeated declaration 5 | 6 | Function 'mctp_dev_get_rtnl' is declared twice, so remove the 7 | repeated declaration. 8 | 9 | Cc: Jeremy Kerr 10 | Cc: Matt Johnston 11 | Cc: "David S. Miller" 12 | Cc: Jakub Kicinski 13 | Signed-off-by: Shaokun Zhang 14 | Signed-off-by: David S. Miller 15 | --- 16 | include/net/mctpdevice.h | 1 - 17 | 1 file changed, 1 deletion(-) 18 | 19 | diff --git a/include/net/mctpdevice.h b/include/net/mctpdevice.h 20 | index 57e773ff08bb..71a11012fac7 100644 21 | --- a/include/net/mctpdevice.h 22 | +++ b/include/net/mctpdevice.h 23 | @@ -31,6 +31,5 @@ struct mctp_dev { 24 | 25 | struct mctp_dev *mctp_dev_get_rtnl(const struct net_device *dev); 26 | struct mctp_dev *__mctp_dev_get(const struct net_device *dev); 27 | -struct mctp_dev *mctp_dev_get_rtnl(const struct net_device *dev); 28 | 29 | #endif /* __NET_MCTPDEVICE_H */ 30 | -- 31 | 2.20.1 32 | 33 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/7027-mctp-Do-inits-as-a-subsys_initcall.patch: -------------------------------------------------------------------------------- 1 | From 0e288c39c2dcbddbc68f5247fcdcf6e741e6d690 Mon Sep 17 00:00:00 2001 2 | From: Jeremy Kerr 3 | Date: Wed, 29 Sep 2021 15:26:11 +0800 4 | Subject: [PATCH backport 5.10 27/73] mctp: Do inits as a subsys_initcall 5 | 6 | In a future change, we'll want to provide a registration call for 7 | mctp-specific devices. This requires us to have the networks established 8 | before device driver inits, so run the core init as a subsys_initcall. 9 | 10 | Signed-off-by: Jeremy Kerr 11 | Signed-off-by: David S. Miller 12 | --- 13 | net/mctp/af_mctp.c | 2 +- 14 | 1 file changed, 1 insertion(+), 1 deletion(-) 15 | 16 | diff --git a/net/mctp/af_mctp.c b/net/mctp/af_mctp.c 17 | index 28cb1633bed6..66a411d60b6c 100644 18 | --- a/net/mctp/af_mctp.c 19 | +++ b/net/mctp/af_mctp.c 20 | @@ -435,7 +435,7 @@ static __exit void mctp_exit(void) 21 | sock_unregister(PF_MCTP); 22 | } 23 | 24 | -module_init(mctp_init); 25 | +subsys_initcall(mctp_init); 26 | module_exit(mctp_exit); 27 | 28 | MODULE_DESCRIPTION("MCTP core"); 29 | -- 30 | 2.20.1 31 | 32 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/7036-mctp-Be-explicit-about-struct-sockaddr_mctp-padding.patch: -------------------------------------------------------------------------------- 1 | From 5e9f3c7a0a98866b76a33f5bf9f5e759d9ed1b3d Mon Sep 17 00:00:00 2001 2 | From: Jeremy Kerr 3 | Date: Mon, 18 Oct 2021 11:29:35 +0800 4 | Subject: [PATCH backport 5.10 36/73] mctp: Be explicit about struct 5 | sockaddr_mctp padding 6 | 7 | We currently have some implicit padding in struct sockaddr_mctp. This 8 | patch makes this padding explicit, and ensures we have consistent 9 | layout on platforms with <32bit alignmnent. 10 | 11 | Fixes: 60fc63981693 ("mctp: Add sockaddr_mctp to uapi") 12 | Signed-off-by: Jeremy Kerr 13 | Signed-off-by: David S. Miller 14 | (cherry picked from commit 5a20dd46b8b8459382685969cf0f196ae9fb9766) 15 | --- 16 | include/uapi/linux/mctp.h | 2 ++ 17 | 1 file changed, 2 insertions(+) 18 | 19 | diff --git a/include/uapi/linux/mctp.h b/include/uapi/linux/mctp.h 20 | index 8a041c55371d..55bafc48a526 100644 21 | --- a/include/uapi/linux/mctp.h 22 | +++ b/include/uapi/linux/mctp.h 23 | @@ -21,10 +21,12 @@ struct mctp_addr { 24 | 25 | struct sockaddr_mctp { 26 | __kernel_sa_family_t smctp_family; 27 | + __u16 __smctp_pad0; 28 | unsigned int smctp_network; 29 | struct mctp_addr smctp_addr; 30 | __u8 smctp_type; 31 | __u8 smctp_tag; 32 | + __u8 __smctp_pad1; 33 | }; 34 | 35 | struct sockaddr_mctp_ext { 36 | -- 37 | 2.20.1 38 | 39 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/7044-mctp-i2c-Fix-potential-use-after-free.patch: -------------------------------------------------------------------------------- 1 | From 718d708688bc7a3e0fec3f992d6b168d19042f35 Mon Sep 17 00:00:00 2001 2 | From: Matt Johnston 3 | Date: Fri, 25 Feb 2022 13:39:37 +0800 4 | Subject: [PATCH backport 5.10 44/73] mctp i2c: Fix potential use-after-free 5 | 6 | The skb is handed off to netif_rx() which may free it. 7 | Found by Smatch. 8 | 9 | Reported-by: Dan Carpenter 10 | Signed-off-by: Matt Johnston 11 | Signed-off-by: Jakub Kicinski 12 | --- 13 | drivers/net/mctp/mctp-i2c.c | 2 +- 14 | 1 file changed, 1 insertion(+), 1 deletion(-) 15 | 16 | diff --git a/drivers/net/mctp/mctp-i2c.c b/drivers/net/mctp/mctp-i2c.c 17 | index d76048c1dbc5..37e839508218 100644 18 | --- a/drivers/net/mctp/mctp-i2c.c 19 | +++ b/drivers/net/mctp/mctp-i2c.c 20 | @@ -338,7 +338,7 @@ static int mctp_i2c_recv(struct mctp_i2c_dev *midev) 21 | 22 | if (status == NET_RX_SUCCESS) { 23 | ndev->stats.rx_packets++; 24 | - ndev->stats.rx_bytes += skb->len; 25 | + ndev->stats.rx_bytes += recvlen; 26 | } else { 27 | ndev->stats.rx_dropped++; 28 | } 29 | -- 30 | 2.20.1 31 | 32 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/7047-mctp-Remove-redundant-if-statements.patch: -------------------------------------------------------------------------------- 1 | From df64ae5f2782d1f998cb737c1ceb9cfd8ae472d6 Mon Sep 17 00:00:00 2001 2 | From: Xu Wang 3 | Date: Thu, 2 Dec 2021 07:55:35 +0000 4 | Subject: [PATCH backport 5.10 47/73] mctp: Remove redundant if statements 5 | 6 | The 'if (dev)' statement already move into dev_{put , hold}, so remove 7 | redundant if statements. 8 | 9 | Signed-off-by: Xu Wang 10 | Signed-off-by: David S. Miller 11 | (cherry picked from commit d9e56d1839fa40dbaab640ec205390826bddf8ae) 12 | --- 13 | net/mctp/route.c | 3 +-- 14 | 1 file changed, 1 insertion(+), 2 deletions(-) 15 | 16 | diff --git a/net/mctp/route.c b/net/mctp/route.c 17 | index 046a5013c589..978c945ccea5 100644 18 | --- a/net/mctp/route.c 19 | +++ b/net/mctp/route.c 20 | @@ -889,8 +889,7 @@ int mctp_local_output(struct sock *sk, struct mctp_route *rt, 21 | if (!ext_rt) 22 | mctp_route_release(rt); 23 | 24 | - if (dev) 25 | - dev_put(dev); 26 | + dev_put(dev); 27 | 28 | return rc; 29 | 30 | -- 31 | 2.20.1 32 | 33 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/7056-mctp-add-address-validity-checking-for-packet-receiv.patch: -------------------------------------------------------------------------------- 1 | From 1d5b1cf4278a2a4438797085226bd2575caad12a Mon Sep 17 00:00:00 2001 2 | From: Jeremy Kerr 3 | Date: Fri, 18 Feb 2022 12:25:54 +0800 4 | Subject: [PATCH backport 5.10 56/73] mctp: add address validity checking for 5 | packet receive 6 | 7 | This change adds some basic sanity checks for the source and dest 8 | headers of packets on initial receive. 9 | 10 | Signed-off-by: Jeremy Kerr 11 | Signed-off-by: Jakub Kicinski 12 | (cherry picked from commit 86cdfd63f25dc1c8f241ee70c58da3c10472b76e) 13 | --- 14 | net/mctp/route.c | 11 +++++++++++ 15 | 1 file changed, 11 insertions(+) 16 | 17 | diff --git a/net/mctp/route.c b/net/mctp/route.c 18 | index 673fa21645f9..94d41b45058c 100644 19 | --- a/net/mctp/route.c 20 | +++ b/net/mctp/route.c 21 | @@ -1091,6 +1091,17 @@ static int mctp_pkttype_receive(struct sk_buff *skb, struct net_device *dev, 22 | if (mh->ver < MCTP_VER_MIN || mh->ver > MCTP_VER_MAX) 23 | goto err_drop; 24 | 25 | + /* source must be valid unicast or null; drop reserved ranges and 26 | + * broadcast 27 | + */ 28 | + if (!(mctp_address_unicast(mh->src) || mctp_address_null(mh->src))) 29 | + goto err_drop; 30 | + 31 | + /* dest address: as above, but allow broadcast */ 32 | + if (!(mctp_address_unicast(mh->dest) || mctp_address_null(mh->dest) || 33 | + mctp_address_broadcast(mh->dest))) 34 | + goto err_drop; 35 | + 36 | /* MCTP drivers must populate halen/haddr */ 37 | if (dev->type == ARPHRD_MCTP) { 38 | cb = mctp_cb(skb); 39 | -- 40 | 2.20.1 41 | 42 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/7061-mctp-Fix-check-for-dev_hard_header-result.patch: -------------------------------------------------------------------------------- 1 | From b20a6f95c2951bd486192ab210f6bc1a92958112 Mon Sep 17 00:00:00 2001 2 | From: Matt Johnston 3 | Date: Fri, 1 Apr 2022 10:48:42 +0800 4 | Subject: [PATCH backport 5.10 61/73] mctp: Fix check for dev_hard_header() 5 | result 6 | 7 | dev_hard_header() returns the length of the header, so 8 | we need to test for negative errors rather than non-zero. 9 | 10 | Fixes: 889b7da23abf ("mctp: Add initial routing framework") 11 | Signed-off-by: Matt Johnston 12 | Signed-off-by: David S. Miller 13 | (cherry picked from commit 60be976ac45137657b7b505d7e0d44d0e51accb7) 14 | --- 15 | net/mctp/route.c | 2 +- 16 | 1 file changed, 1 insertion(+), 1 deletion(-) 17 | 18 | diff --git a/net/mctp/route.c b/net/mctp/route.c 19 | index a5efcae6a719..e13c5fe90e22 100644 20 | --- a/net/mctp/route.c 21 | +++ b/net/mctp/route.c 22 | @@ -511,7 +511,7 @@ static int mctp_route_output(struct mctp_route *route, struct sk_buff *skb) 23 | 24 | rc = dev_hard_header(skb, skb->dev, ntohs(skb->protocol), 25 | daddr, skb->dev->dev_addr, skb->len); 26 | - if (rc) { 27 | + if (rc < 0) { 28 | kfree_skb(skb); 29 | return -EHOSTUNREACH; 30 | } 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/7062-mctp-i2c-correct-mctp_i2c_header_create-result.patch: -------------------------------------------------------------------------------- 1 | From 1b6d79b3a3e332ae86dfe024231270e335c32a93 Mon Sep 17 00:00:00 2001 2 | From: Matt Johnston 3 | Date: Fri, 1 Apr 2022 10:48:43 +0800 4 | Subject: [PATCH backport 5.10 62/73] mctp i2c: correct mctp_i2c_header_create 5 | result 6 | 7 | header_ops.create should return the length of the header, 8 | instead mctp_i2c_head_create() returned 0. 9 | This didn't cause any problem because the MCTP stack accepted 10 | 0 as success. 11 | 12 | Fixes: f5b8abf9fc3d ("mctp i2c: MCTP I2C binding driver") 13 | Signed-off-by: Matt Johnston 14 | Signed-off-by: David S. Miller 15 | (cherry picked from commit 8ce40a2fd350769e94877b53d353a3b11d85f43b) 16 | --- 17 | drivers/net/mctp/mctp-i2c.c | 2 +- 18 | 1 file changed, 1 insertion(+), 1 deletion(-) 19 | 20 | diff --git a/drivers/net/mctp/mctp-i2c.c b/drivers/net/mctp/mctp-i2c.c 21 | index fd33721d4ab5..62c334bef942 100644 22 | --- a/drivers/net/mctp/mctp-i2c.c 23 | +++ b/drivers/net/mctp/mctp-i2c.c 24 | @@ -553,7 +553,7 @@ static int mctp_i2c_header_create(struct sk_buff *skb, struct net_device *dev, 25 | hdr->source_slave = ((llsrc << 1) & 0xff) | 0x01; 26 | mhdr->ver = 0x01; 27 | 28 | - return 0; 29 | + return sizeof(struct mctp_i2c_hdr); 30 | } 31 | 32 | static int mctp_i2c_tx_thread(void *data) 33 | -- 34 | 2.20.1 35 | 36 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/9002-TMP-fix-for-fan-minimum-speed.patch: -------------------------------------------------------------------------------- 1 | From 91a6100aaadcea0a30d91a32897ef21452e48460 Mon Sep 17 00:00:00 2001 2 | From: Oleksandr Shamray 3 | Date: Tue, 4 Apr 2023 09:56:48 +0000 4 | Subject: [PATCH] TMP fix for fan minimum speed 5 | 6 | Signed-off-by: Oleksandr Shamray 7 | --- 8 | drivers/hwmon/mlxreg-fan.c | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/drivers/hwmon/mlxreg-fan.c b/drivers/hwmon/mlxreg-fan.c 12 | index 5a93fc0..b999ca6 100644 13 | --- a/drivers/hwmon/mlxreg-fan.c 14 | +++ b/drivers/hwmon/mlxreg-fan.c 15 | @@ -364,7 +364,7 @@ static int mlxreg_fan_set_cur_state(struct thermal_cooling_device *cdev, 16 | * For configuration non-zero value is to be returned to avoid thermal 17 | * statistics update. 18 | */ 19 | - config = 1; 20 | + config = 0; /*1*/; 21 | state -= MLXREG_FAN_MAX_STATE; 22 | for (i = 0; i < state; i++) 23 | pwm->cooling_levels[i] = state; 24 | -- 25 | 2.14.1 26 | 27 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/cumulus/.placeholder: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/recipes-kernel/linux/linux-5.10/cumulus/.placeholder -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.10/patchwork/0188-i2c-mux-Add-register-map-based-mux-driver.patch.txt: -------------------------------------------------------------------------------- 1 | patchwork_link: https://patchwork.ozlabs.org/project/linux-i2c/patch/20230215195322.21955-1-vadimp@nvidia.com/ 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0001-1-i2c-mlxcpld-Fix-criteria-for-frequency-setting.patch: -------------------------------------------------------------------------------- 1 | From 3655a19345192ec8e8c55c1eb29f738f029854f5 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 23 Aug 2021 17:45:01 +0300 4 | Subject: [PATCH] i2c: mlxcpld: Fix criteria for frequency setting 5 | 6 | [ Upstream commit 52f57396c75acd77ebcdf3d20aed24ed248e9f79 ] 7 | 8 | Value for getting frequency capability wrongly has been taken from 9 | register offset instead of register value. 10 | 11 | Fixes: 66b0c2846ba8 ("i2c: mlxcpld: Add support for I2C bus frequency setting") 12 | Signed-off-by: Vadim Pasternak 13 | Signed-off-by: Wolfram Sang 14 | Signed-off-by: Sasha Levin 15 | --- 16 | drivers/i2c/busses/i2c-mlxcpld.c | 2 +- 17 | 1 file changed, 1 insertion(+), 1 deletion(-) 18 | 19 | diff --git a/drivers/i2c/busses/i2c-mlxcpld.c b/drivers/i2c/busses/i2c-mlxcpld.c 20 | index 4e0b7c2882ce..6d41c3db8a2b 100644 21 | --- a/drivers/i2c/busses/i2c-mlxcpld.c 22 | +++ b/drivers/i2c/busses/i2c-mlxcpld.c 23 | @@ -495,7 +495,7 @@ mlxcpld_i2c_set_frequency(struct mlxcpld_i2c_priv *priv, 24 | return err; 25 | 26 | /* Set frequency only if it is not 100KHz, which is default. */ 27 | - switch ((data->reg & data->mask) >> data->bit) { 28 | + switch ((regval & data->mask) >> data->bit) { 29 | case MLXCPLD_I2C_FREQ_1000KHZ: 30 | freq = MLXCPLD_I2C_FREQ_1000KHZ_SET; 31 | break; 32 | -- 33 | 2.20.1 34 | 35 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0001-i2c-mlxcpld-Reduce-polling-time-for-performance-impr.patch: -------------------------------------------------------------------------------- 1 | From 3a75f86a31d6c912e87e1bc565f785663b7c5bd7 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Tue, 6 Jul 2021 09:37:04 +0000 4 | Subject: [PATCH backport 5.10 001/197] i2c: mlxcpld: Reduce polling time for 5 | performance improvement 6 | 7 | Decrease polling time 'MLXCPLD_I2C_POLL_TIME' from 400 usec to 200 8 | usec. It improves performance of I2C transactions. 9 | 10 | Reliability of setting polling time to 200 usec has been validated 11 | across all the supported systems. 12 | 13 | Signed-off-by: Vadim Pasternak 14 | --- 15 | drivers/i2c/busses/i2c-mlxcpld.c | 2 +- 16 | 1 file changed, 1 insertion(+), 1 deletion(-) 17 | 18 | diff --git a/drivers/i2c/busses/i2c-mlxcpld.c b/drivers/i2c/busses/i2c-mlxcpld.c 19 | index 015e11c4663f..615f0a98640e 100644 20 | --- a/drivers/i2c/busses/i2c-mlxcpld.c 21 | +++ b/drivers/i2c/busses/i2c-mlxcpld.c 22 | @@ -27,7 +27,7 @@ 23 | #define MLXCPLD_I2C_MAX_ADDR_LEN 4 24 | #define MLXCPLD_I2C_RETR_NUM 2 25 | #define MLXCPLD_I2C_XFER_TO 500000 /* usec */ 26 | -#define MLXCPLD_I2C_POLL_TIME 400 /* usec */ 27 | +#define MLXCPLD_I2C_POLL_TIME 200 /* usec */ 28 | 29 | /* LPC I2C registers */ 30 | #define MLXCPLD_LPCI2C_CPBLTY_REG 0x0 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0004-leds-mlxreg-Skip-setting-LED-color-during-initializa.patch: -------------------------------------------------------------------------------- 1 | From 1238febf335cb5173df4b9220580ba0f16ea9215 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Wed, 7 Jul 2021 10:18:14 +0000 4 | Subject: [PATCH backport 5.10 004/197] leds: mlxreg: Skip setting LED color 5 | during initialization 6 | 7 | Hardware controls LED through CPLD device and LED control ownership 8 | passes to the software after it performs the first write operation for 9 | any LED on a system. 10 | For example, hardware sets "system" LED "green blink" during boot and 11 | might change it to "red", in case something is went wrong from hardware 12 | point of view. 13 | The motivation for not setting LED during kernel initialization is for 14 | keeping hardware settings visible for user, until user will not decide 15 | to set LEDs according to user OS specific requirements. 16 | 17 | Signed-off-by: Vadim Pasternak 18 | --- 19 | drivers/leds/leds-mlxreg.c | 3 --- 20 | 1 file changed, 3 deletions(-) 21 | 22 | diff --git a/drivers/leds/leds-mlxreg.c b/drivers/leds/leds-mlxreg.c 23 | index a9a06cad1ee3..2dca981fb7b4 100644 24 | --- a/drivers/leds/leds-mlxreg.c 25 | +++ b/drivers/leds/leds-mlxreg.c 26 | @@ -261,9 +261,6 @@ static int mlxreg_led_config(struct mlxreg_led_priv_data *priv) 27 | if (err) 28 | return err; 29 | 30 | - if (led_cdev->brightness) 31 | - mlxreg_led_brightness_set(led_cdev, 32 | - led_cdev->brightness); 33 | dev_info(led_cdev->dev, "label: %s, mask: 0x%02x, offset:0x%02x\n", 34 | data->label, data->mask, data->reg); 35 | } 36 | -- 37 | 2.20.1 38 | 39 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0012-platform-mellanox-mlxreg-io-Extend-number-of-hwmon-a.patch: -------------------------------------------------------------------------------- 1 | From 80d95ad97001acbc70c748c4ea756b71d8b22866 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Thu, 25 Mar 2021 20:12:07 +0200 4 | Subject: [PATCH backport 5.10 012/197] platform/mellanox: mlxreg-io: Extend 5 | number of hwmon attributes 6 | 7 | Extend maximum number of the attributes, exposed to 'sysfs'. 8 | It is requires in order to support modular systems, which 9 | provide more attributes for system control, statuses and info. 10 | 11 | Signed-off-by: Vadim Pasternak 12 | Signed-off-by: Jiri Pirko 13 | --- 14 | drivers/platform/mellanox/mlxreg-io.c | 2 +- 15 | 1 file changed, 1 insertion(+), 1 deletion(-) 16 | 17 | diff --git a/drivers/platform/mellanox/mlxreg-io.c b/drivers/platform/mellanox/mlxreg-io.c 18 | index a916cd89cbbe..2c2686d5c2fc 100644 19 | --- a/drivers/platform/mellanox/mlxreg-io.c 20 | +++ b/drivers/platform/mellanox/mlxreg-io.c 21 | @@ -18,7 +18,7 @@ 22 | 23 | /* Attribute parameters. */ 24 | #define MLXREG_IO_ATT_SIZE 10 25 | -#define MLXREG_IO_ATT_NUM 48 26 | +#define MLXREG_IO_ATT_NUM 96 27 | 28 | /** 29 | * struct mlxreg_io_priv_data - driver's private data: 30 | -- 31 | 2.20.1 32 | 33 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0013-platform_data-mlxreg-Add-new-field-for-secured-acces.patch: -------------------------------------------------------------------------------- 1 | From 455b2333d29eeddffff73d1b5579419afb926f8c Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 12 Jul 2021 21:39:51 +0000 4 | Subject: [PATCH backport 5.10 013/197] platform_data/mlxreg: Add new field for 5 | secured access 6 | 7 | Extend structure 'mlxreg_core_data' with the field "secured". The 8 | purpose of this field is to restrict access to some attributes, if 9 | kernel is configured with security options, like: 10 | LOCK_DOWN_KERNEL_FORCE_CONFIDENTIALITY. 11 | Access to some attributes, which for example, allow burning of some 12 | hardware components, like FPGA, CPLD, SPI, etcetera can break the 13 | system. In case user does not want to allow such access, it can disable 14 | it by setting security options. 15 | 16 | Signed-off-by: Vadim Pasternak 17 | Reviewed-by: Michael Shych 18 | --- 19 | include/linux/platform_data/mlxreg.h | 1 + 20 | 1 file changed, 1 insertion(+) 21 | 22 | diff --git a/include/linux/platform_data/mlxreg.h b/include/linux/platform_data/mlxreg.h 23 | index 3122d550dc00..40185f9d7c14 100644 24 | --- a/include/linux/platform_data/mlxreg.h 25 | +++ b/include/linux/platform_data/mlxreg.h 26 | @@ -150,6 +150,7 @@ struct mlxreg_core_data { 27 | bool attached; 28 | u8 regnum; 29 | u8 slot; 30 | + u8 secured; 31 | }; 32 | 33 | /** 34 | -- 35 | 2.20.1 36 | 37 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0017-hwmon-mlxreg-fan-Extend-the-maximum-number-of-tachom.patch: -------------------------------------------------------------------------------- 1 | From 20800c93a6ad301ab1168761bd923fa193788d80 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 12 Jul 2021 22:04:25 +0000 4 | Subject: [PATCH backport 5.10 017/197] hwmon: (mlxreg-fan) Extend the maximum 5 | number of tachometers 6 | 7 | Extend support of maximum tachometers from 12 to 14 in order to support 8 | new systems, equipped with more fans. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | drivers/hwmon/mlxreg-fan.c | 4 +++- 13 | 1 file changed, 3 insertions(+), 1 deletion(-) 14 | 15 | diff --git a/drivers/hwmon/mlxreg-fan.c b/drivers/hwmon/mlxreg-fan.c 16 | index 89fe7b9fe26b..0f5b109817a7 100644 17 | --- a/drivers/hwmon/mlxreg-fan.c 18 | +++ b/drivers/hwmon/mlxreg-fan.c 19 | @@ -12,7 +12,7 @@ 20 | #include 21 | #include 22 | 23 | -#define MLXREG_FAN_MAX_TACHO 12 24 | +#define MLXREG_FAN_MAX_TACHO 14 25 | #define MLXREG_FAN_MAX_STATE 10 26 | #define MLXREG_FAN_MIN_DUTY 51 /* 20% */ 27 | #define MLXREG_FAN_MAX_DUTY 255 /* 100% */ 28 | @@ -266,6 +266,8 @@ static const struct hwmon_channel_info *mlxreg_fan_hwmon_info[] = { 29 | HWMON_F_INPUT | HWMON_F_FAULT, 30 | HWMON_F_INPUT | HWMON_F_FAULT, 31 | HWMON_F_INPUT | HWMON_F_FAULT, 32 | + HWMON_F_INPUT | HWMON_F_FAULT, 33 | + HWMON_F_INPUT | HWMON_F_FAULT, 34 | HWMON_F_INPUT | HWMON_F_FAULT), 35 | HWMON_CHANNEL_INFO(pwm, 36 | HWMON_PWM_INPUT), 37 | -- 38 | 2.20.1 39 | 40 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0034-platform-x86-mlx-platform-Add-support-for-multiply-c.patch: -------------------------------------------------------------------------------- 1 | From 0512aaa698fc6725c303991bdc40e0e3a7c29223 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Thu, 19 Aug 2021 14:23:39 +0000 4 | Subject: [PATCH backport 5.10 034/197] platform/x86: mlx-platform: Add support 5 | for multiply cooling devices 6 | 7 | Add new registers to support systems with multiply cooling devices. 8 | Modular systems support up-to four cooling devices. This capability 9 | is detected according to the registers initial setting. 10 | 11 | Signed-off-by: Vadim Pasternak 12 | Reviewed-by: Michael 13 | --- 14 | drivers/platform/x86/mlx-platform.c | 12 ++++++++++++ 15 | 1 file changed, 12 insertions(+) 16 | 17 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 18 | index 614b9f5c673f..5c91410a649b 100644 19 | --- a/drivers/platform/x86/mlx-platform.c 20 | +++ b/drivers/platform/x86/mlx-platform.c 21 | @@ -3688,6 +3688,18 @@ static struct mlxreg_core_data mlxplat_mlxcpld_default_fan_data[] = { 22 | .label = "pwm1", 23 | .reg = MLXPLAT_CPLD_LPC_REG_PWM1_OFFSET, 24 | }, 25 | + { 26 | + .label = "pwm2", 27 | + .reg = MLXPLAT_CPLD_LPC_REG_PWM2_OFFSET, 28 | + }, 29 | + { 30 | + .label = "pwm3", 31 | + .reg = MLXPLAT_CPLD_LPC_REG_PWM3_OFFSET, 32 | + }, 33 | + { 34 | + .label = "pwm4", 35 | + .reg = MLXPLAT_CPLD_LPC_REG_PWM4_OFFSET, 36 | + }, 37 | { 38 | .label = "tacho1", 39 | .reg = MLXPLAT_CPLD_LPC_REG_TACHO1_OFFSET, 40 | -- 41 | 2.20.1 42 | 43 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0035-mlxsw-core-Extend-external-cooling-device-whitelist-.patch: -------------------------------------------------------------------------------- 1 | From 42ac2b1b3267a46aa486a0928e2a9f844f23531a Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Thu, 7 Oct 2021 19:30:05 +0000 4 | Subject: [PATCH backport 5.10 035/197] mlxsw: core: Extend external cooling 5 | device whitelist for thermal zone binding 6 | 7 | Allow thermal zone binding to an external cooling device of type 8 | "emc2305". 9 | Motivation to support new system SN2021 equipped with ASIC Spectrum-1 10 | supporting 48x Gbps RJ45 + 4x100G QSFP28 ports. 11 | System airflow control is provided by EMC2305 RPM-based PWM Fan Speed 12 | Controller as colling device. 13 | 14 | Signed-off-by: Vadim Pasternak 15 | --- 16 | drivers/net/ethernet/mellanox/mlxsw/core_thermal.c | 1 + 17 | 1 file changed, 1 insertion(+) 18 | 19 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c b/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 20 | index e1a760519097..91abc7a3f7ea 100644 21 | --- a/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 22 | +++ b/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 23 | @@ -30,6 +30,7 @@ 24 | /* External cooling devices, allowed for binding to mlxsw thermal zones. */ 25 | static char * const mlxsw_thermal_external_allowed_cdev[] = { 26 | "mlxreg_fan", 27 | + "emc2305", 28 | }; 29 | 30 | enum mlxsw_thermal_trips { 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0037-i2c-mlxcpld-Add-callback-to-notify-probing-completio.patch: -------------------------------------------------------------------------------- 1 | From d505bd15235d31200088dde9b444162d9dfdce5c Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Thu, 7 Oct 2021 19:04:25 +0000 4 | Subject: [PATCH backport 5.10 037/197] i2c: mlxcpld: Add callback to notify 5 | probing completion 6 | 7 | Add notification to inform caller that driver probing has been 8 | completed. It allows to user, invoked platform device registration for 9 | "i2c-mlxcpld" driver, to be notified that bus adapter is available, and 10 | thus some devices could be connected to this bus. 11 | 12 | Signed-off-by: Vadim Pasternak 13 | --- 14 | drivers/i2c/busses/i2c-mlxcpld.c | 4 ++++ 15 | 1 file changed, 4 insertions(+) 16 | 17 | diff --git a/drivers/i2c/busses/i2c-mlxcpld.c b/drivers/i2c/busses/i2c-mlxcpld.c 18 | index 56aa424fd71d..363ea9fd66c4 100644 19 | --- a/drivers/i2c/busses/i2c-mlxcpld.c 20 | +++ b/drivers/i2c/busses/i2c-mlxcpld.c 21 | @@ -560,6 +560,10 @@ static int mlxcpld_i2c_probe(struct platform_device *pdev) 22 | if (err) 23 | goto mlxcpld_i2_probe_failed; 24 | 25 | + /* Notify caller when adapter is added. */ 26 | + if (pdata && pdata->completion_notify) 27 | + pdata->completion_notify(pdata->handle, mlxcpld_i2c_adapter.nr); 28 | + 29 | return 0; 30 | 31 | mlxcpld_i2_probe_failed: 32 | -- 33 | 2.20.1 34 | 35 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0047-hwmon-mlxreg-fan-Fix-out-of-bounds-read-on-array-fan.patch: -------------------------------------------------------------------------------- 1 | From 9b12cc41ef84f27710c10c3996f9f33610684258 Mon Sep 17 00:00:00 2001 2 | From: Colin Ian King 3 | Date: Mon, 20 Sep 2021 19:09:21 +0100 4 | Subject: [PATCH backport 5.10 047/197] hwmon: (mlxreg-fan) Fix out of bounds 5 | read on array fan->pwm 6 | 7 | Array fan->pwm[] is MLXREG_FAN_MAX_PWM elements in size, however the 8 | for-loop has a off-by-one error causing index i to be out of range 9 | causing an out of bounds read on the array. Fix this by replacing 10 | the <= operator with < in the for-loop. 11 | 12 | Addresses-Coverity: ("Out-of-bounds read") 13 | Reported-by: Vadim Pasternak 14 | Fixes: 35edbaab3bbf ("hwmon: (mlxreg-fan) Extend driver to support multiply cooling devices") 15 | Signed-off-by: Colin Ian King 16 | Link: https://lore.kernel.org/r/20210920180921.16246-1-colin.king@canonical.com 17 | Signed-off-by: Guenter Roeck 18 | --- 19 | drivers/hwmon/mlxreg-fan.c | 2 +- 20 | 1 file changed, 1 insertion(+), 1 deletion(-) 21 | 22 | diff --git a/drivers/hwmon/mlxreg-fan.c b/drivers/hwmon/mlxreg-fan.c 23 | index 35228ed112d7..feab9ec6a6ca 100644 24 | --- a/drivers/hwmon/mlxreg-fan.c 25 | +++ b/drivers/hwmon/mlxreg-fan.c 26 | @@ -554,7 +554,7 @@ static int mlxreg_fan_cooling_config(struct device *dev, struct mlxreg_fan *fan) 27 | { 28 | int i, j; 29 | 30 | - for (i = 0; i <= MLXREG_FAN_MAX_PWM; i++) { 31 | + for (i = 0; i < MLXREG_FAN_MAX_PWM; i++) { 32 | struct mlxreg_fan_pwm *pwm = &fan->pwm[i]; 33 | 34 | if (!pwm->connected) 35 | -- 36 | 2.20.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0050-mlxsw-Use-weak-reverse-dependencies-for-firmware-fla.patch: -------------------------------------------------------------------------------- 1 | From 1f41b740419d3aaa47b6b2cf5ca737ad5f7831e6 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Wed, 20 Oct 2021 09:49:28 +0000 4 | Subject: [PATCH backport 5.10 050/197] mlxsw: Use weak reverse dependencies 5 | for firmware flashing selection 6 | 7 | Replace configuration options "select" by "imply". It allows to set 8 | 'MLXFW' symbol to 'n' from a direct dependency or with a visible 9 | prompt. 10 | 11 | User might wish to disable this option in case only 'mlxsw_minimal' is 12 | configured, since it does not support firmware flashing. 13 | 14 | Signed-off-by: Vadim Pasternak 15 | --- 16 | drivers/net/ethernet/mellanox/mlxsw/Kconfig | 2 +- 17 | 1 file changed, 1 insertion(+), 1 deletion(-) 18 | 19 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/Kconfig b/drivers/net/ethernet/mellanox/mlxsw/Kconfig 20 | index 12871c8dc7c1..a0d5f5b6c949 100644 21 | --- a/drivers/net/ethernet/mellanox/mlxsw/Kconfig 22 | +++ b/drivers/net/ethernet/mellanox/mlxsw/Kconfig 23 | @@ -6,7 +6,7 @@ 24 | config MLXSW_CORE 25 | tristate "Mellanox Technologies Switch ASICs support" 26 | select NET_DEVLINK 27 | - select MLXFW 28 | + imply MLXFW 29 | help 30 | This driver supports Mellanox Technologies Switch ASICs family. 31 | 32 | -- 33 | 2.20.1 34 | 35 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0063-mlxsw-reg-Add-new-field-to-Management-General-Periph.patch: -------------------------------------------------------------------------------- 1 | From da0c64c3f99c115c39cf9871c34254ae471eb6f8 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Fri, 3 Dec 2021 11:48:49 +0200 4 | Subject: [PATCH backport 5.10 063/197] mlxsw: reg: Add new field to Management 5 | General Peripheral Information Register 6 | 7 | Add new field 'max_modules_per_slot' to provide maximum number of 8 | modules that can be connected per slot. This field will always be zero, 9 | if 'slot_index' in query request is set to non-zero value, otherwise 10 | value in this field will provide maximum modules number, which can be 11 | equipped on device inserted at any slot. 12 | 13 | Signed-off-by: Vadim Pasternak 14 | Signed-off-by: Ido Schimmel 15 | --- 16 | drivers/net/ethernet/mellanox/mlxsw/reg.h | 6 ++++++ 17 | 1 file changed, 6 insertions(+) 18 | 19 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h 20 | index 2cacf731cf1a..fbd9c3ec0740 100644 21 | --- a/drivers/net/ethernet/mellanox/mlxsw/reg.h 22 | +++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h 23 | @@ -11183,6 +11183,12 @@ MLXSW_ITEM32(reg, mgpir, devices_per_flash, 0x00, 16, 8); 24 | */ 25 | MLXSW_ITEM32(reg, mgpir, num_of_devices, 0x00, 0, 8); 26 | 27 | +/* max_modules_per_slot 28 | + * Maximum number of modules that can be connected per slot. 29 | + * Access: RO 30 | + */ 31 | +MLXSW_ITEM32(reg, mgpir, max_modules_per_slot, 0x04, 16, 8); 32 | + 33 | /* mgpir_num_of_slots 34 | * Number of slots in the system. 35 | * Access: RO 36 | -- 37 | 2.20.1 38 | 39 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0075-mlxsw-core_thermal-Use-exact-name-of-cooling-devices.patch: -------------------------------------------------------------------------------- 1 | From 2eb0a2b941f4995c34deb678244f1046c5e223db Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Tue, 14 Dec 2021 10:57:37 +0200 4 | Subject: [PATCH backport 5.10 075/197] mlxsw: core_thermal: Use exact name of 5 | cooling devices for binding 6 | 7 | Modular system supports additional cooling devices "mlxreg_fan1", 8 | "mlxreg_fan2", etcetera. Thermal zones in "mlxsw" driver should be 9 | bound to the same device as before called "mlxreg_fan". Used exact 10 | match for cooling device name to avoid binding to new additional 11 | cooling devices. 12 | 13 | Signed-off-by: Vadim Pasternak 14 | Signed-off-by: Ido Schimmel 15 | --- 16 | drivers/net/ethernet/mellanox/mlxsw/core_thermal.c | 3 +-- 17 | 1 file changed, 1 insertion(+), 2 deletions(-) 18 | 19 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c b/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 20 | index 4964c9164c2d..64c6a78f3aa0 100644 21 | --- a/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 22 | +++ b/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 23 | @@ -133,8 +133,7 @@ static int mlxsw_get_cooling_device_idx(struct mlxsw_thermal *thermal, 24 | 25 | /* Allow mlxsw thermal zone binding to an external cooling device */ 26 | for (i = 0; i < ARRAY_SIZE(mlxsw_thermal_external_allowed_cdev); i++) { 27 | - if (strnstr(cdev->type, mlxsw_thermal_external_allowed_cdev[i], 28 | - strlen(cdev->type))) 29 | + if (!strcmp(cdev->type, mlxsw_thermal_external_allowed_cdev[i])) 30 | return 0; 31 | } 32 | 33 | -- 34 | 2.20.1 35 | 36 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0107-mlxsw-core-Export-line-card-API.patch: -------------------------------------------------------------------------------- 1 | From d255399171abab17745ebfdad6a36f90405dd236 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Sun, 19 Dec 2021 09:31:32 +0000 4 | Subject: [PATCH backport 5.10 107/197] mlxsw: core: Export line card API 5 | 6 | Export API mlxsw_core_linecards() for being used by 'minimal' driver. 7 | 8 | Signed-off-by: Vadim Pasternak 9 | --- 10 | drivers/net/ethernet/mellanox/mlxsw/core.c | 1 + 11 | 1 file changed, 1 insertion(+) 12 | 13 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/core.c b/drivers/net/ethernet/mellanox/mlxsw/core.c 14 | index 68bb489da9ac..7fc27178e972 100644 15 | --- a/drivers/net/ethernet/mellanox/mlxsw/core.c 16 | +++ b/drivers/net/ethernet/mellanox/mlxsw/core.c 17 | @@ -104,6 +104,7 @@ struct mlxsw_linecards *mlxsw_core_linecards(struct mlxsw_core *mlxsw_core) 18 | { 19 | return mlxsw_core->linecards; 20 | } 21 | +EXPORT_SYMBOL(mlxsw_core_linecards); 22 | 23 | #define MLXSW_PORT_MAX_PORTS_DEFAULT 0x40 24 | 25 | -- 26 | 2.20.1 27 | 28 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0120-DS-lan743x-Add-support-for-fixed-phy.patch: -------------------------------------------------------------------------------- 1 | From 6c532a3643cd86e5453f0968da8960605b8e773b Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Fri, 18 Oct 2024 14:13:05 +0300 4 | Subject: [PATCH backport 5.10 120/197] DS: lan743x: Add support for fixed phy 5 | 6 | Add support for fixed phy for non DTS architecture. 7 | 8 | Signed-off-by: Vadim Pasternak 9 | --- 10 | drivers/net/ethernet/microchip/Kconfig | 11 +++++++++++ 11 | 1 file changed, 11 insertions(+) 12 | 13 | diff --git a/drivers/net/ethernet/microchip/Kconfig b/drivers/net/ethernet/microchip/Kconfig 14 | index d54aa164c4e9..12f200be8eee 100644 15 | --- a/drivers/net/ethernet/microchip/Kconfig 16 | +++ b/drivers/net/ethernet/microchip/Kconfig 17 | @@ -54,6 +54,17 @@ config LAN743X 18 | To compile this driver as a module, choose M here. The module will be 19 | called lan743x. 20 | 21 | +config LAN743X_FIXED_PHY 22 | + bool "Direct R/G/MII connection without PHY" 23 | + default n 24 | + depends on LAN743X 25 | + select FIXED_PHY 26 | + help 27 | + Direct R/G/MII connection to a remote MII device without PHY in between. 28 | + No mdio bus will be used in this case and no auto-negotiation takes place. 29 | + The configuration settings below need to mirror the configuration of the 30 | + remote MII device. 31 | + 32 | source "drivers/net/ethernet/microchip/sparx5/Kconfig" 33 | 34 | endif # NET_VENDOR_MICROCHIP 35 | -- 36 | 2.20.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0121-TMP-mlxsw-minimal-Ignore-error-reading-SPAD-register.patch: -------------------------------------------------------------------------------- 1 | From f86e3181d1adc2329fbf67efbe6f2ff4d796e3af Mon Sep 17 00:00:00 2001 2 | From: root 3 | Date: Tue, 5 Apr 2022 21:35:55 +0300 4 | Subject: [PATCH backport 5.10 121/197] TMP: mlxsw: minimal: Ignore error 5 | reading SPAD register 6 | 7 | WA until FW will add support for SPAD register for all systems. 8 | 9 | Signed-off-by: Vadim Pasternak 10 | --- 11 | drivers/net/ethernet/mellanox/mlxsw/minimal.c | 3 ++- 12 | 1 file changed, 2 insertions(+), 1 deletion(-) 13 | 14 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/minimal.c b/drivers/net/ethernet/mellanox/mlxsw/minimal.c 15 | index 0b605c6aa637..5fd319697c94 100644 16 | --- a/drivers/net/ethernet/mellanox/mlxsw/minimal.c 17 | +++ b/drivers/net/ethernet/mellanox/mlxsw/minimal.c 18 | @@ -64,11 +64,12 @@ static int mlxsw_m_base_mac_get(struct mlxsw_m *mlxsw_m) 19 | { 20 | char spad_pl[MLXSW_REG_SPAD_LEN] = {0}; 21 | int err; 22 | - 23 | +#if 0 24 | err = mlxsw_reg_query(mlxsw_m->core, MLXSW_REG(spad), spad_pl); 25 | if (err) 26 | return err; 27 | mlxsw_reg_spad_base_mac_memcpy_from(spad_pl, mlxsw_m->base_mac); 28 | +#endif 29 | return 0; 30 | } 31 | 32 | -- 33 | 2.20.1 34 | 35 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0122-1-i2c-mlxcpld-Modify-register-setting-for-400KHz-frequ.patch: -------------------------------------------------------------------------------- 1 | From cf63b49349cc308429cbeba08c416801145e853d Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 23 Aug 2021 17:45:02 +0300 4 | Subject: [PATCH] i2c: mlxcpld: Modify register setting for 400KHz frequency 5 | 6 | [ Upstream commit fa1049135c15b4930ce7ea757a81b1b78908f304 ] 7 | 8 | Change setting for 400KHz frequency support by more accurate value. 9 | 10 | Fixes: 66b0c2846ba8 ("i2c: mlxcpld: Add support for I2C bus frequency setting") 11 | Signed-off-by: Vadim Pasternak 12 | Signed-off-by: Wolfram Sang 13 | Signed-off-by: Sasha Levin 14 | --- 15 | drivers/i2c/busses/i2c-mlxcpld.c | 2 +- 16 | 1 file changed, 1 insertion(+), 1 deletion(-) 17 | 18 | diff --git a/drivers/i2c/busses/i2c-mlxcpld.c b/drivers/i2c/busses/i2c-mlxcpld.c 19 | index 6d41c3db8a2b..015e11c4663f 100644 20 | --- a/drivers/i2c/busses/i2c-mlxcpld.c 21 | +++ b/drivers/i2c/busses/i2c-mlxcpld.c 22 | @@ -49,7 +49,7 @@ 23 | #define MLXCPLD_LPCI2C_NACK_IND 2 24 | 25 | #define MLXCPLD_I2C_FREQ_1000KHZ_SET 0x04 26 | -#define MLXCPLD_I2C_FREQ_400KHZ_SET 0x0f 27 | +#define MLXCPLD_I2C_FREQ_400KHZ_SET 0x0c 28 | #define MLXCPLD_I2C_FREQ_100KHZ_SET 0x42 29 | 30 | enum mlxcpld_i2c_frequency { 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0122-i2c-mlxcpld-Fix-register-setting-for-400KHz-frequenc.patch: -------------------------------------------------------------------------------- 1 | From 7beeaa7322354550b1a5a44f65501696f08bf20e Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 13 Jun 2022 20:51:35 +0300 4 | Subject: [PATCH backport 5.10 122/197] i2c: mlxcpld: Fix register setting for 5 | 400KHz frequency 6 | 7 | Fix setting of 'Half Cycle' register for 400KHz frequency. 8 | 9 | Fixes: fa1049135c15 ("i2c: mlxcpld: Modify register setting for 400KHz frequency") 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | drivers/i2c/busses/i2c-mlxcpld.c | 2 +- 13 | 1 file changed, 1 insertion(+), 1 deletion(-) 14 | 15 | diff --git a/drivers/i2c/busses/i2c-mlxcpld.c b/drivers/i2c/busses/i2c-mlxcpld.c 16 | index 363ea9fd66c4..72fcfb17dd67 100644 17 | --- a/drivers/i2c/busses/i2c-mlxcpld.c 18 | +++ b/drivers/i2c/busses/i2c-mlxcpld.c 19 | @@ -49,7 +49,7 @@ 20 | #define MLXCPLD_LPCI2C_NACK_IND 2 21 | 22 | #define MLXCPLD_I2C_FREQ_1000KHZ_SET 0x04 23 | -#define MLXCPLD_I2C_FREQ_400KHZ_SET 0x0c 24 | +#define MLXCPLD_I2C_FREQ_400KHZ_SET 0x0e 25 | #define MLXCPLD_I2C_FREQ_100KHZ_SET 0x42 26 | 27 | enum mlxcpld_i2c_frequency { 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0128-platform-mellanox-fix-reset_pwr_converter_fail-attri.patch: -------------------------------------------------------------------------------- 1 | From e7dbf3bef5269ce6dd14369bce294bdeb88c2378 Mon Sep 17 00:00:00 2001 2 | From: Michael Shych 3 | Date: Sun, 4 Sep 2022 10:41:45 +0300 4 | Subject: [PATCH backport 5.10 128/197] platform: mellanox: fix 5 | reset_pwr_converter_fail attribute. 6 | 7 | Change incorrect reset_voltmon_upgrade_fail atitribute name to 8 | reset_pwr_converter_fail. 9 | 10 | Signed-off-by: Michael Shych 11 | Reviewed-by: Vadim Pasternak 12 | --- 13 | drivers/platform/x86/mlx-platform.c | 2 +- 14 | 1 file changed, 1 insertion(+), 1 deletion(-) 15 | 16 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 17 | index 135ccea3a34e..3f29ab98480d 100644 18 | --- a/drivers/platform/x86/mlx-platform.c 19 | +++ b/drivers/platform/x86/mlx-platform.c 20 | @@ -3414,7 +3414,7 @@ static struct mlxreg_core_data mlxplat_mlxcpld_default_ng_regs_io_data[] = { 21 | .mode = 0444, 22 | }, 23 | { 24 | - .label = "reset_voltmon_upgrade_fail", 25 | + .label = "reset_pwr_converter_fail", 26 | .reg = MLXPLAT_CPLD_LPC_REG_RST_CAUSE2_OFFSET, 27 | .mask = GENMASK(7, 0) & ~BIT(0), 28 | .mode = 0444, 29 | -- 30 | 2.20.1 31 | 32 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0138-platform_data-mlxreg-Add-field-with-mapped-resource-.patch: -------------------------------------------------------------------------------- 1 | From b4e32462a174fd72acaf4aa140a01850a00d3e32 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Wed, 9 Nov 2022 09:43:28 +0200 4 | Subject: [PATCH backport 5.10 138/197] platform_data/mlxreg: Add field with 5 | mapped resource address 6 | 7 | Add field with PCIe remapped based address for passing it across 8 | relevant platform drivers sharing common system resources. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | include/linux/platform_data/mlxreg.h | 2 ++ 13 | 1 file changed, 2 insertions(+) 14 | 15 | diff --git a/include/linux/platform_data/mlxreg.h b/include/linux/platform_data/mlxreg.h 16 | index a6bd74e29b6b..0b9f81a6f753 100644 17 | --- a/include/linux/platform_data/mlxreg.h 18 | +++ b/include/linux/platform_data/mlxreg.h 19 | @@ -216,6 +216,7 @@ struct mlxreg_core_platform_data { 20 | * @mask_low: low aggregation interrupt common mask; 21 | * @deferred_nr: I2C adapter number must be exist prior probing execution; 22 | * @shift_nr: I2C adapter numbers must be incremented by this value; 23 | + * @addr: mapped resource address; 24 | * @handle: handle to be passed by callback; 25 | * @completion_notify: callback to notify when platform driver probing is done; 26 | */ 27 | @@ -230,6 +231,7 @@ struct mlxreg_core_hotplug_platform_data { 28 | u32 mask_low; 29 | int deferred_nr; 30 | int shift_nr; 31 | + void __iomem *addr; 32 | void *handle; 33 | int (*completion_notify)(void *handle, int id); 34 | }; 35 | -- 36 | 2.20.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0140-i2c-mlxcpld-Allow-driver-to-run-on-ARM64-architectur.patch: -------------------------------------------------------------------------------- 1 | From 59766a92b5ff0d4c90aa753d78c5793007873617 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 7 Nov 2022 12:00:37 +0200 4 | Subject: [PATCH backport 5.10 140/197] i2c: mlxcpld: Allow driver to run on 5 | ARM64 architecture 6 | 7 | Extend driver dependency by ARM64 architecture. 8 | 9 | Signed-off-by: Vadim Pasternak 10 | --- 11 | drivers/i2c/busses/Kconfig | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig 15 | index 10acece9d7b9..a43cd27b4752 100644 16 | --- a/drivers/i2c/busses/Kconfig 17 | +++ b/drivers/i2c/busses/Kconfig 18 | @@ -1319,7 +1319,7 @@ config I2C_ICY 19 | 20 | config I2C_MLXCPLD 21 | tristate "Mellanox I2C driver" 22 | - depends on X86_64 || COMPILE_TEST 23 | + depends on X86_64 || ARM64 || COMPILE_TEST 24 | help 25 | This exposes the Mellanox platform I2C busses to the linux I2C layer 26 | for X86 based systems. 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0144-platform-mellanox-mlx-platform-Move-bus-shift-assign.patch: -------------------------------------------------------------------------------- 1 | From f1baf263c9540f5467466b1a4eafe0181d63208c Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Wed, 18 Jan 2023 15:25:37 +0200 4 | Subject: [PATCH backport 5.10 144/197] platform: mellanox: mlx-platform: Move 5 | bus shift assignment out of the loop 6 | 7 | Move assignment of bus shift setting out of the loop to avoid redundant 8 | operation. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | drivers/platform/x86/mlx-platform.c | 5 +++-- 13 | 1 file changed, 3 insertions(+), 2 deletions(-) 14 | 15 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 16 | index de8fd0886e15..9d4cab937d87 100644 17 | --- a/drivers/platform/x86/mlx-platform.c 18 | +++ b/drivers/platform/x86/mlx-platform.c 19 | @@ -6371,10 +6371,11 @@ static int mlxplat_mlxcpld_verify_bus_topology(int *nr) 20 | shift = *nr - mlxplat_mux_data[i].parent; 21 | mlxplat_mux_data[i].parent = *nr; 22 | mlxplat_mux_data[i].base_nr += shift; 23 | - if (shift > 0) 24 | - mlxplat_hotplug->shift_nr = shift; 25 | } 26 | 27 | + if (shift > 0) 28 | + mlxplat_hotplug->shift_nr = shift; 29 | + 30 | return 0; 31 | } 32 | 33 | -- 34 | 2.20.1 35 | 36 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0148-platform-mellanox-Fix-order-in-exit-flow.patch: -------------------------------------------------------------------------------- 1 | From da7c7cfd586e9358e4ee13cec61ee9332f458454 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Sun, 23 Jul 2023 20:46:32 +0000 4 | Subject: [PATCH backport 5.10 148/197] platform: mellanox: Fix order in exit 5 | flow 6 | 7 | Fix exit flow order: call mlxplat_post_exit() after 8 | mlxplat_i2c_main_exit() in order to unregister main i2c driver before 9 | to "mlxplat" driver. 10 | 11 | Fixes: 0170f616f496 ("platform: mellanox: Split initialization procedure") 12 | Signed-off-by: Vadim Pasternak 13 | Reviewed-by: Michael Shych 14 | --- 15 | drivers/platform/x86/mlx-platform.c | 3 +-- 16 | 1 file changed, 1 insertion(+), 2 deletions(-) 17 | 18 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 19 | index 58e68ce000af..bf38b8f44c7a 100644 20 | --- a/drivers/platform/x86/mlx-platform.c 21 | +++ b/drivers/platform/x86/mlx-platform.c 22 | @@ -6653,8 +6653,6 @@ static void mlxplat_i2c_mux_topology_exit(struct mlxplat_priv *priv) 23 | if (priv->pdev_mux[i]) 24 | platform_device_unregister(priv->pdev_mux[i]); 25 | } 26 | - 27 | - mlxplat_post_exit(); 28 | } 29 | 30 | static int mlxplat_i2c_main_complition_notify(void *handle, int id) 31 | @@ -6784,6 +6782,7 @@ static void __exit mlxplat_exit(void) 32 | pm_power_off = NULL; 33 | mlxplat_pre_exit(priv); 34 | mlxplat_i2c_main_exit(priv); 35 | + mlxplat_post_exit(); 36 | } 37 | module_exit(mlxplat_exit); 38 | 39 | -- 40 | 2.20.1 41 | 42 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0151-regmap-debugfs-Enable-writing-to-the-regmap-debugfs-.patch: -------------------------------------------------------------------------------- 1 | From 28980fef979e6e29f56d4515746a21cd2581186c Mon Sep 17 00:00:00 2001 2 | From: Felix Radensky 3 | Date: Sun, 20 Nov 2022 15:25:58 +0200 4 | Subject: [PATCH backport 5.10 151/197] regmap: debugfs: Enable writing to the 5 | regmap debugfs registers 6 | 7 | Signed-off-by: Felix Radensky 8 | --- 9 | drivers/base/regmap/regmap-debugfs.c | 2 +- 10 | 1 file changed, 1 insertion(+), 1 deletion(-) 11 | 12 | diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c 13 | index 211a335a608d..ee3cccaf5f06 100644 14 | --- a/drivers/base/regmap/regmap-debugfs.c 15 | +++ b/drivers/base/regmap/regmap-debugfs.c 16 | @@ -290,7 +290,7 @@ static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf, 17 | count, ppos); 18 | } 19 | 20 | -#undef REGMAP_ALLOW_WRITE_DEBUGFS 21 | +#define REGMAP_ALLOW_WRITE_DEBUGFS 22 | #ifdef REGMAP_ALLOW_WRITE_DEBUGFS 23 | /* 24 | * This can be dangerous especially when we have clients such as 25 | -- 26 | 2.20.1 27 | 28 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0152-hwmon-mlxreg-fan-Return-zero-speed-for-broken-fan.patch: -------------------------------------------------------------------------------- 1 | From 4dbd16fac6c21fbfa70dbf99aad900f4ca5cc2b8 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Sun, 5 Feb 2023 09:34:20 +0200 4 | Subject: [PATCH backport 5.10 152/197] hwmon: (mlxreg-fan) Return zero speed 5 | for broken fan 6 | 7 | Currently for broken fan driver returns value calculated based on error 8 | code (0xFF) in related fan speed register. 9 | Thus, for such fan user gets fan{n}_fault to 1 and fan{n}_input with 10 | misleading value. 11 | 12 | Add check for fan fault prior return speed value and return zero if 13 | fault is detected. 14 | 15 | Fixes: 65afb4c8e7e4 ("hwmon: (mlxreg-fan) Add support for Mellanox FAN driver") 16 | Signed-off-by: Vadim Pasternak 17 | --- 18 | drivers/hwmon/mlxreg-fan.c | 6 ++++++ 19 | 1 file changed, 6 insertions(+) 20 | 21 | diff --git a/drivers/hwmon/mlxreg-fan.c b/drivers/hwmon/mlxreg-fan.c 22 | index 4a8becdb0d58..5a93fc094364 100644 23 | --- a/drivers/hwmon/mlxreg-fan.c 24 | +++ b/drivers/hwmon/mlxreg-fan.c 25 | @@ -158,6 +158,12 @@ mlxreg_fan_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, 26 | if (err) 27 | return err; 28 | 29 | + if (MLXREG_FAN_GET_FAULT(regval, tacho->mask)) { 30 | + /* FAN is broken - return zero for FAN speed. */ 31 | + *val = 0; 32 | + return 0; 33 | + } 34 | + 35 | *val = MLXREG_FAN_GET_RPM(regval, fan->divider, 36 | fan->samples); 37 | break; 38 | -- 39 | 2.20.1 40 | 41 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0153-DS-mlxsw-core_linecards-Disable-firmware-bundling-ma.patch: -------------------------------------------------------------------------------- 1 | From e849919b07c7e3e9600143f42b93392a7cf59e28 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 20 Feb 2023 15:15:46 +0200 4 | Subject: [PATCH backport 5.10 153/197] DS: mlxsw: core_linecards: Disable 5 | firmware bundling macros 6 | 7 | Remove line card firmware bundling flow in non upstream environment to 8 | avoid warning in case path /lib/firmware/mellanox is not available. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | drivers/net/ethernet/mellanox/mlxsw/core_linecards.c | 4 +++- 13 | 1 file changed, 3 insertions(+), 1 deletion(-) 14 | 15 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_linecards.c b/drivers/net/ethernet/mellanox/mlxsw/core_linecards.c 16 | index 30665a6f3e4d..4bae0643abe7 100644 17 | --- a/drivers/net/ethernet/mellanox/mlxsw/core_linecards.c 18 | +++ b/drivers/net/ethernet/mellanox/mlxsw/core_linecards.c 19 | @@ -1501,5 +1501,7 @@ void mlxsw_linecards_event_ops_unregister(struct mlxsw_core *mlxsw_core, 20 | } 21 | } 22 | EXPORT_SYMBOL(mlxsw_linecards_event_ops_unregister); 23 | - 24 | +/* Skip for non-upstream flow. */ 25 | +#if 0 26 | MODULE_FIRMWARE(MLXSW_LINECARDS_INI_BUNDLE_FILE); 27 | +#endif 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0161-platform-mellanox-mlxreg-hotplug-Extend-condition-fo.patch: -------------------------------------------------------------------------------- 1 | From 9df365c0a2a773b568c0f57a20786e033e752508 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Sun, 19 Mar 2023 15:04:26 +0000 4 | Subject: [PATCH backport 5.10 161/197] platform/mellanox: mlxreg-hotplug: 5 | Extend condition for notification callback processing 6 | 7 | Allow processing of notification callback in routine 8 | mlxreg_hotplug_device_create() in case hotplug object is configured 9 | with action "MLXREG_HOTPLUG_DEVICE_NO_ACTION" in case no I2C parent bus 10 | is specified. 11 | 12 | Signed-off-by: Vadim Pasternak 13 | Reviewed-by: Michael Shych 14 | --- 15 | drivers/platform/mellanox/mlxreg-hotplug.c | 2 +- 16 | 1 file changed, 1 insertion(+), 1 deletion(-) 17 | 18 | diff --git a/drivers/platform/mellanox/mlxreg-hotplug.c b/drivers/platform/mellanox/mlxreg-hotplug.c 19 | index b7dcc64cd238..c5abedd3514d 100644 20 | --- a/drivers/platform/mellanox/mlxreg-hotplug.c 21 | +++ b/drivers/platform/mellanox/mlxreg-hotplug.c 22 | @@ -113,7 +113,7 @@ static int mlxreg_hotplug_device_create(struct mlxreg_hotplug_priv_data *priv, 23 | * Return if adapter number is negative. It could be in case hotplug 24 | * event is not associated with hotplug device. 25 | */ 26 | - if (data->hpdev.nr < 0) 27 | + if (data->hpdev.nr < 0 && data->hpdev.action != MLXREG_HOTPLUG_DEVICE_NO_ACTION) 28 | return 0; 29 | 30 | pdata = dev_get_platdata(&priv->pdev->dev); 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0163-platform-mellanox-mlx-platform-Add-reset-cause-attri.patch: -------------------------------------------------------------------------------- 1 | From de89eb26f63978b07d22df5e4b9288a6201b74ac Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 24 Jul 2023 05:20:15 +0000 4 | Subject: [PATCH backport 5.10 163/197] platform: mellanox: mlx-platform: Add 5 | reset cause attribute 6 | 7 | Extend IO registers description for some system types with reset cause 8 | attribute "reset_swb_dc_dc_pwr_fail" to indicate reset caused by switch 9 | board DC-DC power failure. 10 | 11 | Signed-off-by: Vadim Pasternak 12 | Reviewed-by: Michael Shych 13 | --- 14 | drivers/platform/x86/mlx-platform.c | 6 ++++++ 15 | 1 file changed, 6 insertions(+) 16 | 17 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 18 | index 8663e697fb22..320a17f642df 100644 19 | --- a/drivers/platform/x86/mlx-platform.c 20 | +++ b/drivers/platform/x86/mlx-platform.c 21 | @@ -3790,6 +3790,12 @@ static struct mlxreg_core_data mlxplat_mlxcpld_default_ng_regs_io_data[] = { 22 | .mask = GENMASK(7, 0) & ~BIT(2), 23 | .mode = 0444, 24 | }, 25 | + { 26 | + .label = "reset_swb_dc_dc_pwr_fail", 27 | + .reg = MLXPLAT_CPLD_LPC_REG_RESET_CAUSE_OFFSET, 28 | + .mask = GENMASK(7, 0) & ~BIT(3), 29 | + .mode = 0444, 30 | + }, 31 | { 32 | .label = "reset_from_asic", 33 | .reg = MLXPLAT_CPLD_LPC_REG_RESET_CAUSE_OFFSET, 34 | -- 35 | 2.20.1 36 | 37 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0169-mlxsw-reg-Limit-MTBR-register-records-buffer-by-one-.patch: -------------------------------------------------------------------------------- 1 | From 113099ed162b03be03b9efefef14d80f4d5984d2 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Thu, 6 Jul 2023 07:40:34 +0000 4 | Subject: [PATCH backport 5.10 169/197] mlxsw: reg: Limit MTBR register records 5 | buffer by one record 6 | 7 | The MTBR register is used to obtain specific cable status, so just only 8 | one data record is required in transaction. 9 | 10 | Limit size of MTBR register to avoid sending redundant size of buffer 11 | to firmware. 12 | 13 | Signed-off-by: Vadim Pasternak 14 | --- 15 | drivers/net/ethernet/mellanox/mlxsw/reg.h | 2 +- 16 | 1 file changed, 1 insertion(+), 1 deletion(-) 17 | 18 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h 19 | index 7dfa9a0790af..45b35f7acbad 100644 20 | --- a/drivers/net/ethernet/mellanox/mlxsw/reg.h 21 | +++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h 22 | @@ -9749,7 +9749,7 @@ MLXSW_ITEM_BIT_ARRAY(reg, mtwe, sensor_warning, 0x0, 0x10, 1); 23 | #define MLXSW_REG_MTBR_ID 0x900F 24 | #define MLXSW_REG_MTBR_BASE_LEN 0x10 /* base length, without records */ 25 | #define MLXSW_REG_MTBR_REC_LEN 0x04 /* record length */ 26 | -#define MLXSW_REG_MTBR_REC_MAX_COUNT 47 /* firmware limitation */ 27 | +#define MLXSW_REG_MTBR_REC_MAX_COUNT 1 28 | #define MLXSW_REG_MTBR_LEN (MLXSW_REG_MTBR_BASE_LEN + \ 29 | MLXSW_REG_MTBR_REC_LEN * \ 30 | MLXSW_REG_MTBR_REC_MAX_COUNT) 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0171-dt-bindings-trivial-devices-Add-mps-mp2891.patch: -------------------------------------------------------------------------------- 1 | From 4f7263cee33410abdd0dea43929f31d6e4bb9627 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Thu, 13 Jul 2023 06:20:05 +0000 4 | Subject: [PATCH backport 5.10 171/197] dt-bindings: trivial-devices: Add 5 | mps,mp2891 6 | 7 | Add new dual-loop, digital, multi-phase controller MP2891 fro 8 | Monolithic Power Systems, Inc. (MPS) to trivial devices. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 13 | 1 file changed, 2 insertions(+) 14 | 15 | diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml 16 | index 919a4bf03a5a..91a4a07a0ded 100644 17 | --- a/Documentation/devicetree/bindings/trivial-devices.yaml 18 | +++ b/Documentation/devicetree/bindings/trivial-devices.yaml 19 | @@ -105,6 +105,8 @@ properties: 20 | - fsl,mpl3115 21 | # MPR121: Proximity Capacitive Touch Sensor Controller 22 | - fsl,mpr121 23 | + # Monolithic Power Systems Inc. multi-phase controller mp2891 24 | + - mps,mp2891 25 | # Monolithic Power Systems Inc. multi-phase controller mp2888 26 | - mps,mp2888 27 | # Monolithic Power Systems Inc. multi-phase controller mp2975 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0172-platform-mellanox-mlx-platform-Modify-power-off-call.patch: -------------------------------------------------------------------------------- 1 | From 038bb18f49f589fb25df592480b38d78f8a705a0 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 24 Jul 2023 06:22:13 +0000 4 | Subject: [PATCH backport 5.10 172/197] platform: mellanox: mlx-platform: 5 | Modify power off callback 6 | 7 | Extend platform power off callback with kernel_halt() call. 8 | 9 | Signed-off-by: Vadim Pasternak 10 | Reviewed-by: Michael Shych 11 | --- 12 | drivers/platform/x86/mlx-platform.c | 1 + 13 | 1 file changed, 1 insertion(+) 14 | 15 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 16 | index 5aa18df1a841..f5d4720a50bd 100644 17 | --- a/drivers/platform/x86/mlx-platform.c 18 | +++ b/drivers/platform/x86/mlx-platform.c 19 | @@ -5872,6 +5872,7 @@ static void mlxplat_poweroff(void) 20 | struct mlxplat_priv *priv = platform_get_drvdata(mlxplat_dev); 21 | 22 | regmap_write(priv->regmap, MLXPLAT_CPLD_LPC_REG_GP1_OFFSET, MLXPLAT_CPLD_HALT_MASK); 23 | + kernel_halt(); 24 | } 25 | 26 | static int __init mlxplat_dmi_default_matched(const struct dmi_system_id *dmi) 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0173-Extend-driver-to-support-Infineon-Digital-Multi-phas.patch: -------------------------------------------------------------------------------- 1 | From d7e73c93b27464b83b0b649012616d215f59eb53 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 17 Jul 2023 15:40:08 +0000 4 | Subject: [PATCH backport 5.10 173/197] Extend driver to support Infineon 5 | Digital Multi-phase XDPE1A2G7 device. 6 | 7 | From telemetry perspective device is almost the same as XDPE15284, but 8 | does not support READ_EIN (86h) and READ_EOUT (87h) commands. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | drivers/hwmon/pmbus/xdpe152c4.c | 2 ++ 13 | 1 file changed, 2 insertions(+) 14 | 15 | diff --git a/drivers/hwmon/pmbus/xdpe152c4.c b/drivers/hwmon/pmbus/xdpe152c4.c 16 | index b8a36ef73e45..1ef1141ba537 100644 17 | --- a/drivers/hwmon/pmbus/xdpe152c4.c 18 | +++ b/drivers/hwmon/pmbus/xdpe152c4.c 19 | @@ -44,6 +44,7 @@ static int xdpe152_probe(struct i2c_client *client) 20 | } 21 | 22 | static const struct i2c_device_id xdpe152_id[] = { 23 | + {"xdpe1a2g7", 0}, 24 | {"xdpe152c4", 0}, 25 | {"xdpe15284", 0}, 26 | {} 27 | @@ -52,6 +53,7 @@ static const struct i2c_device_id xdpe152_id[] = { 28 | MODULE_DEVICE_TABLE(i2c, xdpe152_id); 29 | 30 | static const struct of_device_id __maybe_unused xdpe152_of_match[] = { 31 | + {.compatible = "infineon,xdpe1a2g7"}, 32 | {.compatible = "infineon,xdpe152c4"}, 33 | {.compatible = "infineon,xdpe15284"}, 34 | {} 35 | -- 36 | 2.20.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0174-dt-bindings-trivial-devices-Add-infineon-xdpe1a2g7.patch: -------------------------------------------------------------------------------- 1 | From eaad4438f3dc8872d545f9a9e00a15206b4291e2 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 17 Jul 2023 16:24:58 +0000 4 | Subject: [PATCH backport 5.10 174/197] dt-bindings: trivial-devices: Add 5 | infineon,xdpe1a2g7 6 | 7 | Add new Infineon Multi-phase Digital VR Controller xdpe1a2g7 8 | 9 | Signed-off-by: Vadim Pasternak 10 | --- 11 | Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 12 | 1 file changed, 2 insertions(+) 13 | 14 | diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml 15 | index 91a4a07a0ded..0ace0ceda0a9 100644 16 | --- a/Documentation/devicetree/bindings/trivial-devices.yaml 17 | +++ b/Documentation/devicetree/bindings/trivial-devices.yaml 18 | @@ -123,6 +123,8 @@ properties: 19 | - infineon,slb9645tt 20 | # Infineon TLV493D-A1B6 I2C 3D Magnetic Sensor 21 | - infineon,tlv493d-a1b6 22 | + # Infineon Multi-phase Digital VR Controller xdpe1a2g7 23 | + - infineon,xdpe1a2g7 24 | # Infineon Multi-phase Digital VR Controller xdpe12254 25 | - infineon,xdpe12254 26 | # Infineon Multi-phase Digital VR Controller xdpe12284 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-5.14/0193-platform-mellanox-indicate-deferred-I2C-bus-creation.patch: -------------------------------------------------------------------------------- 1 | From 0b4c7e9cdcfc7836285fb818619164c0799bb7c5 Mon Sep 17 00:00:00 2001 2 | From: Michael Shych 3 | Date: Wed, 29 Nov 2023 13:12:38 +0000 4 | Subject: [PATCH backport 5.10 193/197] platform: mellanox: indicate deferred 5 | I2C bus creation for a hot-plug driver 6 | 7 | It fixes timing issue when during initialization hot-plug driver 8 | attempts to attach a component to I2C bus, which is still not created. 9 | Setting deferred bus parameter will force hot-plug driver to wait 10 | until the bus is available. 11 | 12 | Signed-off-by: Michael Shych 13 | --- 14 | drivers/platform/mellanox/nvsw-sn2201.c | 1 + 15 | 1 file changed, 1 insertion(+) 16 | 17 | diff --git a/drivers/platform/mellanox/nvsw-sn2201.c b/drivers/platform/mellanox/nvsw-sn2201.c 18 | index fd055b2b9280..5ec6902e7698 100644 19 | --- a/drivers/platform/mellanox/nvsw-sn2201.c 20 | +++ b/drivers/platform/mellanox/nvsw-sn2201.c 21 | @@ -520,6 +520,7 @@ struct mlxreg_core_hotplug_platform_data nvsw_sn2201_hotplug = { 22 | .counter = ARRAY_SIZE(nvsw_sn2201_items), 23 | .cell = NVSW_SN2201_SYS_INT_STATUS_OFFSET, 24 | .mask = NVSW_SN2201_CPLD_AGGR_MASK_DEF, 25 | + .deferred_nr = NVSW_SN2201_2ND_MUX_CH3_NR, 26 | }; 27 | 28 | /* SN2201 static devices. */ 29 | -- 30 | 2.20.1 31 | 32 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0002-platform-mellanox-Change-reset_pwr_converter_fail-at.patch: -------------------------------------------------------------------------------- 1 | From c93a5081438b02b5ec4d3fd1fde8e6bf383a2996 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Wed, 8 Feb 2023 08:33:19 +0200 4 | Subject: [PATCH backport 6.1.42 02/85] platform: mellanox: Change 5 | "reset_pwr_converter_fail" attribute 6 | 7 | Change "reset_voltmon_upgrade_fail" attribute name to 8 | "reset_pwr_converter_fail". 9 | 10 | For systems using "mlxplat_mlxcpld_default_ng_regs_io_data", relevant 11 | CPLD 'register.bit' indicates the failure of power converter, while on 12 | older systems same 'register.bit' indicates failure of voltage monitor 13 | devices upgrade failure. 14 | 15 | Signed-off-by: Vadim Pasternak 16 | Reviewed-by: Michael Shych 17 | Link: https://lore.kernel.org/r/20230208063331.15560-3-vadimp@nvidia.com 18 | Signed-off-by: Hans de Goede 19 | --- 20 | drivers/platform/x86/mlx-platform.c | 2 +- 21 | 1 file changed, 1 insertion(+), 1 deletion(-) 22 | 23 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 24 | index 3e4adeb20a7e..c53eca49c47f 100644 25 | --- a/drivers/platform/x86/mlx-platform.c 26 | +++ b/drivers/platform/x86/mlx-platform.c 27 | @@ -3186,7 +3186,7 @@ static struct mlxreg_core_data mlxplat_mlxcpld_default_ng_regs_io_data[] = { 28 | .mode = 0444, 29 | }, 30 | { 31 | - .label = "reset_voltmon_upgrade_fail", 32 | + .label = "reset_pwr_converter_fail", 33 | .reg = MLXPLAT_CPLD_LPC_REG_RST_CAUSE2_OFFSET, 34 | .mask = GENMASK(7, 0) & ~BIT(0), 35 | .mode = 0444, 36 | -- 37 | 2.20.1 38 | 39 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0010-platform-mellanox-mlx-platform-Move-bus-shift-assign.patch: -------------------------------------------------------------------------------- 1 | From efa7f35fe8d6d88cb1aa04ef6839d4de7c7ecd6c Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Wed, 8 Feb 2023 08:33:29 +0200 4 | Subject: [PATCH backport 6.1.42 10/85] platform: mellanox: mlx-platform: Move 5 | bus shift assignment out of the loop 6 | 7 | Move assignment of bus shift setting out of the loop to avoid redundant 8 | operation. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | Reviewed-by: Michael Shych 12 | Link: https://lore.kernel.org/r/20230208063331.15560-13-vadimp@nvidia.com 13 | Signed-off-by: Hans de Goede 14 | --- 15 | drivers/platform/x86/mlx-platform.c | 5 +++-- 16 | 1 file changed, 3 insertions(+), 2 deletions(-) 17 | 18 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 19 | index 60062d9f3b9b..7b6779cdb134 100644 20 | --- a/drivers/platform/x86/mlx-platform.c 21 | +++ b/drivers/platform/x86/mlx-platform.c 22 | @@ -6008,10 +6008,11 @@ static int mlxplat_mlxcpld_verify_bus_topology(int *nr) 23 | shift = *nr - mlxplat_mux_data[i].parent; 24 | mlxplat_mux_data[i].parent = *nr; 25 | mlxplat_mux_data[i].base_nr += shift; 26 | - if (shift > 0) 27 | - mlxplat_hotplug->shift_nr = shift; 28 | } 29 | 30 | + if (shift > 0) 31 | + mlxplat_hotplug->shift_nr = shift; 32 | + 33 | return 0; 34 | } 35 | 36 | -- 37 | 2.20.1 38 | 39 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0011-platform-mellanox-mlx-platform-Initialize-shift-vari.patch: -------------------------------------------------------------------------------- 1 | From cf1b6d5dd2e66e5ce675ad6466cf4af034d0ea3c Mon Sep 17 00:00:00 2001 2 | From: Hans de Goede 3 | Date: Tue, 7 Mar 2023 11:58:42 +0100 4 | Subject: [PATCH backport 6.1.42 11/85] platform: mellanox: mlx-platform: 5 | Initialize shift variable to 0 6 | 7 | Initialize shift variable in mlxplat_mlxcpld_verify_bus_topology() 8 | to 0 to avoid the following compile error: 9 | 10 | drivers/platform/x86/mlx-platform.c:6013 11 | mlxplat_mlxcpld_verify_bus_topology() error: uninitialized symbol 'shift'. 12 | 13 | Fixes: 50b823fdd357 ("platform: mellanox: mlx-platform: Move bus shift assignment out of the loop") 14 | Cc: Vadim Pasternak 15 | Cc: Michael Shych 16 | Signed-off-by: Hans de Goede 17 | Link: https://lore.kernel.org/r/20230307105842.286118-1-hdegoede@redhat.com 18 | --- 19 | drivers/platform/x86/mlx-platform.c | 2 +- 20 | 1 file changed, 1 insertion(+), 1 deletion(-) 21 | 22 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 23 | index 7b6779cdb134..67367f010139 100644 24 | --- a/drivers/platform/x86/mlx-platform.c 25 | +++ b/drivers/platform/x86/mlx-platform.c 26 | @@ -5980,7 +5980,7 @@ MODULE_DEVICE_TABLE(dmi, mlxplat_dmi_table); 27 | static int mlxplat_mlxcpld_verify_bus_topology(int *nr) 28 | { 29 | struct i2c_adapter *search_adap; 30 | - int shift, i; 31 | + int i, shift = 0; 32 | 33 | /* Scan adapters from expected id to verify it is free. */ 34 | *nr = MLXPLAT_CPLD_PHYS_ADAPTER_DEF_NR; 35 | -- 36 | 2.20.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0020-platform-mellanox-mlx-platform-Add-reset-cause-attri.patch: -------------------------------------------------------------------------------- 1 | From 9a981f2c8011e3840eb126404cb77a476f77e2c7 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 24 Jul 2023 05:20:15 +0000 4 | Subject: [PATH backport v6.1 20/32] platform: mellanox: mlx-platform: Add 5 | reset cause attribute 6 | 7 | Link: https://www.spinics.net/lists/platform-driver-x86/msg39638.html 8 | 9 | Extend IO registers description for some system types with reset cause 10 | attribute "reset_swb_dc_dc_pwr_fail" to indicate reset caused by switch 11 | board DC-DC power failure. 12 | 13 | Signed-off-by: Vadim Pasternak 14 | Reviewed-by: Michael Shych 15 | --- 16 | drivers/platform/x86/mlx-platform.c | 6 ++++++ 17 | 1 file changed, 6 insertions(+) 18 | 19 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 20 | index 648b27eff0b0..8e07ed3dc552 100644 21 | --- a/drivers/platform/x86/mlx-platform.c 22 | +++ b/drivers/platform/x86/mlx-platform.c 23 | @@ -3558,6 +3558,12 @@ static struct mlxreg_core_data mlxplat_mlxcpld_default_ng_regs_io_data[] = { 24 | .mask = GENMASK(7, 0) & ~BIT(2), 25 | .mode = 0444, 26 | }, 27 | + { 28 | + .label = "reset_swb_dc_dc_pwr_fail", 29 | + .reg = MLXPLAT_CPLD_LPC_REG_RESET_CAUSE_OFFSET, 30 | + .mask = GENMASK(7, 0) & ~BIT(3), 31 | + .mode = 0444, 32 | + }, 33 | { 34 | .label = "reset_from_asic", 35 | .reg = MLXPLAT_CPLD_LPC_REG_RESET_CAUSE_OFFSET, 36 | -- 37 | 2.20.1 38 | 39 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0022-platform-mellanox-mlx-platform-Modify-power-off-call.patch: -------------------------------------------------------------------------------- 1 | From cca82c5a6efc06d8d9b5c7b8b83054ff09363bc4 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 24 Jul 2023 06:22:13 +0000 4 | Subject: [PATH backport v6.1 22/32] platform: mellanox: mlx-platform: Modify 5 | power off callback 6 | 7 | Link: https://www.spinics.net/lists/platform-driver-x86/msg39639.html 8 | 9 | Extend platform power off callback with kernel_halt() call. 10 | 11 | When powering off, the process involves setting a halt bit in the 12 | register space, which is then activated after a certain delay and 13 | power off auxiliary power. By invoking `kernel_halt()` within this 14 | timeframe, the intention is to facilitate a clean system power-off 15 | sequence. 16 | 17 | Signed-off-by: Vadim Pasternak 18 | Reviewed-by: Michael Shych 19 | --- 20 | drivers/platform/x86/mlx-platform.c | 1 + 21 | 1 file changed, 1 insertion(+) 22 | 23 | diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c 24 | index dce35934cc37..a505f619f337 100644 25 | --- a/drivers/platform/x86/mlx-platform.c 26 | +++ b/drivers/platform/x86/mlx-platform.c 27 | @@ -5539,6 +5539,7 @@ static void mlxplat_poweroff(void) 28 | struct mlxplat_priv *priv = platform_get_drvdata(mlxplat_dev); 29 | 30 | regmap_write(priv->regmap, MLXPLAT_CPLD_LPC_REG_GP1_OFFSET, MLXPLAT_CPLD_HALT_MASK); 31 | + kernel_halt(); 32 | } 33 | 34 | static int __init mlxplat_dmi_default_matched(const struct dmi_system_id *dmi) 35 | -- 36 | 2.20.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0029-platform-mellanox-mlxreg-hotplug-Extend-condition-fo.patch: -------------------------------------------------------------------------------- 1 | From 4c391b315de93194876fb0a5a3faf6b02becf776 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Sun, 19 Mar 2023 15:04:26 +0000 4 | Subject: [PATH backport v6.1 29/32] platform/mellanox: mlxreg-hotplug: Extend 5 | condition for notification callback processing 6 | 7 | Link: https://www.spinics.net/lists/platform-driver-x86/msg39646.html 8 | 9 | Allow processing of notification callback in routine 10 | mlxreg_hotplug_device_create() in case hotplug object is configured 11 | with action "MLXREG_HOTPLUG_DEVICE_NO_ACTION" in case no I2C parent bus 12 | is specified. 13 | 14 | Signed-off-by: Vadim Pasternak 15 | Reviewed-by: Michael Shych 16 | --- 17 | drivers/platform/mellanox/mlxreg-hotplug.c | 2 +- 18 | 1 file changed, 1 insertion(+), 1 deletion(-) 19 | 20 | diff --git a/drivers/platform/mellanox/mlxreg-hotplug.c b/drivers/platform/mellanox/mlxreg-hotplug.c 21 | index 117bc3f395fd..4936cf158ac8 100644 22 | --- a/drivers/platform/mellanox/mlxreg-hotplug.c 23 | +++ b/drivers/platform/mellanox/mlxreg-hotplug.c 24 | @@ -113,7 +113,7 @@ static int mlxreg_hotplug_device_create(struct mlxreg_hotplug_priv_data *priv, 25 | * Return if adapter number is negative. It could be in case hotplug 26 | * event is not associated with hotplug device. 27 | */ 28 | - if (data->hpdev.nr < 0) 29 | + if (data->hpdev.nr < 0 && data->hpdev.action != MLXREG_HOTPLUG_DEVICE_NO_ACTION) 30 | return 0; 31 | 32 | pdata = dev_get_platdata(&priv->pdev->dev); 33 | -- 34 | 2.20.1 35 | 36 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0032-platform_data-mlxreg-Add-field-with-mapped-resource-.patch: -------------------------------------------------------------------------------- 1 | From e24134a55160359b2763e42b650bf8473683627c Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Wed, 9 Nov 2022 09:43:28 +0200 4 | Subject: [PATCH backport 6.1.42 29/85] platform_data/mlxreg: Add field with 5 | mapped resource address 6 | 7 | Add field with PCIe remapped based address for passing it across 8 | relevant platform drivers sharing common system resources. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | include/linux/platform_data/mlxreg.h | 2 ++ 13 | 1 file changed, 2 insertions(+) 14 | 15 | diff --git a/include/linux/platform_data/mlxreg.h b/include/linux/platform_data/mlxreg.h 16 | index a6bd74e29b6b..0b9f81a6f753 100644 17 | --- a/include/linux/platform_data/mlxreg.h 18 | +++ b/include/linux/platform_data/mlxreg.h 19 | @@ -216,6 +216,7 @@ struct mlxreg_core_platform_data { 20 | * @mask_low: low aggregation interrupt common mask; 21 | * @deferred_nr: I2C adapter number must be exist prior probing execution; 22 | * @shift_nr: I2C adapter numbers must be incremented by this value; 23 | + * @addr: mapped resource address; 24 | * @handle: handle to be passed by callback; 25 | * @completion_notify: callback to notify when platform driver probing is done; 26 | */ 27 | @@ -230,6 +231,7 @@ struct mlxreg_core_hotplug_platform_data { 28 | u32 mask_low; 29 | int deferred_nr; 30 | int shift_nr; 31 | + void __iomem *addr; 32 | void *handle; 33 | int (*completion_notify)(void *handle, int id); 34 | }; 35 | -- 36 | 2.20.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0033-i2c-mlxcpld-Allow-driver-to-run-on-ARM64-architectur.patch: -------------------------------------------------------------------------------- 1 | From 836d88c01519a1a004e0c6138fb26a69a95e2ee8 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 7 Nov 2022 12:00:37 +0200 4 | Subject: [PATCH backport 6.1.42 33/85] i2c: mlxcpld: Allow driver to run on 5 | ARM64 architecture 6 | 7 | Extend driver dependency by ARM64 architecture. 8 | 9 | Signed-off-by: Vadim Pasternak 10 | --- 11 | drivers/i2c/busses/Kconfig | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig 15 | index e50f9603d189..9460528c0b1b 100644 16 | --- a/drivers/i2c/busses/Kconfig 17 | +++ b/drivers/i2c/busses/Kconfig 18 | @@ -1363,7 +1363,7 @@ config I2C_ICY 19 | 20 | config I2C_MLXCPLD 21 | tristate "Mellanox I2C driver" 22 | - depends on X86_64 || COMPILE_TEST 23 | + depends on X86_64 || ARM64 || COMPILE_TEST 24 | help 25 | This exposes the Mellanox platform I2C busses to the linux I2C layer 26 | for X86 based systems. 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0040-mlxsw-core-Extend-allowed-list-of-external-cooling-d.patch: -------------------------------------------------------------------------------- 1 | From b5df3db752ef8f40d75e14e49099c9c0be34c550 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Wed, 16 Aug 2023 16:32:30 +0000 4 | Subject: [PATH backport v6.1 40/41] mlxsw: core: Extend allowed list of 5 | external cooling devices for thermal zone binding 6 | 7 | Link: https://github.com/jpirko/linux_mlxsw/commit/667f898094e6cf623cc5234dbda6a684321b80a4 8 | 9 | Extend the list of allowed external cooling devices for thermal zone 10 | binding to include devices of type "emc2305". 11 | 12 | The motivation is to provide support for the system SN2201, which is 13 | equipped with the Spectrum-1 ASIC. 14 | The system's airflow control is managed by the EMC2305 RPM-based PWM 15 | Fan Speed Controller as the cooling device. 16 | 17 | Signed-off-by: Vadim Pasternak 18 | Reviewed-by: Ido Schimmel 19 | --- 20 | drivers/net/ethernet/mellanox/mlxsw/core_thermal.c | 1 + 21 | 1 file changed, 1 insertion(+) 22 | 23 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c b/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 24 | index ef5e61708df3..d0620344da68 100644 25 | --- a/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 26 | +++ b/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 27 | @@ -28,6 +28,7 @@ 28 | /* External cooling devices, allowed for binding to mlxsw thermal zones. */ 29 | static char * const mlxsw_thermal_external_allowed_cdev[] = { 30 | "mlxreg_fan", 31 | + "emc2305", 32 | }; 33 | 34 | enum mlxsw_thermal_trips { 35 | -- 36 | 2.20.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0041-mlxsw-i2c-Utilize-standard-macros-for-dividing-buffe.patch: -------------------------------------------------------------------------------- 1 | From a097327af0b5392d49fe9085fd041ca78b88d3d6 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Wed, 16 Aug 2023 16:32:31 +0000 4 | Subject: [PATH backport v6.1 41/41] mlxsw: i2c: Utilize standard macros for 5 | dividing buffer into chunks 6 | 7 | Link: https://github.com/jpirko/linux_mlxsw/commit/da27e5f14b284ae5e3730df19971618725671dd7 8 | 9 | Use standard macro DIV_ROUND_UP() to determine the number of chunks 10 | required for a given buffer. 11 | 12 | Signed-off-by: Vadim Pasternak 13 | Reviewed-by: Ido Schimmel 14 | --- 15 | drivers/net/ethernet/mellanox/mlxsw/i2c.c | 4 +--- 16 | 1 file changed, 1 insertion(+), 3 deletions(-) 17 | 18 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/i2c.c b/drivers/net/ethernet/mellanox/mlxsw/i2c.c 19 | index d9a71ad9adae..8eb32152ee04 100644 20 | --- a/drivers/net/ethernet/mellanox/mlxsw/i2c.c 21 | +++ b/drivers/net/ethernet/mellanox/mlxsw/i2c.c 22 | @@ -424,9 +424,7 @@ mlxsw_i2c_cmd(struct device *dev, u16 opcode, u32 in_mod, size_t in_mbox_size, 23 | 24 | if (in_mbox) { 25 | reg_size = mlxsw_i2c_get_reg_size(in_mbox); 26 | - num = reg_size / mlxsw_i2c->block_size; 27 | - if (reg_size % mlxsw_i2c->block_size) 28 | - num++; 29 | + num = DIV_ROUND_UP(reg_size, mlxsw_i2c->block_size); 30 | 31 | if (mutex_lock_interruptible(&mlxsw_i2c->cmd.lock) < 0) { 32 | dev_err(&client->dev, "Could not acquire lock"); 33 | -- 34 | 2.20.1 35 | 36 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0046-Extend-driver-to-support-Infineon-Digital-Multi-phas.patch: -------------------------------------------------------------------------------- 1 | From 276c9eae3cf83bb65c575b423c785d0ff37b6da0 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 17 Jul 2023 15:40:08 +0000 4 | Subject: [PATCH backport 6.1.42 46/85] Extend driver to support Infineon 5 | Digital Multi-phase XDPE1A2G7 device. 6 | 7 | From telemetry perspective device is almost the same as XDPE15284, but 8 | does not support READ_EIN (86h) and READ_EOUT (87h) commands. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | drivers/hwmon/pmbus/xdpe152c4.c | 2 ++ 13 | 1 file changed, 2 insertions(+) 14 | 15 | diff --git a/drivers/hwmon/pmbus/xdpe152c4.c b/drivers/hwmon/pmbus/xdpe152c4.c 16 | index b8a36ef73e45..1ef1141ba537 100644 17 | --- a/drivers/hwmon/pmbus/xdpe152c4.c 18 | +++ b/drivers/hwmon/pmbus/xdpe152c4.c 19 | @@ -44,6 +44,7 @@ static int xdpe152_probe(struct i2c_client *client) 20 | } 21 | 22 | static const struct i2c_device_id xdpe152_id[] = { 23 | + {"xdpe1a2g7", 0}, 24 | {"xdpe152c4", 0}, 25 | {"xdpe15284", 0}, 26 | {} 27 | @@ -52,6 +53,7 @@ static const struct i2c_device_id xdpe152_id[] = { 28 | MODULE_DEVICE_TABLE(i2c, xdpe152_id); 29 | 30 | static const struct of_device_id __maybe_unused xdpe152_of_match[] = { 31 | + {.compatible = "infineon,xdpe1a2g7"}, 32 | {.compatible = "infineon,xdpe152c4"}, 33 | {.compatible = "infineon,xdpe15284"}, 34 | {} 35 | -- 36 | 2.20.1 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0047-dt-bindings-trivial-devices-Add-infineon-xdpe1a2g7.patch: -------------------------------------------------------------------------------- 1 | From 62520e9d0ab641b36fb770477792073e6aad4d54 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Mon, 17 Jul 2023 16:24:58 +0000 4 | Subject: [PATCH backport 6.1.42 47/85] dt-bindings: trivial-devices: Add 5 | infineon,xdpe1a2g7 6 | 7 | Add new Infineon Multi-phase Digital VR Controller xdpe1a2g7 8 | 9 | Signed-off-by: Vadim Pasternak 10 | --- 11 | Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 12 | 1 file changed, 2 insertions(+) 13 | 14 | diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml 15 | index 61746755c107..7637390dfe09 100644 16 | --- a/Documentation/devicetree/bindings/trivial-devices.yaml 17 | +++ b/Documentation/devicetree/bindings/trivial-devices.yaml 18 | @@ -145,6 +145,8 @@ properties: 19 | - infineon,tlv493d-a1b6 20 | # Infineon Multi-phase Digital VR Controller xdpe11280 21 | - infineon,xdpe11280 22 | + # Infineon Multi-phase Digital VR Controller xdpe1a2g7 23 | + - infineon,xdpe1a2g7 24 | # Infineon Multi-phase Digital VR Controller xdpe12254 25 | - infineon,xdpe12254 26 | # Infineon Multi-phase Digital VR Controller xdpe12284 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0049-dt-bindings-trivial-devices-Add-mps-mp2891.patch: -------------------------------------------------------------------------------- 1 | From 98b6b44b7b190c664f41e482de4597571e700e7f Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Thu, 13 Jul 2023 06:20:05 +0000 4 | Subject: [PATCH backport 6.1.42 49/85] dt-bindings: trivial-devices: Add 5 | mps,mp2891 6 | 7 | Add new dual-loop, digital, multi-phase controller MP2891 fro 8 | Monolithic Power Systems, Inc. (MPS) to trivial devices. 9 | 10 | Signed-off-by: Vadim Pasternak 11 | --- 12 | Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 13 | 1 file changed, 2 insertions(+) 14 | 15 | diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml 16 | index 7637390dfe09..8e6c0bc60ee3 100644 17 | --- a/Documentation/devicetree/bindings/trivial-devices.yaml 18 | +++ b/Documentation/devicetree/bindings/trivial-devices.yaml 19 | @@ -113,6 +113,8 @@ properties: 20 | - fsl,mpl3115 21 | # MPR121: Proximity Capacitive Touch Sensor Controller 22 | - fsl,mpr121 23 | + # Monolithic Power Systems Inc. multi-phase controller mp2891 24 | + - mps,mp2891 25 | # Monolithic Power Systems Inc. multi-phase controller mp2888 26 | - mps,mp2888 27 | # Monolithic Power Systems Inc. multi-phase controller mp2975 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0063-pinctrl-mlxbf3-set-varaiable-mlxbf3_pmx_funcs-storag.patch: -------------------------------------------------------------------------------- 1 | From 743d3336029ffe2bb38e982a3b572ced243c6d43 Mon Sep 17 00:00:00 2001 2 | From: Tom Rix 3 | Date: Mon, 3 Apr 2023 20:45:01 -0400 4 | Subject: [PATCH] pinctrl: mlxbf3: set varaiable mlxbf3_pmx_funcs 5 | storage-class-specifier to static 6 | 7 | smatch reports 8 | drivers/pinctrl/pinctrl-mlxbf3.c:162:20: warning: symbol 9 | 'mlxbf3_pmx_funcs' was not declared. Should it be static? 10 | 11 | This variable is only used in one file so it should be static. 12 | 13 | Signed-off-by: Tom Rix 14 | Link: https://lore.kernel.org/r/20230404004501.1913144-1-trix@redhat.com 15 | Signed-off-by: Linus Walleij 16 | --- 17 | drivers/pinctrl/pinctrl-mlxbf3.c | 2 +- 18 | 1 file changed, 1 insertion(+), 1 deletion(-) 19 | 20 | diff --git a/drivers/pinctrl/pinctrl-mlxbf3.c b/drivers/pinctrl/pinctrl-mlxbf3.c 21 | index 3698f7bbd88d..d9944e6a0af9 100644 22 | --- a/drivers/pinctrl/pinctrl-mlxbf3.c 23 | +++ b/drivers/pinctrl/pinctrl-mlxbf3.c 24 | @@ -159,7 +159,7 @@ static const struct pinctrl_ops mlxbf3_pinctrl_group_ops = { 25 | static const char * const mlxbf3_gpiofunc_group_names[] = { "swctrl" }; 26 | static const char * const mlxbf3_hwfunc_group_names[] = { "hwctrl" }; 27 | 28 | -struct pinfunction mlxbf3_pmx_funcs[] = { 29 | +static struct pinfunction mlxbf3_pmx_funcs[] = { 30 | PINCTRL_PINFUNCTION("hwfunc", mlxbf3_hwfunc_group_names, 1), 31 | PINCTRL_PINFUNCTION("gpiofunc", mlxbf3_gpiofunc_group_names, 1), 32 | }; 33 | -- 34 | 2.44.0 35 | 36 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0067-gpio-mlxbf3-Fix-error-message.patch: -------------------------------------------------------------------------------- 1 | From d0a9112753248b67e8ad8c09e554866f1a74119c Mon Sep 17 00:00:00 2001 2 | From: Felix Radensky 3 | Date: Mon, 16 Oct 2023 17:21:03 +0000 4 | Subject: [PATCH] gpio: mlxbf3: Fix error message 5 | 6 | Fix the following error message produced by gpio-mlxbf3 driver: 7 | 8 | mlxbf3_gpio MLNXBF33:01: IRQ index 0 not found 9 | 10 | Bluefield-3 SOC has 2 GPIO controllers, but only one of them 11 | is configured in ACPI table to support GPIO interrupts. By using 12 | platform_get_irq_optional() the error message regarding missing 13 | IRQ support is avoided. 14 | 15 | Signed-off-by: Felix Radensky 16 | Reviewed-by: Vadim Pasternak 17 | --- 18 | drivers/gpio/gpio-mlxbf3.c | 2 +- 19 | 1 file changed, 1 insertion(+), 1 deletion(-) 20 | 21 | diff --git a/drivers/gpio/gpio-mlxbf3.c b/drivers/gpio/gpio-mlxbf3.c 22 | index 0a5f241a8..5fe57ae02 100644 23 | --- a/drivers/gpio/gpio-mlxbf3.c 24 | +++ b/drivers/gpio/gpio-mlxbf3.c 25 | @@ -221,7 +221,7 @@ static int mlxbf3_gpio_probe(struct platform_device *pdev) 26 | gc->owner = THIS_MODULE; 27 | gc->add_pin_ranges = mlxbf3_gpio_add_pin_ranges; 28 | 29 | - irq = platform_get_irq(pdev, 0); 30 | + irq = platform_get_irq_optional(pdev, 0); 31 | if (irq >= 0) { 32 | girq = &gs->gc.irq; 33 | gpio_irq_chip_set_chip(girq, &gpio_mlxbf3_irqchip); 34 | -- 35 | 2.14.1 36 | 37 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0068-mmc-sdhci-of-dwcmshc-enable-host-V4-support-for-Blue.patch: -------------------------------------------------------------------------------- 1 | From 95921151e04335e9e2ddf4f294405e64be4ea947 Mon Sep 17 00:00:00 2001 2 | From: Liming Sun 3 | Date: Wed, 11 Jan 2023 13:14:58 -0500 4 | Subject: [PATCH] mmc: sdhci-of-dwcmshc: enable host V4 support for BlueField-3 5 | SoC 6 | 7 | This commit enables SDHCI Host V4 support on Bluefield-3 SoC to be 8 | consistent with the default setting in firmware(UEFI). 9 | 10 | Reviewed-by: David Woods 11 | Signed-off-by: Liming Sun 12 | Acked-by: Adrian Hunter 13 | Link: https://lore.kernel.org/r/990885f566c32ac8e6888ad6b434fb70d1a5d7af.1673460632.git.limings@nvidia.com 14 | Signed-off-by: Ulf Hansson 15 | --- 16 | drivers/mmc/host/sdhci-of-dwcmshc.c | 5 +++++ 17 | 1 file changed, 5 insertions(+) 18 | 19 | diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c 20 | index a7343d4bc50e..49338670c89f 100644 21 | --- a/drivers/mmc/host/sdhci-of-dwcmshc.c 22 | +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c 23 | @@ -528,6 +528,11 @@ static int dwcmshc_probe(struct platform_device *pdev) 24 | goto err_clk; 25 | } 26 | 27 | +#ifdef CONFIG_ACPI 28 | + if (pltfm_data == &sdhci_dwcmshc_bf3_pdata) 29 | + sdhci_enable_v4_mode(host); 30 | +#endif 31 | + 32 | host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY; 33 | 34 | err = sdhci_setup_host(host); 35 | -- 36 | 2.44.0 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0069-mmc-sdhci-of-dwcmshc-add-the-missing-device-table-ID.patch: -------------------------------------------------------------------------------- 1 | From cfd4ea4815d16f7426723a5cb80ee5db811ea1f2 Mon Sep 17 00:00:00 2001 2 | From: Liming Sun 3 | Date: Thu, 2 Feb 2023 10:29:15 -0500 4 | Subject: [PATCH] mmc: sdhci-of-dwcmshc: add the missing device table IDs for 5 | acpi 6 | 7 | This commit adds the missing MODULE_DEVICE_TABLE for acpi, or else 8 | it won't be loaded automatically when compiled as a kernel module. 9 | 10 | Reviewed-by: David Thompson 11 | Signed-off-by: Liming Sun 12 | Link: https://lore.kernel.org/r/f57ad0f8fdf663465bca74467c344dfa305a3199.1675305696.git.limings@nvidia.com 13 | Signed-off-by: Ulf Hansson 14 | --- 15 | drivers/mmc/host/sdhci-of-dwcmshc.c | 1 + 16 | 1 file changed, 1 insertion(+) 17 | 18 | diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c 19 | index 46b1ce7fabdc..d1490469184b 100644 20 | --- a/drivers/mmc/host/sdhci-of-dwcmshc.c 21 | +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c 22 | @@ -451,6 +451,7 @@ static const struct acpi_device_id sdhci_dwcmshc_acpi_ids[] = { 23 | }, 24 | {} 25 | }; 26 | +MODULE_DEVICE_TABLE(acpi, sdhci_dwcmshc_acpi_ids); 27 | #endif 28 | 29 | static int dwcmshc_probe(struct platform_device *pdev) 30 | -- 31 | 2.44.0 32 | 33 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0087-platform-mellanox-indicate-deferred-I2C-bus-creation.patch: -------------------------------------------------------------------------------- 1 | From 1c43cf584d3fd62823dd3b28018481f15a8836c7 Mon Sep 17 00:00:00 2001 2 | From: Michael Shych 3 | Date: Wed, 29 Nov 2023 13:12:38 +0000 4 | Subject: [PATCH 3/4] platform: mellanox: indicate deferred I2C bus creation 5 | for a hot-plug driver 6 | 7 | It fixes timing issue when during initialization hot-plug driver 8 | attempts to attach a component to I2C bus, which is still not created. 9 | Setting deferred bus parameter will force hot-plug driver to wait 10 | until the bus is available. 11 | 12 | Signed-off-by: Michael Shych 13 | --- 14 | drivers/platform/mellanox/nvsw-sn2201.c | 1 + 15 | 1 file changed, 1 insertion(+) 16 | 17 | diff --git a/drivers/platform/mellanox/nvsw-sn2201.c b/drivers/platform/mellanox/nvsw-sn2201.c 18 | index 1a7c45aa4..a3e2bc6d6 100644 19 | --- a/drivers/platform/mellanox/nvsw-sn2201.c 20 | +++ b/drivers/platform/mellanox/nvsw-sn2201.c 21 | @@ -520,6 +520,7 @@ struct mlxreg_core_hotplug_platform_data nvsw_sn2201_hotplug = { 22 | .counter = ARRAY_SIZE(nvsw_sn2201_items), 23 | .cell = NVSW_SN2201_SYS_INT_STATUS_OFFSET, 24 | .mask = NVSW_SN2201_CPLD_AGGR_MASK_DEF, 25 | + .deferred_nr = NVSW_SN2201_2ND_MUX_CH3_NR, 26 | }; 27 | 28 | /* SN2201 static devices. */ 29 | -- 30 | 2.20.1 31 | 32 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/0100-platform-mellanox-mlxreg-io-Extend-number-of-hwmon-a.patch: -------------------------------------------------------------------------------- 1 | From 41b6df4fb187cd6a4bbf501017090821825d3bef Mon Sep 17 00:00:00 2001 2 | From: Oleksandr Shamray 3 | Date: Wed, 5 Feb 2025 14:45:21 +0200 4 | Subject: [PATCH] platform/mellanox: mlxreg-io: Extend number of hwmon 5 | attributes 6 | 7 | Extend maximum number of the attributes, exposed to 'sysfs' to support 8 | new systems having more attributes. 9 | 10 | Signed-off-by: Oleksandr Shamray 11 | Reviewed-by: Vadim Pasternak 12 | 13 | Signed-off-by: Oleksandr Shamray 14 | --- 15 | drivers/platform/mellanox/mlxreg-io.c | 2 +- 16 | 1 file changed, 1 insertion(+), 1 deletion(-) 17 | 18 | diff --git a/drivers/platform/mellanox/mlxreg-io.c b/drivers/platform/mellanox/mlxreg-io.c 19 | index ddc08ab..881182c 100644 20 | --- a/drivers/platform/mellanox/mlxreg-io.c 21 | +++ b/drivers/platform/mellanox/mlxreg-io.c 22 | @@ -18,7 +18,7 @@ 23 | 24 | /* Attribute parameters. */ 25 | #define MLXREG_IO_ATT_SIZE 10 26 | -#define MLXREG_IO_ATT_NUM 96 27 | +#define MLXREG_IO_ATT_NUM 128 28 | 29 | /** 30 | * struct mlxreg_io_priv_data - driver's private data: 31 | -- 32 | 2.8.4 33 | 34 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/8000-mlxsw-Use-weak-reverse-dependencies-for-firmware-fla.patch: -------------------------------------------------------------------------------- 1 | From 646a7ca330eddb18e915380c9e8296a8cbce3c81 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Wed, 20 Oct 2021 09:49:28 +0000 4 | Subject: [PATCH backport 6.1.42 40/85] mlxsw: Use weak reverse dependencies 5 | for firmware flashing selection 6 | 7 | Replace configuration options "select" by "imply". It allows to set 8 | 'MLXFW' symbol to 'n' from a direct dependency or with a visible 9 | prompt. 10 | 11 | User might wish to disable this option in case only 'mlxsw_minimal' is 12 | configured, since it does not support firmware flashing. 13 | 14 | Signed-off-by: Vadim Pasternak 15 | --- 16 | drivers/net/ethernet/mellanox/mlxsw/Kconfig | 2 +- 17 | 1 file changed, 1 insertion(+), 1 deletion(-) 18 | 19 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/Kconfig b/drivers/net/ethernet/mellanox/mlxsw/Kconfig 20 | index a510bf2cff2f..efc7ec8fa33c 100644 21 | --- a/drivers/net/ethernet/mellanox/mlxsw/Kconfig 22 | +++ b/drivers/net/ethernet/mellanox/mlxsw/Kconfig 23 | @@ -6,7 +6,7 @@ 24 | config MLXSW_CORE 25 | tristate "Mellanox Technologies Switch ASICs support" 26 | select NET_DEVLINK 27 | - select MLXFW 28 | + imply MLXFW 29 | select AUXILIARY_BUS 30 | help 31 | This driver supports Mellanox Technologies Switch ASICs family. 32 | -- 33 | 2.20.1 34 | 35 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/8004-mlxsw-minimal-Downstream-Ignore-error-reading-SPAD-r.patch: -------------------------------------------------------------------------------- 1 | From a742d55ed36a0bd3b6346563665b951dad9ad469 Mon Sep 17 00:00:00 2001 2 | From: root 3 | Date: Tue, 5 Apr 2022 21:35:55 +0300 4 | Subject: [PATH backport v6.1 2/3] mlxsw: minimal: Downstream: Ignore error 5 | reading SPAD register 6 | 7 | SPAD register is not supported for IB systems. 8 | 9 | Signed-off-by: Vadim Pasternak 10 | --- 11 | drivers/net/ethernet/mellanox/mlxsw/minimal.c | 2 ++ 12 | 1 file changed, 2 insertions(+) 13 | 14 | diff --git a/drivers/net/ethernet/mellanox/mlxsw/minimal.c b/drivers/net/ethernet/mellanox/mlxsw/minimal.c 15 | index 15116d9305f8..7396b37bc880 100644 16 | --- a/drivers/net/ethernet/mellanox/mlxsw/minimal.c 17 | +++ b/drivers/net/ethernet/mellanox/mlxsw/minimal.c 18 | @@ -53,6 +53,7 @@ struct mlxsw_m_port { 19 | 20 | static int mlxsw_m_base_mac_get(struct mlxsw_m *mlxsw_m) 21 | { 22 | +#if 0 23 | char spad_pl[MLXSW_REG_SPAD_LEN] = {0}; 24 | int err; 25 | 26 | @@ -60,6 +61,7 @@ static int mlxsw_m_base_mac_get(struct mlxsw_m *mlxsw_m) 27 | if (err) 28 | return err; 29 | mlxsw_reg_spad_base_mac_memcpy_from(spad_pl, mlxsw_m->base_mac); 30 | +#endif 31 | return 0; 32 | } 33 | 34 | -- 35 | 2.20.1 36 | 37 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/8006-i2c-mlxcpld-Downstream-WA-to-avoid-error-for-SMBUS-r.patch: -------------------------------------------------------------------------------- 1 | From 63d8c9838b10472bd5e3c6e5a41596d6d44dd1c8 Mon Sep 17 00:00:00 2001 2 | From: Vadim Pasternak 3 | Date: Thu, 10 Aug 2023 12:03:31 +0000 4 | Subject: [PATCH backport 6.1.42 1/1] i2c: mlxcpld: Downstream WA to avoid 5 | error for SMBUS read block command 6 | 7 | Due to hardware bug in I2C controller skip handling SMBUS_READ_BLOCK 8 | command. 9 | Remove this patch after bug in I2C controller is fixed. 10 | 11 | Signed-off-by: Vadim Pasternak 12 | --- 13 | drivers/i2c/busses/i2c-mlxcpld.c | 1 + 14 | 1 file changed, 1 insertion(+) 15 | 16 | diff --git a/drivers/i2c/busses/i2c-mlxcpld.c b/drivers/i2c/busses/i2c-mlxcpld.c 17 | index 2ce2c324ea4f..fd9def469132 100644 18 | --- a/drivers/i2c/busses/i2c-mlxcpld.c 19 | +++ b/drivers/i2c/busses/i2c-mlxcpld.c 20 | @@ -398,6 +398,7 @@ static int mlxcpld_i2c_wait_for_tc(struct mlxcpld_i2c_priv *priv) 21 | mlxcpld_i2c_read_comm(priv, MLXCPLD_LPCI2C_NUM_ADDR_REG, &val, 22 | 1); 23 | if (priv->smbus_block && (val & MLXCPLD_I2C_SMBUS_BLK_BIT)) { 24 | + return 0; 25 | mlxcpld_i2c_read_comm(priv, MLXCPLD_LPCI2C_NUM_DAT_REG, 26 | &datalen, 1); 27 | if (unlikely(datalen > I2C_SMBUS_BLOCK_MAX)) { 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/8012-hwmon-pmbus-Downstream-Workaround-for-psu-attributes.patch: -------------------------------------------------------------------------------- 1 | From b8a552a5eb168b5f53292f639668eec5ece93935 Mon Sep 17 00:00:00 2001 2 | From: Ciju Rajan K 3 | Date: Thu, 10 Oct 2024 14:13:28 +0300 4 | Subject: hwmon: pmbus: Downstream: Workaround for psu attributes 5 | 6 | Starting from kernel 5.12.rc-1, pmbus reads are always 7 | forced down to chip and get the values directly. Driver 8 | doesn't cache the values anymore. 9 | 10 | This behviour change has caused problems in Delta-1.1K 11 | PSUs, on which pmbus registers were not written. 12 | 13 | This patch introduces the driver caching. 14 | 15 | Bugs# 3874682 16 | 17 | Signed-off-by: Ciju Rajan K 18 | --- 19 | drivers/hwmon/pmbus/pmbus_core.c | 2 +- 20 | 1 file changed, 1 insertion(+), 1 deletion(-) 21 | 22 | diff --git a/drivers/hwmon/pmbus/pmbus_core.c b/drivers/hwmon/pmbus/pmbus_core.c 23 | index 7ec049347..464ba9d5a 100644 24 | --- a/drivers/hwmon/pmbus/pmbus_core.c 25 | +++ b/drivers/hwmon/pmbus/pmbus_core.c 26 | @@ -1173,7 +1173,7 @@ static ssize_t pmbus_set_sensor(struct device *dev, 27 | if (ret < 0) 28 | rv = ret; 29 | else 30 | - sensor->data = -ENODATA; 31 | + sensor->data = regval; 32 | mutex_unlock(&data->update_lock); 33 | return rv; 34 | } 35 | -- 36 | 2.44.0 37 | 38 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/9002-regmap-debugfs-FT-Enable-writing-to-the-regmap-debug.patch: -------------------------------------------------------------------------------- 1 | From 6f0440c456b35296046dfdc5625e8c3661e21fc9 Mon Sep 17 00:00:00 2001 2 | From: Felix Radensky 3 | Date: Sun, 20 Nov 2022 15:25:58 +0200 4 | Subject: [PATCH backport 6.1.42 52/85] regmap: debugfs: FT: Enable writing to 5 | the regmap debugfs registers 6 | 7 | Signed-off-by: Felix Radensky 8 | Reviewed-by: Michael Shych 9 | --- 10 | drivers/base/regmap/regmap-debugfs.c | 2 +- 11 | 1 file changed, 1 insertion(+), 1 deletion(-) 12 | 13 | diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c 14 | index 817eda2075aa..e90007f1aeeb 100644 15 | --- a/drivers/base/regmap/regmap-debugfs.c 16 | +++ b/drivers/base/regmap/regmap-debugfs.c 17 | @@ -290,7 +290,7 @@ static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf, 18 | count, ppos); 19 | } 20 | 21 | -#undef REGMAP_ALLOW_WRITE_DEBUGFS 22 | +#define REGMAP_ALLOW_WRITE_DEBUGFS 23 | #ifdef REGMAP_ALLOW_WRITE_DEBUGFS 24 | /* 25 | * This can be dangerous especially when we have clients such as 26 | -- 27 | 2.20.1 28 | 29 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/dvs/.placeholder: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/recipes-kernel/linux/linux-6.1/dvs/.placeholder -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/nvos/.placeholder: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/recipes-kernel/linux/linux-6.1/nvos/.placeholder -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/opt/.placeholder: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/recipes-kernel/linux/linux-6.1/opt/.placeholder -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0012-platform-mellanox-Fix-order-in-exit-flow.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=fixes&id=8e3938cff0191c810b2abd827313c090fe09d166 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0013-platform-mellanox-mlx-platform-Fix-signals-polarity-.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=fixes&id=3c91d7e8c64f75c63da3565d16d5780320bd5d76 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0014-platform-mellanox-mlx-platform-Modify-graceful-shutd.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=fixes&id=9f8ccdb5088bd03062d9ad9c0f6abf600cbed8e8 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0015-platform-mellanox-Change-register-offset-addresses.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=fixes&id=d66a8aab7dc36c975bbaa6aa74cf7445878e7c69 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0016-platform-mellanox-Add-new-attributes.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=4d54f55a4db34fa8fad104a20c64ec9cb2408e10 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0017-platform-mellanox-Add-field-upgrade-capability-regis.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=55e31928f30eae90cbd26cbffaa1208c69397e1f 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0018-platform-mellanox-Modify-reset-causes-description.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=59b96ea4c220f41837b183697def20aa9ec89857 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0019-platform-mellanox-mlx-platform-Modify-health-and-pow.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=0d228ff9c1c73dffa94cb785e308ca7d649aa25e 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0020-platform-mellanox-mlx-platform-Add-reset-cause-attri.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=7d3d0fe4e96df4e0812f5054ed36af466f547cdb 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0021-platform-mellanox-mlx-platform-add-support-for-addit.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=3d0593c6336cbc6d1b77473e9512cdf0353a4644 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0022-platform-mellanox-mlx-platform-Modify-power-off-call.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=75e09ab42066b93ec30ba1a9d5d252e40916320a 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0023-platform-mellanox-Cosmetic-changes.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=da9a7f6ef0abcff12d2fc0381d7c0a7ac2c96c6d 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0024-platform-mellanox-mlx-platform-Add-reset-callback.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=b411dc55a735337a9d7c7dad605bad79e7266104 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0025-platform-mellanox-mlx-platform-Prepare-driver-to-all.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=222954493cafda3b25aa1c467c9e5eb77474abb9 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0026-platform-mellanox-mlx-platform-Introduce-ACPI-init-f.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=1316e0af2dc08591bed4715e887a1dbf46efd29b 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0027-platform-mellanox-mlx-platform-Get-interrupt-line-th.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=ada9ecc33842ec89bb091c0967673c5de3357429 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0028-platform-mellanox-Add-initial-support-for-PCIe-based.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=02daa222fbdd6afe52c25e5c2894d53946a4260d 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0030-platform-mellanox-nvsw-sn2201-change-fans-i2c-busses.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=e2aabb7cd4dd145c07d6a66407b01c635710849e 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0033-i2c-mlxcpld-Allow-driver-to-run-on-ARM64-architectur.patch.txt: -------------------------------------------------------------------------------- 1 | https://patchwork.ozlabs.org/project/linux-i2c/patch/20230822185137.36215-2-vadimp@nvidia.com/ 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0034-i2c-mlxcpld-Add-support-for-extended-transaction-len.patch.txt: -------------------------------------------------------------------------------- 1 | https://patchwork.ozlabs.org/project/linux-i2c/patch/20230822185137.36215-3-vadimp@nvidia.com/ 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0036-mlxsw-i2c-Fix-chunk-size-setting-in-output-mailbox-b.patch.txt: -------------------------------------------------------------------------------- 1 | https://lore.kernel.org/all/5745ac4931a39021987addbabd38ca9aec0ab4dd.1692882703.git.petrm@nvidia.com/T/#m6cb99df2e9ab49df8ad4283a780a1a79ae47121e 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0037-mlxsw-i2c-Limit-single-transaction-buffer-size.patch.txt: -------------------------------------------------------------------------------- 1 | https://lore.kernel.org/all/5745ac4931a39021987addbabd38ca9aec0ab4dd.1692882703.git.petrm@nvidia.com/T/#m21281b772a59128afe1b4aedff01d67513207ebd 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0038-mlxsw-core_hwmon-Adjust-module-label-names-based-on-.patch: -------------------------------------------------------------------------------- 1 | https://lore.kernel.org/all/5745ac4931a39021987addbabd38ca9aec0ab4dd.1692882703.git.petrm@nvidia.com/T/#m2572b790e44869be30212b3b4538573b94ee4406 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0039-mlxsw-reg-Limit-MTBR-register-payload-to-a-single-da.patch.txt: -------------------------------------------------------------------------------- 1 | https://github.com/jpirko/linux_mlxsw/commit/b7dcef023af55d2385c9ab1869f937769dffdb35 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0040-mlxsw-core-Extend-allowed-list-of-external-cooling-d.patch.txt: -------------------------------------------------------------------------------- 1 | https://github.com/jpirko/linux_mlxsw/commit/667f898094e6cf623cc5234dbda6a684321b80a4 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0041-mlxsw-i2c-Utilize-standard-macros-for-dividing-buffe.patch.txt: -------------------------------------------------------------------------------- 1 | https://github.com/jpirko/linux_mlxsw/commit/da27e5f14b284ae5e3730df19971618725671dd7 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0043-hwmon-mlxreg-fan-Extend-number-of-supporetd-fans.patch.txt: -------------------------------------------------------------------------------- 1 | https://patchwork.kernel.org/project/linux-hwmon/patch/20230824164006.26868-1-vadimp@nvidia.com/ 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0045-leds-mlxreg-Remove-code-for-amber-LED-colour.patch.txt: -------------------------------------------------------------------------------- 1 | https://www.spinics.net/lists/linux-leds/msg25090.html 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0048-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2891-c.patch.txt: -------------------------------------------------------------------------------- 1 | https://patchwork.kernel.org/project/linux-hwmon/patch/TYZPR03MB7130A7F41D61BFB611DDF0C7FA479@TYZPR03MB7130.apcprd03.prod.outlook.com/ 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0050-leds-mlxreg-Skip-setting-LED-color-during-initializa.patch.txt: -------------------------------------------------------------------------------- 1 | https://www.spinics.net/lists/linux-leds/msg25091.html 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0052-i2c-mux-Add-register-map-based-mux-driver.patch.txt: -------------------------------------------------------------------------------- 1 | https://patchwork.ozlabs.org/project/linux-i2c/patch/20230823155332.48648-2-vadimp@nvidia.com/ 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0077-UBUNTU-SAUCE-mlx-bootctl-support-icm-carveout-eeprom.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=b18a97ed9006cac03105dde68e000b8e7468848a 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-6.1/patchwork/0078-UBUNTU-SAUCE-mlxbf-bootctl-support-SMC-call-for-sett.patch.txt: -------------------------------------------------------------------------------- 1 | https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=review-hans&id=e3205d41737af1122bdefdd1114289e71c6c4910 2 | -------------------------------------------------------------------------------- /rpm/gen_rpm.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | # Find the list of files 5 | 6 | # Find version 7 | RPM_VERSION=`grep "hw-management" ../debian/changelog | cut -d "(" -f2 | cut -d ")" -f1` 8 | 9 | # Build RPM 10 | rpmbuild -ba --define="version ${RPM_VERSION}" hw-management.spec 11 | -------------------------------------------------------------------------------- /usr/etc/hw-management-fast-sysfs-monitor/fast_sysfs_labels.json: -------------------------------------------------------------------------------- 1 | [ 2 | "/var/run/hw-management/eeprom/vpd_info" 3 | ] 4 | -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/p2317_sensors.conf: -------------------------------------------------------------------------------- 1 | ################################################################################## 2 | # Copyright (c) 2020 - 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. 3 | # 4 | # Platform specific sensors config for P2317 5 | ################################################################################## 6 | 7 | 8 | # Temperature sensors 9 | bus "i2c-15" "i2c-1-mux (chan_id 6)" 10 | chip "tmp102-i2c-15-49" 11 | label temp1 "Ambient COMEX Temp" 12 | 13 | # Memory sensors 14 | bus "i2c-0" "SMBus I801 adapter at efa0" 15 | chip "jc42-i2c-0-1c" 16 | label temp1 "Ambient SODIMM Temp" 17 | 18 | chip "jc42-i2c-0-1a" 19 | label temp1 "Ambient SODIMM Temp" 20 | 21 | # NVME 22 | nvme-pci-0600 23 | label temp1 "Composite NVME Temp" 24 | ignore temp2 25 | ignore temp3 26 | 27 | # PCH 28 | pch_cannonlake-virtual-0 29 | label temp1 "PCH Temp" 30 | 31 | # Power controllers 32 | bus "i2c-15" "i2c-1-mux (chan_id 6)" 33 | chip "mp2975-i2c-*-6b" 34 | label in1 "PMIC-6 PSU 12V Rail (vin)" 35 | label in2 "PMIC-6 COMEX VCORE (out1)" 36 | label in3 "PMIC-6 COMEX VCCSA (out2)" 37 | label temp1 "PMIC-6 Temp" 38 | label power1 "PMIC-6 COMEX Pwr (pin)" 39 | label power2 "PMIC-6 COMEX Pwr (pout)" 40 | label curr1 "PMIC-6 COMEX Curr (iin)" 41 | label curr2 "PMIC-6 COMEX VCORE Rail Curr (out1)" 42 | label curr3 "PMIC-6 COMEX VCCSA Rail Curr (out2)" 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI130.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI130.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI151.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI151.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI157.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI157.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI158.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI158.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI162.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI162.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI166.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI166.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI166_1.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI166_1.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI167.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI167.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI167_1.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI167_1.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI169.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI169.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI169_1.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI169_1.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI170.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI170.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI170_1.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI170_1.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI173.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI173.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI175.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI175.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI177.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI177.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-sensors/ui_tree_HI178.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/etc/hw-management-sensors/ui_tree_HI178.tar.gz -------------------------------------------------------------------------------- /usr/etc/hw-management-thermal/tc_config_not_supported.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "unsupported platform", 3 | "platform_support" : 0 4 | } 5 | -------------------------------------------------------------------------------- /usr/etc/hw-management-virtual/HI122/psu_vpd: -------------------------------------------------------------------------------- 1 | MFR_NAME: Murata-PS 2 | CHSUM_FIELD: 0xea 0xed 3 | PN_VPD_FIELD: MTEF-PSF-AC-F 4 | SN_VPD_FIELD: MT2006X19208 5 | REV_VPD_FIELD: A1 6 | MFG_DATE_FIELD: 18/02/20 7 | CAPACITY: 1500 8 | MIN_RPM: 0 9 | MAX_RPM: 27500 10 | FEED: AC 11 | CALC_CRC: 0xea 0xed 12 | -------------------------------------------------------------------------------- /usr/etc/hw-management-virtual/HI130/psu_vpd: -------------------------------------------------------------------------------- 1 | MFR_NAME: Murata-PS 2 | CHSUM_FIELD: 0xe0 0xed 3 | PN_VPD_FIELD: MTEF-PSF-AC-K 4 | SN_VPD_FIELD: MT2248XZ00UU 5 | REV_VPD_FIELD: A5 6 | MFG_DATE_FIELD: 09/05/23 7 | CAPACITY: 2000 8 | MIN_RPM: 0 9 | MAX_RPM: 27500 10 | FEED: AC 11 | CALC_CRC: 0xe0 0xed 12 | -------------------------------------------------------------------------------- /usr/etc/hw-management-virtual/HI144/psu_vpd: -------------------------------------------------------------------------------- 1 | MFR_NAME: DELTA 2 | CHSUM_FIELD: 0xae 0x3b 3 | PN_VPD_FIELD: 930-9SPSU-00RA-00B 4 | SN_VPD_FIELD: MT2307XZ02NQ 5 | REV_VPD_FIELD: A2 6 | MFG_DATE_FIELD: 04/19/23 7 | CAPACITY: 3000 8 | MIN_RPM: 0 9 | MAX_RPM: 32500 10 | FEED: AC 11 | CALC_CRC: 0xae 0x3b 12 | -------------------------------------------------------------------------------- /usr/etc/hw-management-virtual/HI147/psu_vpd: -------------------------------------------------------------------------------- 1 | MFR_NAME: DELTA 2 | CHSUM_FIELD: 0xae 0x3b 3 | PN_VPD_FIELD: 930-9SPSU-00RA-00B 4 | SN_VPD_FIELD: MT2307XZ02NQ 5 | REV_VPD_FIELD: A2 6 | MFG_DATE_FIELD: 04/19/23 7 | CAPACITY: 3000 8 | MIN_RPM: 0 9 | MAX_RPM: 32500 10 | FEED: AC 11 | CALC_CRC: 0xae 0x3b 12 | -------------------------------------------------------------------------------- /usr/etc/hw-management-virtual/HI157/psu_vpd: -------------------------------------------------------------------------------- 1 | MFR_NAME: Murata-PS 2 | CHSUM_FIELD: 0xe0 0xed 3 | PN_VPD_FIELD: MTEF-PSF-AC-K 4 | SN_VPD_FIELD: MT2248XZ00UU 5 | REV_VPD_FIELD: A5 6 | MFG_DATE_FIELD: 09/05/23 7 | CAPACITY: 2000 8 | MIN_RPM: 0 9 | MAX_RPM: 27500 10 | FEED: AC 11 | CALC_CRC: 0xe0 0xed 12 | -------------------------------------------------------------------------------- /usr/etc/hw-management-virtual/HI158/psu_vpd: -------------------------------------------------------------------------------- 1 | MFR_NAME: Murata-PS 2 | CHSUM_FIELD: 0xe0 0xed 3 | PN_VPD_FIELD: MTEF-PSF-AC-K 4 | SN_VPD_FIELD: MT2248XZ00UU 5 | REV_VPD_FIELD: A5 6 | MFG_DATE_FIELD: 09/05/23 7 | CAPACITY: 2000 8 | MIN_RPM: 0 9 | MAX_RPM: 27500 10 | FEED: AC 11 | CALC_CRC: 0xe0 0xed 12 | -------------------------------------------------------------------------------- /usr/etc/hw-management-virtual/HI160/psu_vpd: -------------------------------------------------------------------------------- 1 | MFR_NAME: Murata-PS 2 | CHSUM_FIELD: 0xea 0xed 3 | PN_VPD_FIELD: MTEF-PSF-AC-F 4 | SN_VPD_FIELD: MT2006X19208 5 | REV_VPD_FIELD: A1 6 | MFG_DATE_FIELD: 18/02/20 7 | CAPACITY: 1500 8 | MIN_RPM: 0 9 | MAX_RPM: 27500 10 | FEED: AC 11 | CALC_CRC: 0xea 0xed 12 | -------------------------------------------------------------------------------- /usr/etc/hw-management-virtual/HI166/thermal: -------------------------------------------------------------------------------- 1 | sodimm1_temp_crit 95000 2 | sodimm1_temp_crit_alarm 0 3 | sodimm1_temp_crit_hyst 89000 4 | sodimm1_temp_input 32000 5 | sodimm1_temp_max 85000 6 | sodimm1_temp_max_alarm 0 7 | sodimm1_temp_max_hyst 79000 8 | sodimm1_temp_min 0 9 | sodimm1_temp_min_alarm 0 10 | 11 | pdb_hotswap1_temp1_crit 255937 12 | pdb_hotswap1_temp1_input 30000 13 | pdb_hotswap1_temp1_max 255937 14 | 15 | comex_voltmon1_temp1_crit 120000 16 | comex_voltmon1_temp1_input 42000 17 | comex_voltmon2_temp1_crit 115000 18 | comex_voltmon2_temp1_input 43000 19 | comex_voltmon2_temp1_max 105000 20 | 21 | cpu_pack 42625 22 | cpu_pack_crit 100000 23 | cpu_pack_max 95000 24 | -------------------------------------------------------------------------------- /usr/etc/hw-management-virtual/HI171/psu_vpd: -------------------------------------------------------------------------------- 1 | MFR_NAME: Murata-PS 2 | CHSUM_FIELD: 0xe0 0xed 3 | PN_VPD_FIELD: MTEF-PSF-AC-K 4 | SN_VPD_FIELD: MT2248XZ00UU 5 | REV_VPD_FIELD: A5 6 | MFG_DATE_FIELD: 09/05/23 7 | CAPACITY: 2000 8 | MIN_RPM: 0 9 | MAX_RPM: 27500 10 | FEED: AC 11 | CALC_CRC: 0xe0 0xed 12 | -------------------------------------------------------------------------------- /usr/etc/hw-management-virtual/HI172/psu_vpd: -------------------------------------------------------------------------------- 1 | MFR_NAME: Murata-PS 2 | CHSUM_FIELD: 0xe0 0xed 3 | PN_VPD_FIELD: MTEF-PSF-AC-K 4 | SN_VPD_FIELD: MT2248XZ00UU 5 | REV_VPD_FIELD: A5 6 | MFG_DATE_FIELD: 09/05/23 7 | CAPACITY: 2000 8 | MIN_RPM: 0 9 | MAX_RPM: 27500 10 | FEED: AC 11 | CALC_CRC: 0xe0 0xed 12 | -------------------------------------------------------------------------------- /usr/etc/hw-management-virtual/HI176/thermal: -------------------------------------------------------------------------------- 1 | sodimm1_temp_crit 95000 2 | sodimm1_temp_crit_alarm 0 3 | sodimm1_temp_crit_hyst 89000 4 | sodimm1_temp_input 32000 5 | sodimm1_temp_max 85000 6 | sodimm1_temp_max_alarm 0 7 | sodimm1_temp_max_hyst 79000 8 | sodimm1_temp_min 0 9 | sodimm1_temp_min_alarm 0 10 | 11 | pdb_hotswap1_temp1_crit 255937 12 | pdb_hotswap1_temp1_input 30000 13 | pdb_hotswap1_temp1_max 255937 14 | 15 | comex_voltmon1_temp1_crit 120000 16 | comex_voltmon1_temp1_input 42000 17 | comex_voltmon2_temp1_crit 115000 18 | comex_voltmon2_temp1_input 43000 19 | comex_voltmon2_temp1_max 105000 20 | 21 | cpu_pack 42625 22 | cpu_pack_crit 100000 23 | cpu_pack_max 95000 24 | -------------------------------------------------------------------------------- /usr/etc/logrotate.d/udev: -------------------------------------------------------------------------------- 1 | "/var/log/udev_events.log" { 2 | size 1M 3 | rotate 3 4 | olddir /var/log/ 5 | copytruncate 6 | compress 7 | delaycompress 8 | dateext 9 | dateformat -%Y%m%d%H%M%S 10 | missingok 11 | notifempty 12 | } 13 | -------------------------------------------------------------------------------- /usr/etc/modprobe.d/hw-management-arm64.conf: -------------------------------------------------------------------------------- 1 | ################################################################################## 2 | # Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. 3 | # 4 | options at24 io_limit=32 5 | blacklist i2c_ismt 6 | blacklist i2c_designware_platform 7 | blacklist i2c_designware_core 8 | blacklist ee1004 9 | blacklist nvidia 10 | blacklist nvidia_modeset 11 | blacklist nvidia_drm 12 | blacklist pcspkr 13 | blacklist i2c_piix4 14 | blacklist mlxbf_tmfifo 15 | blacklist cfg80211 16 | -------------------------------------------------------------------------------- /usr/etc/modprobe.d/hw-management.conf: -------------------------------------------------------------------------------- 1 | ################################################################################## 2 | # Copyright (c) 2018 - 2-21, NVIDIA CORPORATION & AFFILIATES. All rights reserved. 3 | # 4 | options at24 io_limit=32 5 | options gpio_ich gpiobase=0 6 | options i2c_i801 disable_features=0x10 7 | blacklist i2c_ismt 8 | blacklist i2c_designware_platform 9 | blacklist i2c_designware_core 10 | blacklist ee1004 11 | blacklist nvidia 12 | blacklist nvidia_modeset 13 | blacklist nvidia_drm 14 | blacklist pcspkr 15 | blacklist i2c_piix4 16 | blacklist i2c_asf 17 | blacklist cfg80211 18 | blacklist cdc_subset 19 | -------------------------------------------------------------------------------- /usr/etc/modules-load.d/05-hw-management-modules-arm64.conf: -------------------------------------------------------------------------------- 1 | ################################################################################## 2 | # Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. 3 | # 4 | i2c-dev 5 | pmbus 6 | tps53679 7 | max1363 8 | lm75 9 | tmp102 10 | ledtrig-timer 11 | at24 12 | xdpe12284 13 | mp2975 14 | mp2888 15 | i2c-mux-pca954x 16 | emc2305 17 | ti-ads1015 18 | powr1220 19 | gpio-pca953x 20 | pmbus 21 | i2c-mux-mlxcpld 22 | lm25066 23 | mlxbf-ptm 24 | -------------------------------------------------------------------------------- /usr/etc/modules-load.d/05-hw-management-modules.conf: -------------------------------------------------------------------------------- 1 | ################################################################################## 2 | # Copyright (c) 2018 - 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. 3 | # 4 | i2c-i801 5 | i2c-dev 6 | pmbus 7 | tps53679 8 | max1363 9 | lm75 10 | tmp102 11 | ledtrig-timer 12 | at24 13 | xdpe12284 14 | mp2975 15 | mp2888 16 | emc2305 17 | ti-ads1015 18 | powr1220 19 | pmbus 20 | i2c-mux-mlxcpld 21 | lm25066 22 | mp2855 23 | mp2891 24 | mp29502 25 | -------------------------------------------------------------------------------- /usr/usr/bin/__init.py__: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/usr/bin/__init.py__ -------------------------------------------------------------------------------- /usr/usr/bin/hw-management-kexec-notifier.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | PLAT_KEXEC_NOTIFY=/var/run/hw-management/system/kexec_activated 4 | 5 | if [ "$1" = "kexec" ] && [ -f ${PLAT_KEXEC_NOTIFY} ]; then 6 | echo 0 > ${PLAT_KEXEC_NOTIFY} 7 | fi 8 | 9 | -------------------------------------------------------------------------------- /usr/usr/bin/iorw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mellanox/hw-mgmt/1c42cfea61892d419c61430593343ba2fe5920d5/usr/usr/bin/iorw --------------------------------------------------------------------------------