Re: [PATCH v1 1/3] x86/mce: Add centaur vendor to support Zhaoxin MCA

From: Tony W Wang-oc
Date: Sat Sep 14 2024 - 06:12:36 EST




On 2024/9/13 22:27, Borislav Petkov wrote:


[这封邮件来自外部发件人 谨防风险]

On Mon, Sep 09, 2024 at 06:43:47PM +0800, Tony W Wang-oc wrote:
@@ -1970,6 +1974,18 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c)
}
}

+ if (c->x86_vendor == X86_VENDOR_CENTAUR) {
+ /*
+ * All newer Centaur CPUs support MCE broadcasting. Enable
+ * synchronization with a one second timeout.
+ */
+ if ((c->x86 == 6 && c->x86_model == 0xf && c->x86_stepping >= 0xe) ||
+ c->x86 > 6) {
+ if (cfg->monarch_timeout < 0)
+ cfg->monarch_timeout = USEC_PER_SEC;
+ }
+ }

So if centaur == zhaoxin, why aren't you moving this hunk to
mce_zhaoxin_feature_init() instead?


Ok, will adjust the patch in the next version.

Sincerely!
TonyWWang-oc