Skip to content

Commit 543f7ee

Browse files
committed
hw-mgmt: scripts: Load mlxreg-dpu as part of platform init
In very rare scenarios, especially in the first boot after the NOS installation, i2c buses for the DPUs are not ready when the mlxreg-dpu driver completes the probing. Even though, we have the delayed probing enabled in the mlxreg-dpu driver, the race condition can occur and dpu driver doesn't see a fully setup multiplexed i2c bus. This patch adds a blacklist entry for mlxreg-dpu driver and load it as part of smart switch platform initialization. Bug #4850549 Signed-off-by: Ciju Rajan K <crajank@nvidia.com>
1 parent 4d01052 commit 543f7ee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

usr/usr/bin/hw-management.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2417,6 +2417,7 @@ qm_qm3_common()
24172417

24182418
smart_switch_common()
24192419
{
2420+
modprobe mlxreg-dpu
24202421
if [ ! -e "$devtree_file" ]; then
24212422
connect_table+=(${msn4700_msn4600_A1_base_connect_table[@]})
24222423
add_cpu_board_to_connection_table $smart_switch_cpu_bus_offset

usr/usr/local/bin/hw-management-process-blacklist.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
################################################################################
33
# SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
4-
# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
4+
# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
55
#
66
# Redistribution and use in source and binary forms, with or without
77
# modification, are permitted provided that the following conditions are met:
@@ -33,7 +33,7 @@
3333

3434
__default_blacklist="
3535
##################################################################################
36-
# Copyright (c) 2018-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
36+
# Copyright (c) 2018-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3737
#
3838
options at24 io_limit=32
3939
options gpio_ich gpiobase=0
@@ -91,6 +91,7 @@ process_blacklist()
9191
echo blacklist i2c_designware_platform >> $BLACKLIST_FILE
9292
echo blacklist i2c_designware_core >> $BLACKLIST_FILE
9393
echo blacklist i2c_asf >> $BLACKLIST_FILE
94+
echo blacklist mlxreg_dpu >> $BLACKLIST_FILE
9495
;;
9596
esac
9697
}

0 commit comments

Comments
 (0)