Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30a0fb94 authored by H. Peter Anvin's avatar H. Peter Anvin
Browse files

x86: correct the CPUID pattern for MSR_IA32_MISC_ENABLE availability



Impact: re-enable CPUID unmasking on affected processors

As far as I am capable of discerning from the documentation,
MSR_IA32_MISC_ENABLE should be available for all family 0xf CPUs, as
well as family 6 for model >= 0xd (newer Pentium M).

The documentation on this isn't ideal, so we need to be on the lookout
for errors, still.

Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent e88a0faa
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -30,7 +30,7 @@
static void __cpuinit early_init_intel(struct cpuinfo_x86 *c)
static void __cpuinit early_init_intel(struct cpuinfo_x86 *c)
{
{
	/* Unmask CPUID levels if masked: */
	/* Unmask CPUID levels if masked: */
	if (c->x86 == 6 && c->x86_model >= 15) {
	if (c->x86 > 6 || (c->x86 == 6 && c->x86_model >= 0xd)) {
		u64 misc_enable;
		u64 misc_enable;


		rdmsrl(MSR_IA32_MISC_ENABLE, misc_enable);
		rdmsrl(MSR_IA32_MISC_ENABLE, misc_enable);