Re: [PATCH] x86/split_lock: Restore warn mode (and add a new one) to avoid userspace regression

From: Guilherme G. Piccoli
Date: Thu Oct 06 2022 - 11:08:16 EST


On 06/10/2022 06:04, Pavel Machek wrote:
> [...]
>> Why not just use the workaround suggested in that bug report:
>>
>> "so manual switching from default setting to split_lock_detect=off helps as workaround here"
>>
>> If you add this extra mode, I'm going to argue that the kernel default
>> should be "seq" rather than "warn". So these game players will need
>> to add a split_lock_detect=off (or warn) option.
>
> Kernel should not cause userland regressions, and this is one. That
> should make it pretty clear what the solution is.
>
> And no, I don't like CONFIG option, either.

Thanks for your opinion Pavel! Good thing is that seems everybody at
least understands the problem exists and is affecting userspace.

Now, about the action we should take: what if we go with a revert in
this "misery factor" based on Dave's reasoning? I have a patch ready and
tested, let me know otherwise or I'll submit it as a V2 by the end of
this week.

Cheers,


Guilherme