RE: [PATCH] x86/split_lock: Enable the split lock detect feature on Raptor Lake P and Alder Lake N CPUs

From: David Laight
Date: Sat Jul 02 2022 - 06:32:43 EST


From: Dave Hansen
> Sent: 01 July 2022 15:20
>
> On 7/1/22 06:19, Fenghua Yu wrote:
> > These CPU models support the split lock detect feature. Add them to
> > the x86_cpu_ids match table.
>
> When is there going to be architectural detection for this feature? Or,
> is the plan to just keep adding CPUs to this table as they are available.

I saw that as well, it really doesn't scale at all.

Isn't it usual for the flag to not be settable on old cpu?

In any case the flag could be set and then a 'split lock'
transfer and see if it faults.

OTOH why bother with the test?
Unless you want to report that the 'split lock' detection
doesn't work?

Or did Intel really screw this up and use a flag that has
some other undesirable effect on (at least some) older cpu.

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)