Skip to content

Commit d84ad8d

Browse files
acoifmannvidiaacoifmannvidia
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 a5a3c35 commit d84ad8d

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
@@ -275,33 +275,6 @@ function get_psu_eeprom_type()
275275
echo $eeprom_type
276276
}
277277

278-
# Set ASIC ready state
279-
# $1 - sysfs path of PCI device
280-
# $2 - ASIC ready state (0 or 1)
281-
# return none
282-
function set_asic_ready()
283-
{
284-
sysfs_picdev_path=$1
285-
state=$2
286-
[ -f "$config_path/asic_num" ] && asic_num=$(< $config_path/asic_num)
287-
if [ $asic_num -gt 1 ]; then
288-
pci_bus="${sysfs_picdev_path: -7}"
289-
for ((asic_id=1; asic_id<=asic_num; asic_id+=1)); do
290-
bus=$(< $config_path/asic"$asic_id"_pci_bus_id)
291-
if [ "$bus" == "$pci_bus" ]; then
292-
echo $state > $config_path/asic"$asic_id"_ready
293-
if [ $asic_id -eq 1 ]; then
294-
echo $state > $config_path/asic_ready
295-
fi
296-
break
297-
fi
298-
done
299-
else
300-
echo $state > $config_path/asic1_ready
301-
echo $state > $config_path/asic_ready
302-
fi
303-
}
304-
305278
# Don't process udev events until service is started and directories are created
306279
if [ ! -f ${udev_ready} ]; then
307280
exit 0
@@ -1167,7 +1140,6 @@ if [ "$1" == "add" ]; then
11671140
modprobe mlxsw_minimal
11681141
fi
11691142
/usr/bin/hw-management.sh chipup 0 "$4/$5"
1170-
set_asic_ready "$4/$5" 1
11711143
fi
11721144
if [ "$2" == "nvme_temp" ]; then
11731145
dev_name=$(cat "$3""$4"/name)
@@ -1522,7 +1494,6 @@ else
15221494
fi
15231495
if [ "$2" == "sxcore" ]; then
15241496
/usr/bin/hw-management.sh chipdown 0 "$4/$5"
1525-
set_asic_ready "$4/$5" 0
15261497
fi
15271498
if [ "$2" == "dpu" ]; then
15281499
sku=$(< /sys/devices/virtual/dmi/id/product_sku)

0 commit comments

Comments
 (0)