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

From: Borislav Petkov
Date: Fri Sep 13 2024 - 10:27:34 EST


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?


--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette