Re: [PATCH v10 4/4] x86: Create a new synthetic cpu capability for machine check recovery

From: Luck, Tony
Date: Tue Feb 09 2016 - 18:39:03 EST


> > + if (mca_cfg.recovery || (mca_cfg.ser &&
> > + !strncmp(c->x86_model_id, "Intel(R) Xeon(R) CPU E7-", 24)))
>
> Eeww, a model string check :-(
>
> Lemme guess: those E7s can't be represented by a range of
> model/steppings, can they?

We use the same model number for E5 and E7 series. E.g. 63 for Haswell.
The model_id string seems to be the only way to tell ahead of time
whether you will get a recoverable machine check or die when you
touch uncorrected memory.

-Tony