Skip to content

Commit 7ee50c9

Browse files
keboliusaiarcot895
andauthored
[Mellanox] Upstream kernel patches with HW-MGMT 7.0030.1011 (#327)
* Intgerate HW-MGMT 7.0030.1010 Changes ## Patch List * 0002-i2c-mlxcpld-Decrease-polling-time-for-performance-im.patch : torvalds/linux@cb9744178f33 * 0003-i2c-mlxcpld-Add-support-for-I2C-bus-frequency-settin.patch : torvalds/linux@66b0c2846ba8 * 0005-i2c-mux-mlxcpld-Move-header-file-out-of-x86-realm.patch : torvalds/linux@98d29c410475 * 0006-i2c-mux-mlxcpld-Convert-driver-to-platform-driver.patch : torvalds/linux@84af1b168c50 * 0007-i2c-mux-mlxcpld-Prepare-mux-selection-infrastructure.patch : torvalds/linux@81566938083a * 0008-i2c-mux-mlxcpld-Get-rid-of-adapter-numbers-enforceme.patch : torvalds/linux@cae5216387d1 * 0009-i2c-mux-mlxcpld-Extend-driver-to-support-word-addres.patch : torvalds/linux@c52a1c5f5db5 * 0011-i2c-mux-mlxcpld-Add-callback-to-notify-mux-creation-.patch : torvalds/linux@a39bd92e92b9 * 0012-hwmon-mlxreg-fan-Add-support-for-fan-drawers-capabil.patch : torvalds/linux@f7bf7eb2d734 * 0013-hwmon-pmbus-shrink-code-and-remove-pmbus_do_remove.patch : torvalds/linux@3bce071a301f * 0015-mlxsw-core-Remove-critical-trip-points-from-thermal-.patch : torvalds/linux@d567fd6e82fa * 0017-mlxsw-reg-Extend-MTMP-register-with-new-threshold-fi.patch : torvalds/linux@314dbb19f95b * 0018-mlxsw-thermal-Add-function-for-reading-module-temper.patch : torvalds/linux@e57977b34ab5 * 0019-mlxsw-thermal-Read-module-temperature-thresholds-usi.patch : torvalds/linux@72a64c2fe9d8 * 0020-mlxsw-thermal-Fix-null-dereference-of-NULL-temperatu.patch : torvalds/linux@f3b5a8907543 * 0023-ethtool-Allow-network-drivers-to-dump-arbitrary-EEPR.patch : torvalds/linux@c781ff12a2f3 * 0024-net-ethtool-Export-helpers-for-getting-EEPROM-info.patch : torvalds/linux@95dfc7effd88 * 0025-ethtool-Add-fallback-to-get_module_eeprom-from-netli.patch : torvalds/linux@96d971e307cc * 0026-mlxsw-core-Add-support-for-module-EEPROM-read-by-pag.patch : torvalds/linux@1e27b9e40803 * 0027-ethtool-Decrease-size-of-module-EEPROM-get-policy-ar.patch : torvalds/linux@f5fe211d13af * 0028-ethtool-Use-kernel-data-types-for-internal-EEPROM-st.patch : torvalds/linux@b8c48be23c2d * 0029-ethtool-Validate-module-EEPROM-length-as-part-of-pol.patch : torvalds/linux@0dc7dd02ba7a * 0030-ethtool-Validate-module-EEPROM-offset-as-part-of-pol.patch : torvalds/linux@88f9a87afeee * 0031-mlxsw-core_env-Read-module-temperature-thresholds-us.patch : torvalds/linux@befc2048088a * 0035-hwmon-pmbus-Increase-maximum-number-of-phases-per-pa.patch : torvalds/linux@e4db7719d037 * 0036-hwmon-pmbus-Add-support-for-MPS-Multi-phase-mp2888-c.patch : torvalds/linux@0c1acde1d3d0 * 0039-ethtool-Fix-NULL-pointer-dereference-during-module-E.patch : torvalds/linux@51c96a561f24 * 0040-phy-sfp-add-netlink-SFP-support-to-generic-SFP-code.patch : torvalds/linux@d740513f05a2 * 0046-i2c-mlxcpld-Reduce-polling-time-for-performance-impr.patch : torvalds/linux@669b2e4aa1a8 * 0047-i2c-mlxcpld-Allow-flexible-polling-time-setting-for-.patch : torvalds/linux@712d6617d0a2 * 0053-mlxsw-core-Avoid-creation-virtual-hwmon-objects-by-t.patch : torvalds/linux@f8a36880f474 * 0054-mlxsw-minimal-Simplify-method-of-modules-number-dete.patch : * 0055-platform_data-mlxreg-Add-new-type-to-support-modular.patch : torvalds/linux@aafa1cafedca * 0056-platform-x86-mlx-platform-Add-initial-support-for-ne.patch : torvalds/linux@a5d8f57edfb4 * 0057-platform-mellanox-mlxreg-hotplug-Extend-logic-for-ho.patch : torvalds/linux@bb1023b6da37 * 0058-platform-x86-mlx-platform-Configure-notifier-callbac.patch : torvalds/linux@67eb006cc1d1 * 0059-platform-mellanox-mlxreg-io-Extend-number-of-hwmon-a.patch : torvalds/linux@bbfd79c68170 * 0060-platform_data-mlxreg-Add-new-field-for-secured-acces.patch : torvalds/linux@9d93d7877c91 * 0061-platform-mellanox-mlxreg-lc-Add-initial-support-for-.patch : torvalds/linux@62f9529b8d5c * 0062-Documentation-ABI-Add-new-attributes-for-mlxreg-io-s.patch : torvalds/linux@5b0a315c3db5 * 0063-Documentation-ABI-Add-new-line-card-attributes-for-m.patch : torvalds/linux@164e32717cbd * 0064-hwmon-mlxreg-fan-Extend-the-maximum-number-of-tachom.patch : torvalds/linux@bc8de07e8812 * 0065-platform-x86-mlx-platform-Extend-FAN-and-LED-config-.patch : torvalds/linux@9045512ca6cd * 0066-platform-x86-mlx-platform-Add-new-attributes-for-Cof.patch : torvalds/linux@4289fd4ad43a * 0067-platform-mellanox-Add-dedicated-match-for-system-typ.patch : * 0070-mlxsw-core_env-Defer-handling-of-module-temperature-.patch : torvalds/linux@163f3d2dd01c * 0071-mlxsw-core_env-Convert-module_info_lock-to-a-mutex.patch : torvalds/linux@bd6e43f5953d * 0076-ethtool-Add-ability-to-control-transceiver-modules-p.patch : torvalds/linux@353407d917b2 * 0077-mlxsw-reg-Add-Port-Module-Memory-Map-Properties-regi.patch : torvalds/linux@f10ba086f7e3 * 0078-mlxsw-reg-Add-Management-Cable-IO-and-Notifications-.patch : torvalds/linux@fc53f5fb8037 * 0079-mlxsw-Add-ability-to-control-transceiver-modules-pow.patch : torvalds/linux@0455dc50bcca * 0081-platform-x86-mlx-platform-Add-support-for-multiply-c.patch : torvalds/linux@249606d37d20 * 0091-platform-x86-mlx-platform-Add-support-for-new-system.patch : torvalds/linux@4616e54795cc * 0092-platform-mellanox-mlxreg-lc-fix-error-code-in-mlxreg.patch : torvalds/linux@287273a80be5 * 0093-hwmon-mlxreg-fan-Extend-driver-to-support-multiply-P.patch : torvalds/linux@150f1e0c6fa8 * 0094-hwmon-mlxreg-fan-Extend-driver-to-support-multiply-c.patch : torvalds/linux@d7efb2ebc7b3 * 0095-hwmon-mlxreg-fan-Fix-out-of-bounds-read-on-array-fan.patch : torvalds/linux@000cc5bc49aa * 0096-hwmon-mlxreg-fan-Modify-PWM-connectivity-validation.patch : torvalds/linux@b1c24237341f * 0097-hwmon-mlxreg-fan-Support-distinctive-names-per-diffe.patch : torvalds/linux@b2be2422c0c9 * 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 : * 0152-mlxsw-i2c-Prevent-transaction-execution-for-spec.patch : * 0160-platform-mellanox-Introduce-support-for-COMe-managem.patch : torvalds/linux@6995e711b69c * 0163-platform-mellanox-Introduce-support-for-rack-manager.patch : torvalds/linux@f8dacbf7da2e * 0166-DS-leds-leds-mlxreg-Send-udev-event-from-leds-mlxreg.patch : * 0173-mlxsw-core-Add-support-for-OSFP-transceiver-modules.patch : torvalds/linux@f881c4ab37db * 0176-platform-mellanox-fix-reset_pwr_converter_fail-attri.patch : torvalds/linux@488f0fca0db0 * 0177-Documentation-ABI-fix-description-of-fix-reset_pwr_c.patch : torvalds/linux@e7210563432a * 0178-platform-mellanox-Introduce-support-for-next-generat.patch : torvalds/linux@fcf3790b9b63 * 0186-platform-mellanox-mlxreg-hotplug-Allow-more-flexible.patch : torvalds/linux@26e118ea98cf * 0195-platform-x86-MLX_PLATFORM-select-REGMAP-instead-of-d.patch : * 0201-i2c-mlxbf-incorrect-base-address-passed-during-io-wr.patch : torvalds/linux@2a5be6d1340c * 0202-i2c-mlxbf-prevent-stack-overflow-in-mlxbf_i2c_smbus_.patch : torvalds/linux@de24aceb07d4 * 0204-i2c-mlxbf-Fix-frequency-calculation.patch : torvalds/linux@37f071ec327b * 0205-i2c-mlxbf-support-lock-mechanism.patch : torvalds/linux@86067ccfa142 * 0265-hwmon-mlxreg-fan-Return-zero-speed-for-broken-fan.patch : * 0285-platform-mellanox-nvsw-sn2201-change-fans-i2c-busses.patch : * Update commit msg body of patch 0067 Signed-off-by: Kebo Liu <[email protected]> --------- Signed-off-by: Kebo Liu <[email protected]> Co-authored-by: Saikrishna Arcot <[email protected]>
1 parent 1800d11 commit 7ee50c9

File tree

121 files changed

+3416
-915
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+3416
-915
lines changed

patch/0001-i2c-mlxcpld-Update-module-license.patch

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
From ff35f857e936ddd68635b390c789b203c7cbbbc2 Mon Sep 17 00:00:00 2001
12
From: Vadim Pasternak <[email protected]>
23
Date: Thu, 10 Dec 2020 18:51:11 +0200
3-
Subject: 0001 i2c: mlxcpld: Update module license
4+
Subject: [PATCH backport 5.10 001/182] i2c: mlxcpld: Update module license
45

56
Update license to SPDX-License.
67

@@ -53,5 +54,5 @@ index 71d7bae2cbca..dbd185368c38 100644
5354

5455
#include <linux/delay.h>
5556
--
56-
2.17.1
57+
2.20.1
5758

patch/0002-i2c-mlxcpld-Decrease-polling-time-for-performan.patch renamed to patch/0002-i2c-mlxcpld-Decrease-polling-time-for-performance-im.patch

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
From 12fe50acf879f7552616a539e7b4a580da809a7b Mon Sep 17 00:00:00 2001
12
From: Vadim Pasternak <[email protected]>
23
Date: Thu, 10 Dec 2020 18:51:12 +0200
3-
Subject: 0002 i2c: mlxcpld: Decrease polling time for
4+
Subject: [PATCH backport 5.10 002/182] i2c: mlxcpld: Decrease polling time for
45
performance improvement
56

67
Decrease polling time 'MLXCPLD_I2C_POLL_TIME' from 2000 usec to 400
@@ -29,5 +30,5 @@ index dbd185368c38..9e45214d1eb6 100644
2930
/* LPC I2C registers */
3031
#define MLXCPLD_LPCI2C_CPBLTY_REG 0x0
3132
--
32-
2.17.1
33+
2.20.1
3334

patch/0003-i2c-mlxcpld-Add-support-for-I2C-bus-frequency-s.patch renamed to patch/0003-i2c-mlxcpld-Add-support-for-I2C-bus-frequency-settin.patch

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
From 70a2f64a3d7b680a509c519015e4a46b6bc15ca4 Mon Sep 17 00:00:00 2001
12
From: Vadim Pasternak <[email protected]>
23
Date: Wed, 6 Jan 2021 01:33:47 +0200
3-
Subject: 0003 i2c: mlxcpld: Add support for I2C bus frequency
4-
setting
4+
Subject: [PATCH backport 5.10 003/182] i2c: mlxcpld: Add support for I2C bus
5+
frequency setting
56

67
Add support for I2C bus frequency setting according to the specific
78
system capability. This capability is obtained from CPLD frequency
@@ -123,5 +124,5 @@ index 9e45214d1eb6..4e0b7c2882ce 100644
123124
}
124125

