public inbox for fio@vger.kernel.org
 help / color / mirror / Atom feed
From: Runa Guo-oc <RunaGuo-oc@zhaoxin.com>
To: <fio@vger.kernel.org>, <axboe@kernel.dk>, <vincentfu@gmail.com>
Cc: <cobechen@zhaoxin.com>, <tonywwang@zhaoxin.com>,
	<xanderchen@zhaoxin.com>, <louisqi@zhaoxin.com>,
	<runaguo@zhaoxin.com>, <leoliu@zhaoxin.com>
Subject: [PATCH] Add Zhaoxin support to enable tsc_reliable and arch_random features
Date: Thu, 22 May 2025 18:40:32 +0800	[thread overview]
Message-ID: <20250522104032.17519-1-RunaGuo-oc@zhaoxin.com> (raw)

Signed-off-by: Runa Guo-oc <RunaGuo-oc@zhaoxin.com>
---
 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 f32835cc..ac26126a 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.17.1


             reply	other threads:[~2025-05-23  0:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-22 10:40 Runa Guo-oc [this message]
2025-05-23  7:38 ` [PATCH] Add Zhaoxin support to enable tsc_reliable and arch_random features fiotestbot
2025-05-23 13:19   ` Vincent Fu
2025-05-23 15:46 ` Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2025-05-22  4:37 Runa Guo-oc
2025-05-22  6:49 ` fiotestbot
2025-05-22  8:07 ` Sitsofe Wheeler
2025-05-21  2:04 Runa Guo-oc
2025-05-21 13:20 ` Jens Axboe
2025-05-21 17:49 ` fiotestbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250522104032.17519-1-RunaGuo-oc@zhaoxin.com \
    --to=runaguo-oc@zhaoxin.com \
    --cc=axboe@kernel.dk \
    --cc=cobechen@zhaoxin.com \
    --cc=fio@vger.kernel.org \
    --cc=leoliu@zhaoxin.com \
    --cc=louisqi@zhaoxin.com \
    --cc=runaguo@zhaoxin.com \
    --cc=tonywwang@zhaoxin.com \
    --cc=vincentfu@gmail.com \
    --cc=xanderchen@zhaoxin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox