* [PATCH] Documentation/x86: Update split lock documentation
@ 2023-03-15 22:57 Tony Luck
2023-03-15 23:13 ` Fenghua Yu
2023-03-23 18:03 ` Jonathan Corbet
0 siblings, 2 replies; 4+ messages in thread
From: Tony Luck @ 2023-03-15 22:57 UTC (permalink / raw)
To: Jonathan Corbet
Cc: Fenghua Yu, Guilherme G. Piccoli, x86, linux-doc, linux-kernel,
patches, Tony Luck
commit b041b525dab9 ("x86/split_lock: Make life miserable for split
lockers") added a delay and serialization of cplit locks. Commit
727209376f49 ("x86/split_lock: Add sysctl to control the misery mode")
provided a sysctl to turn off the misery.
Update the split lock documentation to describe the current state of
the code.
Signed-off-by: Tony Luck <tony.luck@intel.com>
---
Documentation/x86/buslock.rst | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/Documentation/x86/buslock.rst b/Documentation/x86/buslock.rst
index 7c051e714943..31ec0ef78086 100644
--- a/Documentation/x86/buslock.rst
+++ b/Documentation/x86/buslock.rst
@@ -53,8 +53,14 @@ parameter "split_lock_detect". Here is a summary of different options:
|off |Do nothing |Do nothing |
+------------------+----------------------------+-----------------------+
|warn |Kernel OOPs |Warn once per task and |
-|(default) |Warn once per task and |and continues to run. |
-| |disable future checking | |
+|(default) |Warn once per task, add a |and continues to run. |
+| |delay, add synchronization | |
+| |to prevent more than one | |
+| |core from executing a | |
+| |split lock in parallel. | |
+| |sysctl split_lock_mitigate | |
+| |can be used to avoid the | |
+| |delay and synchronization | |
| |When both features are | |
| |supported, warn in #AC | |
+------------------+----------------------------+-----------------------+
--
2.39.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Documentation/x86: Update split lock documentation
2023-03-15 22:57 [PATCH] Documentation/x86: Update split lock documentation Tony Luck
@ 2023-03-15 23:13 ` Fenghua Yu
2023-03-16 13:01 ` Guilherme G. Piccoli
2023-03-23 18:03 ` Jonathan Corbet
1 sibling, 1 reply; 4+ messages in thread
From: Fenghua Yu @ 2023-03-15 23:13 UTC (permalink / raw)
To: Tony Luck, Jonathan Corbet
Cc: Guilherme G. Piccoli, x86, linux-doc, linux-kernel, patches
Hi, Tony,
On 3/15/23 15:57, Tony Luck wrote:
> commit b041b525dab9 ("x86/split_lock: Make life miserable for split
> lockers") added a delay and serialization of cplit locks. Commit
s/cplit/split/
> 727209376f49 ("x86/split_lock: Add sysctl to control the misery mode")
> provided a sysctl to turn off the misery.
>
> Update the split lock documentation to describe the current state of
> the code.
>
> Signed-off-by: Tony Luck <tony.luck@intel.com>
> ---
> Documentation/x86/buslock.rst | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/x86/buslock.rst b/Documentation/x86/buslock.rst
> index 7c051e714943..31ec0ef78086 100644
> --- a/Documentation/x86/buslock.rst
> +++ b/Documentation/x86/buslock.rst
> @@ -53,8 +53,14 @@ parameter "split_lock_detect". Here is a summary of different options:
> |off |Do nothing |Do nothing |
> +------------------+----------------------------+-----------------------+
> |warn |Kernel OOPs |Warn once per task and |
> -|(default) |Warn once per task and |and continues to run. |
> -| |disable future checking | |
> +|(default) |Warn once per task, add a |and continues to run. |
> +| |delay, add synchronization | |
> +| |to prevent more than one | |
> +| |core from executing a | |
> +| |split lock in parallel. | |
> +| |sysctl split_lock_mitigate | |
> +| |can be used to avoid the | |
> +| |delay and synchronization | |
> | |When both features are | |
> | |supported, warn in #AC | |
> +------------------+----------------------------+-----------------------+
Other than the typo, looks good to me.
Thanks.
-Fenghua
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Documentation/x86: Update split lock documentation
2023-03-15 23:13 ` Fenghua Yu
@ 2023-03-16 13:01 ` Guilherme G. Piccoli
0 siblings, 0 replies; 4+ messages in thread
From: Guilherme G. Piccoli @ 2023-03-16 13:01 UTC (permalink / raw)
To: Fenghua Yu, Tony Luck, Jonathan Corbet
Cc: x86, linux-doc, linux-kernel, patches
On 15/03/2023 20:13, Fenghua Yu wrote:
> Hi, Tony,
>
> On 3/15/23 15:57, Tony Luck wrote:
>> commit b041b525dab9 ("x86/split_lock: Make life miserable for split
>> lockers") added a delay and serialization of cplit locks. Commit
> s/cplit/split/
>
>> 727209376f49 ("x86/split_lock: Add sysctl to control the misery mode")
>> provided a sysctl to turn off the misery.
>>
>> Update the split lock documentation to describe the current state of
>> the code.
>>
>> Signed-off-by: Tony Luck <tony.luck@intel.com>
>> ---
>> Documentation/x86/buslock.rst | 10 ++++++++--
>> 1 file changed, 8 insertions(+), 2 deletions(-)
>>
>> diff --git a/Documentation/x86/buslock.rst b/Documentation/x86/buslock.rst
>> index 7c051e714943..31ec0ef78086 100644
>> --- a/Documentation/x86/buslock.rst
>> +++ b/Documentation/x86/buslock.rst
>> @@ -53,8 +53,14 @@ parameter "split_lock_detect". Here is a summary of different options:
>> |off |Do nothing |Do nothing |
>> +------------------+----------------------------+-----------------------+
>> |warn |Kernel OOPs |Warn once per task and |
>> -|(default) |Warn once per task and |and continues to run. |
>> -| |disable future checking | |
>> +|(default) |Warn once per task, add a |and continues to run. |
>> +| |delay, add synchronization | |
>> +| |to prevent more than one | |
>> +| |core from executing a | |
>> +| |split lock in parallel. | |
>> +| |sysctl split_lock_mitigate | |
>> +| |can be used to avoid the | |
>> +| |delay and synchronization | |
>> | |When both features are | |
>> | |supported, warn in #AC | |
>> +------------------+----------------------------+-----------------------+
>
> Other than the typo, looks good to me.
>
> Thanks.
>
> -Fenghua
Thanks for fixing the documentation Tony! Also looks great for me.
Cheers,
Guilherme
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Documentation/x86: Update split lock documentation
2023-03-15 22:57 [PATCH] Documentation/x86: Update split lock documentation Tony Luck
2023-03-15 23:13 ` Fenghua Yu
@ 2023-03-23 18:03 ` Jonathan Corbet
1 sibling, 0 replies; 4+ messages in thread
From: Jonathan Corbet @ 2023-03-23 18:03 UTC (permalink / raw)
To: Tony Luck
Cc: Fenghua Yu, Guilherme G. Piccoli, x86, linux-doc, linux-kernel,
patches, Tony Luck
Tony Luck <tony.luck@intel.com> writes:
> commit b041b525dab9 ("x86/split_lock: Make life miserable for split
> lockers") added a delay and serialization of cplit locks. Commit
> 727209376f49 ("x86/split_lock: Add sysctl to control the misery mode")
> provided a sysctl to turn off the misery.
>
> Update the split lock documentation to describe the current state of
> the code.
>
> Signed-off-by: Tony Luck <tony.luck@intel.com>
> ---
> Documentation/x86/buslock.rst | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
Applied (with the typo pointed out by Fenghua fixed), thanks.
jon
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-03-23 18:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-15 22:57 [PATCH] Documentation/x86: Update split lock documentation Tony Luck
2023-03-15 23:13 ` Fenghua Yu
2023-03-16 13:01 ` Guilherme G. Piccoli
2023-03-23 18:03 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).