125126
--
126-
2.17.1
127+
2.20.1
127128

patch/0004-i2c-mux-mlxcpld-Update-module-license.patch

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
From 9f63205197ecd85ef2f7e0c54c4aac5f7aecc9b8 Mon Sep 17 00:00:00 2001
12
From: Vadim Pasternak <[email protected]>
23
Date: Fri, 22 Jan 2021 21:24:56 +0200
3-
Subject: 0004 i2c: mux: mlxcpld: Update module license
4+
Subject: [PATCH backport 5.10 004/182] i2c: mux: mlxcpld: Update module
5+
license
46

57
Update license to SPDX-License.
68

@@ -55,5 +57,5 @@ index 5ed55ca4fe93..53bce81cf5c9 100644
5557

5658
#include <linux/device.h>
5759
--
58-
2.17.1
60+
2.20.1
5961

patch/0005-i2c-mux-mlxcpld-Move-header-file-out-of-x86-rea.patch renamed to patch/0005-i2c-mux-mlxcpld-Move-header-file-out-of-x86-realm.patch

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
From 0f351fad0a71a2b6ec4709af908e621a90649634 Mon Sep 17 00:00:00 2001
12
From: Vadim Pasternak <[email protected]>
23
Date: Fri, 22 Jan 2021 21:24:58 +0200
3-
Subject: 0005 i2c: mux: mlxcpld: Move header file out of x86
4-
realm
4+
Subject: [PATCH backport 5.10 005/182] i2c: mux: mlxcpld: Move header file out
5+
of x86 realm
56

