diff --git a/0031-scripts-Do-msr-existence-check-only-on-x86_64-machin.patch b/0031-scripts-Do-msr-existence-check-only-on-x86_64-machin.patch new file mode 100644 index 0000000000000000000000000000000000000000..1149509ad0df9f36281477b754e2b632c052122e --- /dev/null +++ b/0031-scripts-Do-msr-existence-check-only-on-x86_64-machin.patch @@ -0,0 +1,36 @@ +From 686dcd88c2e4147ec5731647c569d8ef4c7064b5 Mon Sep 17 00:00:00 2001 +From: Gal Hammer +Date: Tue, 2 Jul 2024 14:28:06 +0800 +Subject: [PATCH] scripts: Do msr existence check only on x86_64 machines + +aarch64 doesn't have a msr module (DPDK acquires the TSR rate elsewhere). + +Signed-off-by: Gal Hammer +Signed-off-by: Shai Fultheim +Change-Id: Ib9795141a78436959853ab5548ae49f024344b25 +Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12354 +Reviewed-by: Jim Harris +Reviewed-by: Tomasz Zawadzki +Community-CI: Broadcom CI +Community-CI: Mellanox Build Bot +Tested-by: SPDK CI Jenkins +--- + scripts/setup.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scripts/setup.sh b/scripts/setup.sh +index 1c5024a..e753cb1 100755 +--- a/scripts/setup.sh ++++ b/scripts/setup.sh +@@ -507,7 +507,7 @@ function configure_linux() { + fi + fi + +- if [ ! -f /dev/cpu/0/msr ]; then ++ if [ $(uname -i) == "x86_64" ] && [ ! -e /dev/cpu/0/msr ]; then + # Some distros build msr as a module. Make sure it's loaded to ensure + # DPDK can easily figure out the TSC rate rather than relying on 100ms + # sleeps. +-- +2.33.0 + diff --git a/spdk.spec b/spdk.spec index 93e2f7d7bdfa6f48815ce9279ac79c9ddad40777..8016e0b1d423e11a9373afa3045072ae1b1f176c 100644 --- a/spdk.spec +++ b/spdk.spec @@ -4,7 +4,7 @@ Name: spdk Version: 21.01 -Release: 8 +Release: 9 Summary: Set of libraries and utilities for high performance user-mode storage License: BSD and MIT URL: http://spdk.io @@ -39,6 +39,7 @@ Patch27: 0027-spdk_top-check-return-value-of-strdup-in-store_last_.patch Patch28: 0028-uring-set-fd-to-1-after-close-fd-in-uring_sock_creat.patch Patch29: 0029-Fix-build-warning.patch Patch30: 0030-ut-rdma-Fix-GCC-10.2.0-warning.patch +Patch31: 0031-scripts-Do-msr-existence-check-only-on-x86_64-machin.patch %define package_version %{version}-%{release} @@ -212,6 +213,9 @@ mv doc/output/html/ %{install_docdir} %changelog +* Tue Jul 2 2024 cenhuilin - 21.01-9 +- scripts: Do msr existence check only on x86_64 machines + * Fri Mar 15 2024 wangxiaomeng - 21.01-8 - Fix build warning