[202205] [Mellanox] upgrade hw-management package to 7.0020.4305 (#16483)
* [Mellanox] upgrade hw-management package to 7.0020.4304 * Update hw-management to 7.0020.4305
This commit is contained in:
parent
a35649e853
commit
3bc0da4a3f
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2016-2022 NVIDIA CORPORATION & AFFILIATES.
|
# Copyright (c) 2016-2023 NVIDIA CORPORATION & AFFILIATES.
|
||||||
# Apache-2.0
|
# Apache-2.0
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -16,7 +16,7 @@
|
|||||||
#
|
#
|
||||||
# Mellanox HW Management
|
# Mellanox HW Management
|
||||||
|
|
||||||
MLNX_HW_MANAGEMENT_VERSION = 7.0020.4301
|
MLNX_HW_MANAGEMENT_VERSION = 7.0020.4305
|
||||||
|
|
||||||
export MLNX_HW_MANAGEMENT_VERSION
|
export MLNX_HW_MANAGEMENT_VERSION
|
||||||
|
|
||||||
|
@ -1,47 +1,85 @@
|
|||||||
From 422b64397f2f33b394d037820f0ceb4c09e3a725 Mon Sep 17 00:00:00 2001
|
From e8e57139136577c4f0f3e06fd0af00c28a5d556e Mon Sep 17 00:00:00 2001
|
||||||
From: Alexander Allen <arallen@nvidia.com>
|
From: Junchao-Mellanox <junchao@nvidia.com>
|
||||||
Date: Fri, 21 Jan 2022 16:47:19 +0000
|
Date: Tue, 5 Sep 2023 17:15:56 +0800
|
||||||
Subject: [PATCH 2/4] Disable hw-mgmt on SimX platforms
|
Subject: [PATCH] [PATCH] [PATCH 2/4] Disable hw-mgmt on SimX platforms
|
||||||
|
|
||||||
---
|
---
|
||||||
usr/usr/bin/hw-management-ready.sh | 11 +++++++----
|
usr/usr/bin/hw-management-ready.sh | 6 ++++++
|
||||||
usr/usr/bin/hw-management.sh | 9 +++++++++
|
usr/usr/bin/hw-management.sh | 23 ++++++++++++++++-------
|
||||||
2 files changed, 16 insertions(+), 4 deletions(-)
|
2 files changed, 22 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
diff --git a/usr/usr/bin/hw-management-ready.sh b/usr/usr/bin/hw-management-ready.sh
|
diff --git a/usr/usr/bin/hw-management-ready.sh b/usr/usr/bin/hw-management-ready.sh
|
||||||
index 88672a8..7558c68 100755
|
index 2b736d2..649c125 100755
|
||||||
--- a/usr/usr/bin/hw-management-ready.sh
|
--- a/usr/usr/bin/hw-management-ready.sh
|
||||||
+++ b/usr/usr/bin/hw-management-ready.sh
|
+++ b/usr/usr/bin/hw-management-ready.sh
|
||||||
@@ -51,17 +51,20 @@ if [ -d /var/run/hw-management ]; then
|
@@ -39,6 +39,12 @@
|
||||||
rm -fr /var/run/hw-management
|
# Waits in loop until hw-management service can be started.
|
||||||
fi
|
# Report start of hw-management service to console and logger.
|
||||||
|
|
||||||
-case $board_type in
|
+if [ -n "$(lspci -vvv | grep SimX)" ]; then
|
||||||
-VMOD0014)
|
+ echo "Start Chassis HW management service."
|
||||||
+if [ -z "$(lspci -vvv | grep SimX)" ]; then
|
+ logger -t hw-management -p daemon.notice "Start Chassis HW management service."
|
||||||
+ case $board_type in
|
+ exit 0
|
||||||
+ VMOD0014)
|
|
||||||
if [ ! -d /sys/devices/pci0000:00/0000:00:1f.0/NVSN2201:00/mlxreg-hotplug/hwmon ]; then
|
|
||||||
timeout 180 bash -c 'until [ -d /sys/devices/pci0000:00/0000:00:1f.0/NVSN2201:00/mlxreg-hotplug/hwmon ]; do sleep 0.2; done'
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
-*)
|
|
||||||
+ *)
|
|
||||||
if [ ! -d /sys/devices/platform/mlxplat/mlxreg-hotplug/hwmon ]; then
|
|
||||||
timeout 180 bash -c 'until [ -d /sys/devices/platform/mlxplat/mlxreg-hotplug/hwmon ]; do sleep 0.2; done'
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
-esac
|
|
||||||
+ esac
|
|
||||||
+fi
|
+fi
|
||||||
+
|
+
|
||||||
echo "Start Chassis HW management service."
|
board_type=`cat /sys/devices/virtual/dmi/id/board_name`
|
||||||
logger -t hw-management -p daemon.notice "Start Chassis HW management service."
|
|
||||||
|
if systemctl is-active --quiet hw-management; then
|
||||||
diff --git a/usr/usr/bin/hw-management.sh b/usr/usr/bin/hw-management.sh
|
diff --git a/usr/usr/bin/hw-management.sh b/usr/usr/bin/hw-management.sh
|
||||||
index 1ee05b5..50d922b 100755
|
index 1591665..aa8a2b5 100755
|
||||||
--- a/usr/usr/bin/hw-management.sh
|
--- a/usr/usr/bin/hw-management.sh
|
||||||
+++ b/usr/usr/bin/hw-management.sh
|
+++ b/usr/usr/bin/hw-management.sh
|
||||||
@@ -2310,6 +2310,13 @@ do_chip_down()
|
@@ -505,7 +505,7 @@ function restore_i2c_bus_frequency_default()
|
||||||
|
function find_regio_sysfs_path_helper()
|
||||||
|
{
|
||||||
|
# Find hwmon{n} sysfs path for regio device
|
||||||
|
- case $board_type in
|
||||||
|
+ case $board_type in
|
||||||
|
VMOD0014)
|
||||||
|
for path in /sys/devices/pci0000:00/*/NVSN2201:*/mlxreg-io/hwmon/hwmon*; do
|
||||||
|
if [ -d "$path" ]; then
|
||||||
|
@@ -668,10 +668,10 @@ set_jtag_gpio()
|
||||||
|
gpio_tdi=$((gpiobase+jtag_tdi))
|
||||||
|
echo $gpio_tdi > /sys/class/gpio/"$export_unexport"
|
||||||
|
|
||||||
|
- # In SN2201 system.
|
||||||
|
+ # In SN2201 system.
|
||||||
|
# GPIO0 for CPU request to reset the Main Board I2C Mux.
|
||||||
|
- # GPIO1 for CPU control the CPU Board MUX when doing the ISP programming.
|
||||||
|
- # GPIO13 for CPU request Main Board JTAG control signal.
|
||||||
|
+ # GPIO1 for CPU control the CPU Board MUX when doing the ISP programming.
|
||||||
|
+ # GPIO13 for CPU request Main Board JTAG control signal.
|
||||||
|
if [ "$board_type" == "VMOD0014" ]; then
|
||||||
|
mux_reset=27
|
||||||
|
jtag_mux_en=33
|
||||||
|
@@ -1209,7 +1209,7 @@ connect_msn4700_msn4600_A1()
|
||||||
|
# msn4600C with removed A2D
|
||||||
|
connect_table+=(${msn4600C_A1_base_connect_table[@]})
|
||||||
|
else
|
||||||
|
- # msn4700/msn4600 respin
|
||||||
|
+ # msn4700/msn4600 respin
|
||||||
|
connect_table+=(${msn4700_msn4600_A1_base_connect_table[@]})
|
||||||
|
fi
|
||||||
|
add_cpu_board_to_connection_table
|
||||||
|
@@ -1985,7 +1985,7 @@ create_symbolic_links()
|
||||||
|
fi
|
||||||
|
if [ ! -d $thermal_path ]; then
|
||||||
|
mkdir $thermal_path
|
||||||
|
- fi
|
||||||
|
+ fi
|
||||||
|
if [ ! -d $config_path ]; then
|
||||||
|
mkdir $config_path
|
||||||
|
fi
|
||||||
|
@@ -2169,7 +2169,7 @@ do_start()
|
||||||
|
check_system
|
||||||
|
set_asic_pci_id
|
||||||
|
|
||||||
|
- asic_control=$(< $config_path/asic_control)
|
||||||
|
+ asic_control=$(< $config_path/asic_control)
|
||||||
|
if [[ $asic_control -ne 0 ]]; then
|
||||||
|
get_asic_bus
|
||||||
|
get_asic2_bus
|
||||||
|
@@ -2344,6 +2344,13 @@ do_chip_down()
|
||||||
/usr/bin/hw-management-thermal-events.sh change hotplug_asic down %S %p
|
/usr/bin/hw-management-thermal-events.sh change hotplug_asic down %S %p
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,8 +93,8 @@ index 1ee05b5..50d922b 100755
|
|||||||
__usage="
|
__usage="
|
||||||
Usage: $(basename "$0") [Options]
|
Usage: $(basename "$0") [Options]
|
||||||
|
|
||||||
@@ -2335,6 +2342,8 @@ Options:
|
@@ -2370,6 +2377,8 @@ Options:
|
||||||
force-reload Performs hw-management 'stop' and the 'start.
|
reset-cause Output system reset cause.
|
||||||
"
|
"
|
||||||
|
|
||||||
+check_simx
|
+check_simx
|
||||||
@ -65,5 +103,5 @@ index 1ee05b5..50d922b 100755
|
|||||||
start)
|
start)
|
||||||
if [ -d /var/run/hw-management ]; then
|
if [ -d /var/run/hw-management ]; then
|
||||||
--
|
--
|
||||||
2.20.1
|
1.9.1
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit c036e38b3969e1b0eebbf36ef367bb14cd52bcfb
|
Subproject commit 2f54d88d3cb20dc3c37477a4daf83b916df48e47
|
Reference in New Issue
Block a user