Skip to content

Commit ba56861

Browse files
committed
Use BREADCRUMB.BIT32 to indicate NIC mode
This commit set NIC mode in BREADCRUMB.BIT31 to solve some upgrade issue when NIC_FW is too old. Signed-off-by: Liming Sun <[email protected]>
1 parent 5200cbb commit ba56861

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/bfb-install

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,12 @@ fi
894894
check_nic_mode
895895

896896
if [ ${nic_mode} -eq 1 -a -n "${pcie_bd}" -a ${runtime} -eq 0 ]; then
897+
# Set BREADCRUMB.BIT32 to indicate NIC mode.
898+
breadcrumb1=$(${BF_REG} $(basename ${rshim_node}) 0x13000518.64 | awk '{print $3}')
899+
breadcrumb1=$((breadcrumb1 | (0x1 << 32)))
900+
breadcrumb1=$(printf "0x%x\n" $breadcrumb1)
901+
${BF_REG} $(basename ${rshim_node}) 0x13000518.64 ${breadcrumb1} >/dev/null
902+
897903
for i in 0 1; do
898904
if [[ ! -e /sys/bus/pci/drivers/mlx5_core/${pcie_bd}.${i} ]]; then
899905
[ ${verbose} -eq 1 ] && echo "Unbinding: Skipping originally unbound pf${i} (${pcie_bd}.${i})"

0 commit comments

Comments
 (0)