67
Move out header file from include/linux/platform_data/x86/ to
78
include/linux/platform_data/, since it does not depend on x86
@@ -35,5 +36,5 @@ similarity index 100%
3536
rename from include/linux/platform_data/x86/mlxcpld.h
3637
rename to include/linux/platform_data/mlxcpld.h
3738
--
38-
2.17.1
39+
2.20.1
3940

patch/0006-i2c-mux-mlxcpld-Convert-driver-to-platform-driv.patch renamed to patch/0006-i2c-mux-mlxcpld-Convert-driver-to-platform-driver.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
From de8fd8e73df9249c260d174c5e55b7af6b3d11f5 Mon Sep 17 00:00:00 2001
12
From: Vadim Pasternak <[email protected]>
23
Date: Mon, 8 Feb 2021 22:16:01 +0200
3-
Subject: 0006 i2c: mux: mlxcpld: Convert driver to platform
4-
driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8
5-
Content-Transfer-Encoding: 8bit
4+
Subject: [PATCH backport 5.10 006/182] i2c: mux: mlxcpld: Convert driver to
5+
platform driver
66
MIME-Version: 1.0
77
Content-Type: text/plain; charset=UTF-8
88
Content-Transfer-Encoding: 8bit
@@ -181,5 +181,5 @@ index 3d894cfb19df..b53f1479272d 100644
181181
MODULE_AUTHOR("Michael Shych ([email protected])");
182182
MODULE_DESCRIPTION("Mellanox I2C-CPLD-MUX driver");
183183
--
184-
2.17.1
184+
2.20.1
185185

