arm64/fpsimd: Don't disable softirq when touching FPSIMD/SVE state
v4 cover arm64/fpsimd: Don't disable softirq when touching FPSIMD/SVE state
Hi all,
This patch series keeps softirqs enabled while touching FPSIMD/SVE state. For more details on the impact see patch #3.
This patch series has been benchmarked on Linux 5.1-rc4 with defconfig.
On Juno2:
* hackbench 100 process 1000 (10 times)
* .7% quicker
On ThunderX 2:
* hackbench 1000 process 1000 (20 times)
* 3.4% quicker
Note that while the benchmark has been done on 5.1-rc4, the patch series is
based on kvm-arm/next as it has few conflicts with the SVE KVM series.
Cheers,
Julien Grall (3):
arm64/fpsimd: Remove the prototype for sve_flush_cpu_state() arch/arm64: fpsimd: Introduce fpsimd_save_and_flush_cpu_state() and
use it
arm64/fpsimd: Don't disable softirq when touching FPSIMD/SVE state
arch/arm64/include/asm/fpsimd.h | 5 +- arch/arm64/include/asm/simd.h | 10 +-- arch/arm64/kernel/fpsimd.c | 139 +++++++++++++++++++++++++++------------- arch/arm64/kvm/fpsimd.c | 4 +- 4 files changed, 103 insertions(+), 55 deletions(-)
Signature · 1 line
2.11.0
PATCH v4 1/3 arm64/fpsimd: Remove the prototype for sve_flush_cpu_state()
The function sve_flush_cpu_state() has been removed in commit 21cdd7fd76e3 ("KVM: arm64: Remove eager host SVE state saving").
So remove the associated prototype in asm/fpsimd.h.
---
Changes in v3:
- Add Dave's reviewed-by
- Fix checkpatch style error when mentioning a commit
Changes in v2:
- Patch added
--- arch/arm64/include/asm/fpsimd.h | 1 - 1 file changed, 1 deletion(-)
arch/arm64/include/asm/fpsimd.h +0 -1
@@ -64,7 +64,6 @@ extern void fpsimd_bind_state_to_cpu(struct user_fpsimd_state *state,extern void fpsimd_flush_task_state (struct task_struct *target);extern void fpsimd_flush_cpu_state (void ); -extern void sve_flush_cpu_state (void );/* Maximum VL that SVE VL-agnostic software can transparently support */ #define SVE_VL_ARCH_MAX 0x100
Signature · 1 line
2.11.0
PATCH v4 2/3 arch/arm64: fpsimd: Introduce fpsimd_save_and_flush_cpu_state() and use it
In reply to Julien GrallThe only external user of fpsimd_save() and fpsimd_flush_cpu_state() is the KVM FPSIMD code.
A following patch will introduce a mechanism to acquire owernship of the FPSIMD/SVE context for performing context management operations. Rather than having to export the new helpers to get/put the context, we can just introduce a new function to combine fpsimd_save() and fpsimd_flush_cpu_state().
This has also the advantage to remove any external call of fpsimd_save() and fpsimd_flush_cpu_state(), so they can be turned static.
Lastly, the new function can also be used in the PM notifier.
---
kernel_neon_begin() does not use fpsimd_save_and_flush_cpu_state() because the next patch will modify the function to also grab the FPSIMD/SVE context.
Changes in v4:
- Remove newline before the new prototype
- Add Dave's reviewed-by
Changes in v3:
- Rework the commit message
- Move the prototype of fpsimd_save_and_flush_cpu_state() further down in the header
- Remove comment in kvm_arch_vcpu_put_fp()
Changes in v2:
- Patch added
--- arch/arm64/include/asm/fpsimd.h | 4 +--- arch/arm64/kernel/fpsimd.c | 17 +++++++++++++---- arch/arm64/kvm/fpsimd.c | 4 +--- 3 files changed, 15 insertions(+), 10 deletions(-)
arch/arm64/include/asm/fpsimd.h +1 -3
@@ -48,8 +48,6 @@ struct task_struct;extern void fpsimd_save_state (struct user_fpsimd_state *state);extern void fpsimd_load_state (struct user_fpsimd_state *state); -extern void fpsimd_save (void ); -extern void fpsimd_thread_switch (struct task_struct *next);extern void fpsimd_flush_thread (void );
@@ -63,7 +61,7 @@ extern void fpsimd_bind_state_to_cpu(struct user_fpsimd_state *state, void *sve_state, unsigned int sve_vl);extern void fpsimd_flush_task_state (struct task_struct *target); -extern void fpsimd_flush_cpu_state (void ); +extern void fpsimd_save_and_flush_cpu_state (void );/* Maximum VL that SVE VL-agnostic software can transparently support */ #define SVE_VL_ARCH_MAX 0x100
arch/arm64/kernel/fpsimd.c +13 -4
@@ -246,7 +246,7 @@ static void task_fpsimd_load(void)* * Softirqs (and preemption) must be disabled. */ -void fpsimd_save (void ) +static void fpsimd_save (void ) {struct fpsimd_last_state_struct const *last =this_cpu_ptr (&fpsimd_last_state);
@@ -1122,12 +1122,22 @@ void fpsimd_flush_task_state(struct task_struct *t)* Invalidate any task's FPSIMD state that is present on this cpu. * This function must be called with softirqs disabled. */ -void fpsimd_flush_cpu_state (void ) +static void fpsimd_flush_cpu_state (void ) {__this_cpu_write (fpsimd_last_state.st,NULL );set_thread_flag (TIF_FOREIGN_FPSTATE ); } +/* +* Save the FPSIMD state to memory and invalidate cpu view. +* This function must be called with softirqs (and preemption) disabled. +*/ +void fpsimd_save_and_flush_cpu_state (void ) +{ +fpsimd_save (); +fpsimd_flush_cpu_state (); +} +#ifdef CONFIG_KERNEL_MODE_NEON DEFINE_PER_CPU (bool, kernel_neon_busy);
@@ -1284,8 +1294,7 @@ static int fpsimd_cpu_pm_notifier(struct notifier_block *self, {switch (cmd) {case CPU_PM_ENTER : -fpsimd_save (); -fpsimd_flush_cpu_state (); +fpsimd_save_and_flush_cpu_state ();break ;case CPU_PM_EXIT :break ;
arch/arm64/kvm/fpsimd.c +1 -3
@@ -112,9 +112,7 @@ void kvm_arch_vcpu_put_fp(struct kvm_vcpu *vcpu)if (vcpu->arch.flags &KVM_ARM64_FP_ENABLED ) {u64 *guest_zcr = &vcpu->arch.ctxt.sys_regs[ZCR_EL1 ]; -/* Clean guest FP state to memory and invalidate cpu view */ -fpsimd_save (); -fpsimd_flush_cpu_state (); +fpsimd_save_and_flush_cpu_state ();if (guest_has_sve) *guest_zcr =read_sysreg_s (SYS_ZCR_EL12 );
Signature · 1 line
2.11.0
PATCH v4 3/3 arm64/fpsimd: Don't disable softirq when touching FPSIMD/SVE state
In reply to Julien GrallWhen the kernel is compiled with CONFIG_KERNEL_MODE_NEON, some part of the kernel may be able to use FPSIMD/SVE. This is for instance the case for crypto code.
Any use of FPSIMD/SVE in the kernel are clearly marked by using the function kernel_neon_{begin, end}. Furthermore, this can only be used when may_use_simd() returns true.
The current implementation of may_use_simd() allows softirq to use FPSIMD/SVE unless it is currently in use (i.e kernel_neon_busy is true). When in use, softirqs usually fall back to a software method.
At the moment, as a softirq may use FPSIMD/SVE, softirqs are disabled when touching the FPSIMD/SVE context. This has the drawback to disable all softirqs even if they are not using FPSIMD/SVE.
Since a softirq is supposed to check may_use_simd() anyway before attempting to use FPSIMD/SVE, there is limited reason to keep softirq disabled when touching the FPSIMD/SVE context. Instead, we can simply disable preemption and mark the FPSIMD/SVE context as in use by setting CPU's kernel_neon_busy flag.
Two new helpers {get, put}_cpu_fpsimd_context is introduced to mark the area using FPSIMD/SVE context and uses them in replacement of local_bh_{disable, enable}. The functions kernel_neon_{begin, end} are also re-implemented to use the new helpers.
Additionally, double-underscored versions of the helpers are provided to be used in function called with interrupt masked. They are used for sanity and also help to mark place where the FPSIMD context can be manipulate freely.
The change has been benchmarked on Linux 5.1-rc4 with defconfig.
On Juno2:
* hackbench 100 process 1000 (10 times)
* .7% quicker
On ThunderX 2:
* hackbench 1000 process 1000 (20 times)
* 3.4% quicker
---
Changes in v4:
- Clarify the comment on top of get_cpu_fpsimd_context()
- Use double-underscore version in fpsimd_save_and_flush_cpu_state()
Changes in v3:
- Fix typoes in the commit message
- Rework a bit the commit message
- Use imperative mood
- Rename kernel_neon_busy to fpsimd_context_busy
- Remove debug code
- Update comments
- Don't require preemption when calling fpsimd_save_and_flush_cpu_state()
Changes in v2:
- Remove spurious call to kernel_neon_enable in kernel_neon_begin.
- Rename kernel_neon_{enable, disable} to {get, put}_cpu_fpsimd_context
- Introduce a double-underscore version of the helpers for case where preemption is already disabled
- Introduce have_cpu_fpsimd_context() and use it in WARN_ON(...)
- Surround more places in the code with the new helpers
- Rework the comments
- Update the commit message with the benchmark result
--- arch/arm64/include/asm/simd.h | 10 ++-- arch/arm64/kernel/fpsimd.c | 124 ++++++++++++++++++++++++++++-------------- 2 files changed, 89 insertions(+), 45 deletions(-)
arch/arm64/include/asm/simd.h +5 -5
@@ -15,9 +15,9 @@#include <linux/preempt.h> #include <linux/types.h> -#ifdef CONFIG_KERNEL_MODE_NEON +DECLARE_PER_CPU (bool, fpsimd_context_busy); -DECLARE_PER_CPU (bool, kernel_neon_busy); +#ifdef CONFIG_KERNEL_MODE_NEON /* * may_use_simd - whether it is allowable at this time to issue SIMD
@@ -29,15 +29,15 @@ DECLARE_PER_CPU(bool, kernel_neon_busy);static __must_check inline bool may_use_simd (void ) {/* -* kernel_neon_busy is only set while preemption is disabled, +* fpsimd_context_busy is only set while preemption is disabled, * and is clear whenever preemption is enabled. Since -* this_cpu_read() is atomic w.r.t. preemption, kernel_neon_busy +* this_cpu_read() is atomic w.r.t. preemption, fpsimd_context_busy * cannot change under our feet -- if it's set we cannot be * migrated, and if it's clear we cannot be migrated to a CPU * where it is set. */ return !in_irq () && !irqs_disabled () && !in_nmi () && - !this_cpu_read (kernel_neon_busy); + !this_cpu_read (fpsimd_context_busy); }#else /* ! CONFIG_KERNEL_MODE_NEON */
arch/arm64/kernel/fpsimd.c +84 -40
296 lines not on this page · raw message
Signature · 1 line
2.11.0
Quoted 16 lines · Julien Grall
When the kernel is compiled with
CONFIG_KERNEL_MODE_NEON, some part of the kernel may be able to use FPSIMD/SVE. This is for instance the case for crypto code.Any use of FPSIMD/SVE in the kernel are clearly marked by using the function kernel_neon_{begin, end}. Furthermore, this can only be used when
may_use_simd()returns true.The current implementation of
may_use_simd()allows softirq to use FPSIMD/SVE unless it is currently in use (i.ekernel_neon_busyis true). When in use, softirqs usually fall back to a software method.At the moment, as a softirq may use FPSIMD/SVE, softirqs are disabled when touching the FPSIMD/SVE context. This has the drawback to disable all softirqs even if they are not using FPSIMD/SVE.
Quoted 5 lines
Since a softirq is supposed to check
may_use_simd()anyway before attempting to use FPSIMD/SVE, there is limited reason to keep softirq disabled when touching the FPSIMD/SVE context. Instead, we can simply disable preemption and mark the FPSIMD/SVE context as in use by setting CPU'skernel_neon_busyflag.
fpsimd_context_busy?
Quoted 2 lines
Two new helpers {get, put}_cpu_fpsimd_context is introduced to mark the area using FPSIMD/SVE context and uses them in replacement of
Paragraph mangled during edit?
-> "are introduced ... and they are used to replace ..."
Quoted 7 lines
local_bh_{disable, enable}. The functions kernel_neon_{begin, end} are also re-implemented to use the new helpers.
Additionally, double-underscored versions of the helpers are provided to be used in function called with interrupt masked. They are used for sanity and also help to mark place where the FPSIMD context can be manipulate freely.
For the benefit of other readers, this should be more explicit. Also, the distinction between the normal and __ helpers is that the latter can be caller with preemption disabled.
To clarify the impact, we can say something like
"These are only relevant on paths where irqs are disabled anyway, so they are not needed for correctness in the current code. Let's use them anyway though: this marks the critical sections clearly and will help to avoid mistakes during future maintenance."
[...]
(Sorry to nitpick)
Cheers
---Dave
Hi,
Quoted 17 lines · Dave Martin
Quoted 16 lines · Julien Grall
When the kernel is compiled with
CONFIG_KERNEL_MODE_NEON, some part of the kernel may be able to use FPSIMD/SVE. This is for instance the case for crypto code.Any use of FPSIMD/SVE in the kernel are clearly marked by using the function kernel_neon_{begin, end}. Furthermore, this can only be used when
may_use_simd()returns true.The current implementation of
may_use_simd()allows softirq to use FPSIMD/SVE unless it is currently in use (i.ekernel_neon_busyis true). When in use, softirqs usually fall back to a software method.At the moment, as a softirq may use FPSIMD/SVE, softirqs are disabled when touching the FPSIMD/SVE context. This has the drawback to disable all softirqs even if they are not using FPSIMD/SVE.
Quoted 7 lines
Quoted 5 lines
Since a softirq is supposed to check
may_use_simd()anyway before attempting to use FPSIMD/SVE, there is limited reason to keep softirq disabled when touching the FPSIMD/SVE context. Instead, we can simply disable preemption and mark the FPSIMD/SVE context as in use by setting CPU'skernel_neon_busyflag.
fpsimd_context_busy?
Yes.
Quoted 5 lines
Quoted 3 lines
Two new helpers {get, put}_cpu_fpsimd_context is introduced to mark the area using FPSIMD/SVE context and uses them in replacement of
Paragraph mangled during edit?
Possibly, I will update it.
Quoted 15 lines
-> "are introduced ... and they are used to replace ..."
Quoted 7 lines
local_bh_{disable, enable}. The functions kernel_neon_{begin, end} are also re-implemented to use the new helpers.
Additionally, double-underscored versions of the helpers are provided to be used in function called with interrupt masked. They are used for sanity and also help to mark place where the FPSIMD context can be manipulate freely.
For the benefit of other readers, this should be more explicit. Also, the distinction between the normal and __ helpers is that the latter can be caller with preemption disabled.
Quoted 6 lines
To clarify the impact, we can say something like
"These are only relevant on paths where irqs are disabled anyway, so they are not needed for correctness in the current code. Let's use them anyway though: this marks the critical sections clearly and will help to avoid mistakes during future maintenance."
How about the following commit message?
arm64/fpsimd: Don't disable softirq when touching FPSIMD/SVE state
When the kernel is compiled with CONFIG_KERNEL_MODE_NEON, some part of the kernel may be able to use FPSIMD/SVE. This is for instance the case for crypto code.
Any use of FPSIMD/SVE in the kernel are clearly marked by using the function kernel_neon_{begin, end}. Furthermore, this can only be used when may_use_simd() returns true.
The current implementation of may_use_simd() allows softirq to use FPSIMD/SVE unless it is currently in use (i.e kernel_neon_busy is true). When in use, softirqs usually fall back to a software method.
At the moment, as a softirq may use FPSIMD/SVE, softirqs are disabled when touching the FPSIMD/SVE context. This has the drawback to disable all softirqs even if they are not using FPSIMD/SVE.
Since a softirq is supposed to check may_use_simd() anyway before attempting to use FPSIMD/SVE, there is limited reason to keep softirq disabled when touching the FPSIMD/SVE context. Instead, we can simply disable preemption and mark the FPSIMD/SVE context as in use by setting CPU's fpsimd_context_busy flag.
Two new helpers {get, put}_cpu_fpsimd_context are introduced to mark the area using FPSIMD/SVE context and they are used to replace local_bh_{disable, enable}. The functions kernel_neon_{begin, end} are also re-implemented to use the new helpers.
Additionally, double-underscored versions of the helpers are provided to called when preemption is already disabled. These are only relevant on paths where irqs are disabled anyway, so they are not needed for correctness in the current code. Let's use them anyway though: this marks critical sections clearly and will help to avoid mistakes during future maintenance.
The change has been benchmarked on Linux 5.1-rc4 with defconfig.
On Juno2:
* hackbench 100 process 1000 (10 times)
* .7% quicker
On ThunderX 2:
* hackbench 1000 process 1000 (20 times)
* 3.4% quicker
Quoted 4 lines
[...]
(Sorry to nitpick)
That's fine, I should have be more careful when rework the commit message.
Cheers,
Signature · 1 line
Julien Grall
Dave Martin
Reviewed-byQuoted 91 lines · Julien Grall
Hi,
Quoted 17 lines · Dave Martin
Quoted 16 lines · Julien Grall
When the kernel is compiled with
CONFIG_KERNEL_MODE_NEON, some part of the kernel may be able to use FPSIMD/SVE. This is for instance the case for crypto code.Any use of FPSIMD/SVE in the kernel are clearly marked by using the function kernel_neon_{begin, end}. Furthermore, this can only be used when
may_use_simd()returns true.The current implementation of
may_use_simd()allows softirq to use FPSIMD/SVE unless it is currently in use (i.ekernel_neon_busyis true). When in use, softirqs usually fall back to a software method.At the moment, as a softirq may use FPSIMD/SVE, softirqs are disabled when touching the FPSIMD/SVE context. This has the drawback to disable all softirqs even if they are not using FPSIMD/SVE.
Quoted 7 lines
Quoted 5 lines
Since a softirq is supposed to check
may_use_simd()anyway before attempting to use FPSIMD/SVE, there is limited reason to keep softirq disabled when touching the FPSIMD/SVE context. Instead, we can simply disable preemption and mark the FPSIMD/SVE context as in use by setting CPU'skernel_neon_busyflag.
fpsimd_context_busy?Yes.
Quoted 5 lines
Quoted 3 lines
Two new helpers {get, put}_cpu_fpsimd_context is introduced to mark the area using FPSIMD/SVE context and uses them in replacement of
Paragraph mangled during edit?
Possibly, I will update it.
Quoted 15 lines
-> "are introduced ... and they are used to replace ..."
Quoted 7 lines
local_bh_{disable, enable}. The functions kernel_neon_{begin, end} are also re-implemented to use the new helpers.
Additionally, double-underscored versions of the helpers are provided to be used in function called with interrupt masked. They are used for sanity and also help to mark place where the FPSIMD context can be manipulate freely.
For the benefit of other readers, this should be more explicit. Also, the distinction between the normal and __ helpers is that the latter can be caller with preemption disabled.
Quoted 6 lines
To clarify the impact, we can say something like
"These are only relevant on paths where irqs are disabled anyway, so they are not needed for correctness in the current code. Let's use them anyway though: this marks the critical sections clearly and will help to avoid mistakes during future maintenance."
How about the following commit message?
arm64/fpsimd: Don't disable softirq when touching FPSIMD/SVE state
When the kernel is compiled with
CONFIG_KERNEL_MODE_NEON, some part of the kernel may be able to use FPSIMD/SVE. This is for instance the case for crypto code.Any use of FPSIMD/SVE in the kernel are clearly marked by using the function kernel_neon_{begin, end}. Furthermore, this can only be used when
may_use_simd()returns true.The current implementation of
may_use_simd()allows softirq to use FPSIMD/SVE unless it is currently in use (i.ekernel_neon_busyis true). When in use, softirqs usually fall back to a software method.At the moment, as a softirq may use FPSIMD/SVE, softirqs are disabled when touching the FPSIMD/SVE context. This has the drawback to disable all softirqs even if they are not using FPSIMD/SVE.
Since a softirq is supposed to check
may_use_simd()anyway before attempting to use FPSIMD/SVE, there is limited reason to keep softirq disabled when touching the FPSIMD/SVE context. Instead, we can simply disable preemption and mark the FPSIMD/SVE context as in use by setting CPU'sfpsimd_context_busyflag.Two new helpers {get, put}_cpu_fpsimd_context are introduced to mark the area using FPSIMD/SVE context and they are used to replace local_bh_{disable, enable}. The functions kernel_neon_{begin, end} are also re-implemented to use the new helpers.
Quoted 6 lines
Additionally, double-underscored versions of the helpers are provided to called when preemption is already disabled. These are only relevant on paths where irqs are disabled anyway, so they are not needed for correctness in the current code. Let's use them anyway though: this marks critical sections clearly and will help to avoid mistakes during future maintenance.
Looks good to me.
(For the diff as well as the commit message, obviously.)
Cheers
---Dave
Hi Dave,
Quoted 99 lines · Dave Martin
Quoted 91 lines · Julien Grall
Hi,
Quoted 17 lines · Dave Martin
Quoted 16 lines · Julien Grall
When the kernel is compiled with
CONFIG_KERNEL_MODE_NEON, some part of the kernel may be able to use FPSIMD/SVE. This is for instance the case for crypto code.Any use of FPSIMD/SVE in the kernel are clearly marked by using the function kernel_neon_{begin, end}. Furthermore, this can only be used when
may_use_simd()returns true.The current implementation of
may_use_simd()allows softirq to use FPSIMD/SVE unless it is currently in use (i.ekernel_neon_busyis true). When in use, softirqs usually fall back to a software method.At the moment, as a softirq may use FPSIMD/SVE, softirqs are disabled when touching the FPSIMD/SVE context. This has the drawback to disable all softirqs even if they are not using FPSIMD/SVE.
Quoted 7 lines
Quoted 5 lines
Since a softirq is supposed to check
may_use_simd()anyway before attempting to use FPSIMD/SVE, there is limited reason to keep softirq disabled when touching the FPSIMD/SVE context. Instead, we can simply disable preemption and mark the FPSIMD/SVE context as in use by setting CPU'skernel_neon_busyflag.
fpsimd_context_busy?Yes.
Quoted 5 lines
Quoted 3 lines
Two new helpers {get, put}_cpu_fpsimd_context is introduced to mark the area using FPSIMD/SVE context and uses them in replacement of
Paragraph mangled during edit?
Possibly, I will update it.
Quoted 15 lines
-> "are introduced ... and they are used to replace ..."
Quoted 7 lines
local_bh_{disable, enable}. The functions kernel_neon_{begin, end} are also re-implemented to use the new helpers.
Additionally, double-underscored versions of the helpers are provided to be used in function called with interrupt masked. They are used for sanity and also help to mark place where the FPSIMD context can be manipulate freely.
For the benefit of other readers, this should be more explicit. Also, the distinction between the normal and __ helpers is that the latter can be caller with preemption disabled.
Quoted 6 lines
To clarify the impact, we can say something like
"These are only relevant on paths where irqs are disabled anyway, so they are not needed for correctness in the current code. Let's use them anyway though: this marks the critical sections clearly and will help to avoid mistakes during future maintenance."
How about the following commit message?
arm64/fpsimd: Don't disable softirq when touching FPSIMD/SVE state
When the kernel is compiled with
CONFIG_KERNEL_MODE_NEON, some part of the kernel may be able to use FPSIMD/SVE. This is for instance the case for crypto code.Any use of FPSIMD/SVE in the kernel are clearly marked by using the function kernel_neon_{begin, end}. Furthermore, this can only be used when
may_use_simd()returns true.The current implementation of
may_use_simd()allows softirq to use FPSIMD/SVE unless it is currently in use (i.ekernel_neon_busyis true). When in use, softirqs usually fall back to a software method.At the moment, as a softirq may use FPSIMD/SVE, softirqs are disabled when touching the FPSIMD/SVE context. This has the drawback to disable all softirqs even if they are not using FPSIMD/SVE.
Since a softirq is supposed to check
may_use_simd()anyway before attempting to use FPSIMD/SVE, there is limited reason to keep softirq disabled when touching the FPSIMD/SVE context. Instead, we can simply disable preemption and mark the FPSIMD/SVE context as in use by setting CPU'sfpsimd_context_busyflag.Two new helpers {get, put}_cpu_fpsimd_context are introduced to mark the area using FPSIMD/SVE context and they are used to replace local_bh_{disable, enable}. The functions kernel_neon_{begin, end} are also re-implemented to use the new helpers.
Quoted 6 lines
Additionally, double-underscored versions of the helpers are provided to called when preemption is already disabled. These are only relevant on paths where irqs are disabled anyway, so they are not needed for correctness in the current code. Let's use them anyway though: this marks critical sections clearly and will help to avoid mistakes during future maintenance.
Quoted 5 lines
Looks good to me.
Reviewed-by Dave Martin <[email protected]>(For the diff as well as the commit message, obviously.)
Thank you! I will resend the series once rc1 has been cut.
Cheers,
Signature · 1 line
Julien Grall