Re: [PATCH v5 10/16] x86/mce: enable Hygon support to MCE infrastructure

From: Pu Wen
Date: Wed Sep 05 2018 - 23:53:34 EST


On 2018/9/5 21:15, Borislav Petkov wrote:
On Wed, Sep 05, 2018 at 08:59:24PM +0800, Pu Wen wrote:
If CONFIG_X86_MCE_AMD=n, mce_hygon_feature_init will call the other
one mce_amd_feature_init which is a null function and located in the
else branch of "#ifdef CONFIG_X86_MCE_AMD". The compilation is OK and
the kernel will run without MCE support.

So my question was rather ironic but I guess irony can't travel through
mail. So let me paraphrase: is that a use case you wanna support?
Because I'd advise very strongly against !MCE kernels.

In most of the normal use cases MCE is necessary. Rarely in some cases
such as for test purpose MCE may be unselected.

--
Regards,
Pu Wen