Re: [PATCH 2/3] x86/split_lock: Bits in IA32_CORE_CAPABILITIES are not architectural

From: Thomas Gleixner
Date: Fri Apr 17 2020 - 06:04:45 EST


Tony Luck <tony.luck@xxxxxxxxx> writes:
> + m = x86_match_cpu(split_lock_cpu_ids);
> + if (!m)
> + return;
> +
> + if (m->driver_data && cpu_has(c, X86_FEATURE_CORE_CAPABILITIES))
> {

This condition results in the following:

driver_data MSR_CORE_CAPS MSR_CORE_CAPS_SLD SLD available

1 0 Don't care Don't care Y
2 1 N Don't care Y
3 1 Y Y Y
4 1 Y N N

#2 does not make any sense to me.

Thanks,

tglx