diff --git a/0001-Add-Zhaoxin-support-to-enable-tsc_reliable-and-arch_random-features.patch b/0001-Add-Zhaoxin-support-to-enable-tsc_reliable-and-arch_random-features.patch new file mode 100644 index 0000000000000000000000000000000000000000..3e20db217c983936e6b222c17048dd94752bd267 --- /dev/null +++ b/0001-Add-Zhaoxin-support-to-enable-tsc_reliable-and-arch_random-features.patch @@ -0,0 +1,29 @@ +From c348db31ccce60f2808dd84c1f43f36a1556141a Mon Sep 17 00:00:00 2001 +From: Runa Guo-oc +Date: Fri, 22 Aug 2025 11:15:57 +0800 +Subject: [PATCH] Add Zhaoxin support to enable tsc_reliable and arch_random features + +Signed-off-by: Runa Guo-oc +Link: https://lore.kernel.org/r/20250522104032.17519-1-RunaGuo-oc@zhaoxin.com +Signed-off-by: Jens Axboe +--- + arch/arch-x86-common.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/arch/arch-x86-common.h b/arch/arch-x86-common.h +index f32835c..ac26126 100644 +--- a/arch/arch-x86-common.h ++++ b/arch/arch-x86-common.h +@@ -68,7 +68,8 @@ static inline void arch_init(char *envp[]) + (unsigned int *) &str[4]); + + str[12] = '\0'; +- if (!strcmp(str, "GenuineIntel")) ++ if (!strcmp(str, "GenuineIntel") || !strcmp(str, " Shanghai ") || ++ !strcmp(str, "CentaurHauls")) + arch_init_intel(); + else if (!strcmp(str, "AuthenticAMD") || !strcmp(str, "HygonGenuine")) + arch_init_amd(); +-- +2.43.0 + diff --git a/fio.spec b/fio.spec index 70d6c9154e6801840bdb82f49503695793c5e9b5..38306dcf41f570c39e3687d59a9a025a53ebc5fe 100644 --- a/fio.spec +++ b/fio.spec @@ -1,12 +1,14 @@ Name: fio Version: 3.39 -Release: 1 +Release: 2 Summary: Multithreaded IO generation tool License: GPL-2.0-only URL: http://git.kernel.dk/?p=fio.git;a=summary Source0: http://brick.kernel.dk/snaps/%{name}-%{version}.tar.bz2 +Patch0001: 0001-Add-Zhaoxin-support-to-enable-tsc_reliable-and-arch_random-features.patch + BuildRequires: gcc BuildRequires: libaio-devel BuildRequires: zlib-devel @@ -74,6 +76,9 @@ make test %changelog +* Fri Aug 22 2025 cenhuilin - 3.39-2 +- Add Zhaoxin support to enable tsc_reliable and arch_random features + * Mon Feb 17 2025 lvfei - 3.39-1 - upgrade to 3.39 - t/run-fio-tests: remove redundant pre_success lines