Skip to content

Commit f7672c3

Browse files
acoifmannvidiasholeksandr
authored andcommitted
Revert ASIC temperature reading fix to prevent critical regression
This revert removes the ASIC temperature reading fixes that were causing critical regression issues. The original fix for Redmine #4497061 introduced a more severe bug (Redmine #4574847) that affects system stability. Management decision: Accept the original ASIC temperature reading issue as a known limitation rather than risk the critical regression. Bug: 4574847
1 parent 8ef7e18 commit f7672c3

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

usr/usr/bin/hw-management-thermal-events.sh

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -276,33 +276,6 @@ function get_psu_eeprom_type()
276276
echo $eeprom_type
277277
}
278278

279-
# Set ASIC ready state
280-
# $1 - sysfs path of PCI device
281-
# $2 - ASIC ready state (0 or 1)
282-
# return none
283-
function set_asic_ready()
284-
{
285-
sysfs_picdev_path=$1
286-
state=$2
287-
[ -f "$config_path/asic_num" ] && asic_num=$(< $config_path/asic_num)
288-
if [ $asic_num -gt 1 ]; then
289-
pci_bus="${sysfs_picdev_path: -7}"
290-
for ((asic_id=1; asic_id<=asic_num; asic_id+=1)); do
291-
bus=$(< $config_path/asic"$asic_id"_pci_bus_id)
292-
if [ "$bus" == "$pci_bus" ]; then
293-
echo $state > $config_path/asic"$asic_id"_ready
294-
if [ $asic_id -eq 1 ]; then
295-
echo $state > $config_path/asic_ready
296-
fi
297-
break
298-
fi
299-
done
300-
else
301-
echo $state > $config_path/asic1_ready
302-
echo $state > $config_path/asic_ready
303-
fi
304-
}
305-
306279
# Don't process udev events until service is started and directories are created
307280
if [ ! -f ${udev_ready} ]; then
308281
exit 0
@@ -1170,7 +1143,6 @@ if [ "$1" == "add" ]; then
11701143
modprobe mlxsw_minimal
11711144
fi
11721145
/usr/bin/hw-management.sh chipup 0 "$4/$5"
1173-
set_asic_ready "$4/$5" 1
11741146
fi
11751147
if [ "$2" == "nvme_temp" ]; then
11761148
dev_name=$(cat "$3""$4"/name)
@@ -1529,7 +1501,6 @@ else
15291501
fi
15301502
if [ "$2" == "sxcore" ]; then
15311503
/usr/bin/hw-management.sh chipdown 0 "$4/$5"
1532-
set_asic_ready "$4/$5" 0
15331504
fi
15341505
if [ "$2" == "dpu" ]; then
15351506
sku=$(< /sys/devices/virtual/dmi/id/product_sku)

0 commit comments

Comments
 (0)