patch/0007-i2c-mux-mlxcpld-Prepare-mux-selection-infrastru.patch renamed to patch/0007-i2c-mux-mlxcpld-Prepare-mux-selection-infrastructure.patch

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
From 36e27ec3550453192cdf3788a20f82d074122c58 Mon Sep 17 00:00:00 2001
12
From: Vadim Pasternak <[email protected]>
23
Date: Mon, 8 Feb 2021 22:16:02 +0200
3-
Subject: 0007 i2c: mux: mlxcpld: Prepare mux selection
4-
infrastructure for two-byte support
4+
Subject: [PATCH backport 5.10 007/182] i2c: mux: mlxcpld: Prepare mux
5+
selection infrastructure for two-byte support
56

67
Allow to program register value zero to the mux register, which is
78
required for word address mux register space support.
@@ -84,5 +85,5 @@ index b53f1479272d..113ad84cdd94 100644
8485
/* Create an adapter for each channel. */
8586
for (num = 0; num < CPLD_MUX_MAX_NCHANS; num++) {
8687
--
87-
2.17.1
88+
2.20.1
8889

patch/0008-i2c-mux-mlxcpld-Get-rid-of-adapter-numbers-enfo.patch renamed to patch/0008-i2c-mux-mlxcpld-Get-rid-of-adapter-numbers-enforceme.patch

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
From a57efb1d682024397507e3d1f21455289ae2af67 Mon Sep 17 00:00:00 2001
12
From: Vadim Pasternak <[email protected]>
23
Date: Mon, 8 Feb 2021 22:16:03 +0200
3-
Subject: 0008 i2c: mux: mlxcpld: Get rid of adapter numbers
4-
enforcement
4+
Subject: [PATCH backport 5.10 008/182] i2c: mux: mlxcpld: Get rid of adapter
5+
numbers enforcement
56

67
Do not set the argument 'force_nr' of i2c_mux_add_adapter() routine,
78
instead provide argument 'chan_id'.
@@ -67,5 +68,5 @@ index b08dcb183fca..f3cb628bb779 100644
6768
int sel_reg_addr;
6869
};
6970
--
70-
2.17.1
71+
2.20.1
7172

