Skip to content

Commit

Permalink
[nvidia-bluefield] Update SAI to SAIBuild0.0.32.0, SDK to v24.7-RC4 (s…
Browse files Browse the repository at this point in the history
…onic-net#19456)

- Why I did it
To include the latest fixes and new functionality

- How I did it
SDK_VERSION 24.7-RC2 -> 24.7-RC4
SAI_VERSION SAIBuild0.0.31.0 -> SAIBuild0.0.32.0

- How to verify it
Build an image and run tests from "sonic-mgmt".
  • Loading branch information
oleksandrivantsiv authored Jul 9, 2024
1 parent 9ca1464 commit 1c35c62
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# limitations under the License.
#

pci_iface=eth0-midplane
cp_iface=Ethernet0
pidfile=/run/dhcl-internal.$cp_iface.pid
leasefile=/var/lib/dhcp/dhcl-internal.$cp_iface.leases
Expand Down Expand Up @@ -55,12 +56,23 @@ stop()
rmmod mlx5_ib mlx5_core
}

configure_pci_iface()
{
mgmt_mac=$(cat /sys/devices/platform/MLNXBF17:00/net/*/address)

# Set PCI interface MAC address to the MAC address of the mgmt interface
ip link set dev $pci_iface address $mgmt_mac
}

case "$1" in
start|stop)
$1
;;
configure-pci-iface)
configure_pci_iface
;;
*)
echo "Usage: $0 {start|stop}"
echo "Usage: $0 {start|stop|configure-pci-iface}"
exit 1
;;
esac
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ After=getty.target
[Service]
Type=oneshot
ExecStartPre=/usr/bin/bfrshlog "Linux up"
ExecStart=/usr/bin/bfrshlog "DPU is ready"
ExecStartPre=/usr/bin/bfrshlog "DPU is ready"
ExecStart=/usr/bin/bfup
StandardOutput=journal+console

[Install]
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SUBSYSTEM=="net", ACTION=="add", DEVPATH=="/devices/platform/MLNXBF01:00/virtio1/net/eth*", NAME="tmfifo_net0"
SUBSYSTEM=="net", ACTION=="add", DEVPATH=="/devices/platform/MLNXBF01:00/virtio1/net/eth*", NAME="eth0-midplane", RUN+="/usr/bin/bfnet.sh configure-pci-iface"
2 changes: 0 additions & 2 deletions platform/nvidia-bluefield/pinctrl-mlxbf3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ $(addprefix $(DEST)/, $(MLXBF3_PINCTRL_DRIVER)): $(DEST)/% :

pushd ${MLXBF3_PINCTRL}

patch -p1 < ../../pinctrl-mlxbf3.c.patch

# Build the package
make -C /lib/modules/$(KVERSION)/build M=$(MODULE_DIR)

Expand Down
13 changes: 0 additions & 13 deletions platform/nvidia-bluefield/pinctrl-mlxbf3/pinctrl-mlxbf3.c.patch

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def __init__(self, name, thermals=None):
self.name = name
self.thermals = thermals


class DeviceDataManager:

def __init__(self):
Expand Down
18 changes: 10 additions & 8 deletions platform/nvidia-bluefield/recipes/bluefield-soc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
#

# Bluefied Software Distribution Version
BFSOC_VERSION = 4.6.0
BFSOC_REVISION = 13035
BFSOC_VERSION = 4.7.0
BFSOC_REVISION = 13127
BFB_IMG_TYPE = prod
BFSOC_BUILD_DATE =

Expand All @@ -34,6 +34,7 @@ BSD_BASE_URL = $(BSD_INTERNAL_BASE_URL)/$(BFSOC_BUILD_DATE)
endif

BSD_BASE_SOURCE_URL = $(BSD_BASE_URL)/build/install/distro/SRPMS/
QP_BOOTIMAGES_BASE_URL = $(BSD_BASE_URL)/build/install/distro/DEBS/
DEV_BOOTIMAGES_BASE_URL = $(BSD_BASE_URL)/build/install/distro/dev-release/DEBS/
PROD_BOOTIMAGES_BASE_URL = $(BSD_BASE_URL)/build/install/distro/ga-release/DEBS/
endif
Expand Down Expand Up @@ -133,7 +134,10 @@ $(MLXBF_PTM_DRIVER)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON)
BF_PLATFORM_DRIVERS += $(MLXBF_PTM_DRIVER)
export MLXBF_PTM_DRIVER_VERSION MLXBF_PTM_DRIVER

ifeq ($(BFB_IMG_TYPE), prod)
ifeq ($(BFB_IMG_TYPE), qp)
BOOTIMAGES_BASE_URL = $(QP_BOOTIMAGES_BASE_URL)
BOOTIMAGES = mlxbf-bootimages_$(BFSOC_VERSION)-$(BFSOC_REVISION)_arm64.deb
else ifeq ($(BFB_IMG_TYPE), prod)
BOOTIMAGES_BASE_URL = $(PROD_BOOTIMAGES_BASE_URL)
BOOTIMAGES = mlxbf-bootimages-signed_$(BFSOC_VERSION)-$(BFSOC_REVISION)_arm64.deb
else
Expand All @@ -160,15 +164,13 @@ $(BF_PLATFORM_MODULE)_SRC_PATH = $(PLATFORM_PATH)/bluefield-platform-modules

$(BF_PLATFORM_MODULE)_FILES = $(BF_PLATFORM_DRIVERS)

SONIC_MAKE_DEBS += $(BF_PLATFORM_MODULE)
export BF_PLATFORM_MODULE_VERSION BF_PLATFORM_MODULE BF_PLATFORM_DRIVERS

ifeq ($(BFSOC_FROM_INTERNAL), y)
SONIC_MAKE_FILES += $(BF_PLATFORM_DRIVERS)
SONIC_MAKE_DEBS += $(BFSOC_MAKE_DEBS)
SONIC_MAKE_DEBS += $(BFSOC_MAKE_DEBS) $(BF_PLATFORM_MODULE)
SONIC_ONLINE_DEBS += $(BFSOC_ONLINE_DEBS)
else
$(eval $(foreach file,$(BF_PLATFORM_DRIVERS) $(BFSOC_MAKE_DEBS) $(BFSOC_MAKE_DEBS_DERIVED) $(BFSOC_ONLINE_DEBS), $(call make_url_bfsoc,$(file))))
SONIC_ONLINE_FILES += $(BF_PLATFORM_DRIVERS)
SONIC_ONLINE_DEBS += $(BFSOC_MAKE_DEBS) $(BFSOC_MAKE_DEBS_DERIVED) $(BFSOC_ONLINE_DEBS)
$(eval $(foreach file, $(BFSOC_MAKE_DEBS) $(BFSOC_MAKE_DEBS_DERIVED) $(BFSOC_ONLINE_DEBS) $(BF_PLATFORM_MODULE), $(call make_url_bfsoc,$(file))))
SONIC_ONLINE_DEBS += $(BFSOC_MAKE_DEBS) $(BFSOC_MAKE_DEBS_DERIVED) $(BFSOC_ONLINE_DEBS) $(BF_PLATFORM_MODULE)
endif
2 changes: 1 addition & 1 deletion platform/nvidia-bluefield/recipes/dpu-sai.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.
#

DPU_SAI_VERSION = SAIBuild0.0.30.0
DPU_SAI_VERSION = SAIBuild0.0.32.0

# Place here URL where SAI sources exist
DPU_SAI_SOURCE_BASE_URL=
Expand Down
2 changes: 1 addition & 1 deletion platform/nvidia-bluefield/recipes/fw.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

BF3_FW_BASE_URL =

BF3_FW_VERSION = 32.39.1002
BF3_FW_VERSION = 32.41.1000

BF3_FW_FILE = fw-BlueField-3-rel-$(subst .,_,$(BF3_FW_VERSION)).mfa

Expand Down
4 changes: 2 additions & 2 deletions platform/nvidia-bluefield/recipes/installer-image.mk
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ $(SONIC_BF_IMAGE_PXE)_INSTALLS += $($(SONIC_BF_IMAGE_BASE)_INSTALLS)
$(SONIC_BF_IMAGE_PXE)_DEPENDS += $($(SONIC_BF_IMAGE_BASE)_DEPENDS)
$(SONIC_BF_IMAGE_PXE)_DOCKERS += $($(SONIC_BF_IMAGE_BASE)_DOCKERS)
$(SONIC_BF_IMAGE_PXE)_LAZY_INSTALLS += $($(SONIC_BF_IMAGE_BASE)_LAZY_INSTALLS)
$(SONIC_BF_IMAGE_PXE)_FILES += $($(SONIC_BF_IMAGE_BASE)_FILES) $(MLX_BOOTCTL_DRIVER)
$(SONIC_BF_IMAGE_PXE)_FILES += $($(SONIC_BF_IMAGE_BASE)_FILES)

# The traditional *.bin image. Works for sonic-sonic upgrade.
SONIC_BF_IMAGE_BIN = $(SONIC_BF_IMAGE_BASE).bin
Expand All @@ -87,6 +87,6 @@ $(SONIC_BF_IMAGE_BFB)_INSTALLS += $($(SONIC_BF_IMAGE_BASE)_INSTALLS)
$(SONIC_BF_IMAGE_BFB)_DEPENDS += $($(SONIC_BF_IMAGE_BASE)_DEPENDS)
$(SONIC_BF_IMAGE_BFB)_DOCKERS += $($(SONIC_BF_IMAGE_BASE)_DOCKERS)
$(SONIC_BF_IMAGE_BFB)_LAZY_INSTALLS += $($(SONIC_BF_IMAGE_BASE)_LAZY_INSTALLS)
$(SONIC_BF_IMAGE_BFB)_FILES += $($(SONIC_BF_IMAGE_BASE)_FILES) $(MLX_BOOTCTL_DRIVER)
$(SONIC_BF_IMAGE_BFB)_FILES += $($(SONIC_BF_IMAGE_BASE)_FILES)

SONIC_INSTALLERS += $(SONIC_BF_IMAGE_PXE) $(SONIC_BF_IMAGE_BIN) $(SONIC_BF_IMAGE_BFB)
4 changes: 2 additions & 2 deletions platform/nvidia-bluefield/recipes/mft.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

MFT_VERSION = 4.26.1
MFT_REVISION = 3
MFT_VERSION = 4.28.0
MFT_REVISION = 96

MFT_INTERNAL_SOURCE_BASE_URL =

Expand Down
2 changes: 1 addition & 1 deletion platform/nvidia-bluefield/recipes/sdk.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SDK_BASE_PATH = $(PLATFORM_PATH)/sdk-src/sonic-bluefield-packages/bin

# Place here URL where SDK sources exist
SDK_SOURCE_BASE_URL =
SDK_VERSION = 24.4-RC2
SDK_VERSION = 24.7-RC4

SDK_COLLECTX_URL = https://linux.mellanox.com/public/repo/doca/1.5.2/debian12/aarch64/

Expand Down

0 comments on commit 1c35c62

Please sign in to comment.