patch/0009-i2c-mux-mlxcpld-Extend-driver-to-support-word-a.patch renamed to patch/0009-i2c-mux-mlxcpld-Extend-driver-to-support-word-addres.patch

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
From 1436eab9059e8f2a137ca657cc133dd6aabfe7f0 Mon Sep 17 00:00:00 2001
12
From: Vadim Pasternak <[email protected]>
23
Date: Mon, 8 Feb 2021 22:16:04 +0200
3-
Subject: 0009 i2c: mux: mlxcpld: Extend driver to support word
4-
address space devices
4+
Subject: [PATCH backport 5.10 009/182] i2c: mux: mlxcpld: Extend driver to
5+
support word address space devices
56

67
Extend driver to allow I2C routing control through CPLD devices with
78
word address space. Till now only CPLD devices with byte address space
@@ -111,5 +112,5 @@ index f3cb628bb779..341c7796e36b 100644
111112

112113
#endif /* _LINUX_I2C_MLXCPLD_H */
113114
--
114-
2.17.1
115+
2.20.1
115116

patch/0010-i2c-mux-mlxcpld-Extend-supported-mux-number.patch

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
From 3b78386d062ab776009356916ff5d82bd423cd8e Mon Sep 17 00:00:00 2001
12
From: Vadim Pasternak <[email protected]>
23
Date: Mon, 8 Feb 2021 22:16:05 +0200
3-
Subject: 0010 i2c: mux: mlxcpld: Extend supported mux number
4+
Subject: [PATCH backport 5.10 010/182] i2c: mux: mlxcpld: Extend supported mux
5+
number
46

57
Allow to extend mux number supported by driver.
68
Currently it is limited by eight, which is not enough for new coming
@@ -51,5 +53,5 @@ index 10767ad4adb4..5e0672f9979b 100644
5153
if (err)
5254
goto virt_reg_failed;
5355
--
54-
2.17.1
56+
2.20.1
5557

0 commit comments

Comments
 (0)