* [merged mm-nonmm-stable] cpumask-limit-visibility-of-force_nr_cpus.patch removed from -mm tree
@ 2022-12-01 0:14 Andrew Morton
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Morton @ 2022-12-01 0:14 UTC (permalink / raw)
To: mm-commits, vschneid, vbabka, torvalds, tglx, sfr, sander,
peterz, paulmck, linux, klimov.linux, geert, ebiggers, dvyukov,
andriy.shevchenko, yury.norov, akpm
The quilt patch titled
Subject: cpumask: limit visibility of FORCE_NR_CPUS
has been removed from the -mm tree. Its filename was
cpumask-limit-visibility-of-force_nr_cpus.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Yury Norov <yury.norov@gmail.com>
Subject: cpumask: limit visibility of FORCE_NR_CPUS
Date: Wed, 16 Nov 2022 09:24:51 -0800
In current form, FORCE_NR_CPUS is visible to all users building their
kernels, even not experts. It is also set in allmodconfig or
allyesconfig, which is not a correct behavior.
This patch fixes it. It also changes the parameter short description:
removes implementation details and highlights the effect of the change.
Link: https://lkml.kernel.org/r/20221116172451.274938-1-yury.norov@gmail.com
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
Cc: Alexey Klimov <klimov.linux@gmail.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Eric Biggers <ebiggers@google.com>
Cc: Paul E. McKenney <paulmck@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Sander Vanheule <sander@svanheule.net>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/lib/Kconfig~cpumask-limit-visibility-of-force_nr_cpus
+++ a/lib/Kconfig
@@ -529,8 +529,8 @@ config CPUMASK_OFFSTACK
stack overflow.
config FORCE_NR_CPUS
- bool "NR_CPUS is set to an actual number of CPUs"
- depends on SMP
+ bool "Set number of CPUs at compile time"
+ depends on SMP && EXPERT && !COMPILE_TEST
help
Say Yes if you have NR_CPUS set to an actual number of possible
CPUs in your system, not to a default value. This forces the core
_
Patches currently in -mm which might be from yury.norov@gmail.com are
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [merged mm-nonmm-stable] cpumask-limit-visibility-of-force_nr_cpus.patch removed from -mm tree
2022-11-15 23:13 ` Yury Norov
@ 2022-11-15 23:23 ` Andrew Morton
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Morton @ 2022-11-15 23:23 UTC (permalink / raw)
To: Yury Norov
Cc: mm-commits, vschneid, vbabka, torvalds, tglx, sfr, sander,
peterz, paulmck, linux, klimov.linux, geert, ebiggers, dvyukov,
andriy.shevchenko
On Tue, 15 Nov 2022 15:13:26 -0800 Yury Norov <yury.norov@gmail.com> wrote:
> On Tue, Nov 15, 2022 at 02:32:20PM -0800, Andrew Morton wrote:
> >
> > The quilt patch titled
> > Subject: cpumask: limit visibility of FORCE_NR_CPUS
> > has been removed from the -mm tree. Its filename was
> > cpumask-limit-visibility-of-force_nr_cpus.patch
> >
> > This patch was dropped because it was merged into the mm-nonmm-stable branch
> > of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
>
> Andrew,
>
> I need to send v3 for this.
argh, it's been a month.
> Can you please exclude this?
I'll take a look when you send v3.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [merged mm-nonmm-stable] cpumask-limit-visibility-of-force_nr_cpus.patch removed from -mm tree
2022-11-15 22:32 Andrew Morton
@ 2022-11-15 23:13 ` Yury Norov
2022-11-15 23:23 ` Andrew Morton
0 siblings, 1 reply; 4+ messages in thread
From: Yury Norov @ 2022-11-15 23:13 UTC (permalink / raw)
To: Andrew Morton
Cc: mm-commits, vschneid, vbabka, torvalds, tglx, sfr, sander,
peterz, paulmck, linux, klimov.linux, geert, ebiggers, dvyukov,
andriy.shevchenko
On Tue, Nov 15, 2022 at 02:32:20PM -0800, Andrew Morton wrote:
>
> The quilt patch titled
> Subject: cpumask: limit visibility of FORCE_NR_CPUS
> has been removed from the -mm tree. Its filename was
> cpumask-limit-visibility-of-force_nr_cpus.patch
>
> This patch was dropped because it was merged into the mm-nonmm-stable branch
> of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Andrew,
I need to send v3 for this. Can you please exclude this?
Thanks,
Yury
>
> ------------------------------------------------------
> From: Yury Norov <yury.norov@gmail.com>
> Subject: cpumask: limit visibility of FORCE_NR_CPUS
> Date: Wed, 19 Oct 2022 15:59:39 -0700
>
> In current form, FORCE_NR_CPUS is visible to all users building their
> kernels, even not experts. It is also set in allmodconfig or
> allyesconfig, which is not a correct behavior.
>
> The 'choice' and unused config UNFORCE_NR_CPUS are used to ensure that
> auto-generated configs that try to enable as much options as possible,
> like allmodconfig, don't enable FORCE_NR_CPUS.
>
> Link: https://lkml.kernel.org/r/20221019225939.1646349-1-yury.norov@gmail.com
> Signed-off-by: Yury Norov <yury.norov@gmail.com>
> Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
> Cc: Alexey Klimov <klimov.linux@gmail.com>
> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Cc: Dmitry Vyukov <dvyukov@google.com>
> Cc: Eric Biggers <ebiggers@google.com>
> Cc: Paul E. McKenney <paulmck@kernel.org>
> Cc: Peter Zijlstra <peterz@infradead.org>
> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
> Cc: Sander Vanheule <sander@svanheule.net>
> Cc: Stephen Rothwell <sfr@canb.auug.org.au>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Valentin Schneider <vschneid@redhat.com>
> Cc: Vlastimil Babka <vbabka@suse.cz>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> lib/Kconfig | 31 ++++++++++++++++++++++++-------
> 1 file changed, 24 insertions(+), 7 deletions(-)
>
> --- a/lib/Kconfig~cpumask-limit-visibility-of-force_nr_cpus
> +++ a/lib/Kconfig
> @@ -528,14 +528,31 @@ config CPUMASK_OFFSTACK
> them on the stack. This is a bit more expensive, but avoids
> stack overflow.
>
> +choice
> + prompt "Number of CPUs detection method"
> + default UNFORCE_NR_CPUS
> + depends on SMP && EXPERT
> + help
> + Select between boot-time and compile-time detection of number
> + of CPUs. If it's possible to provide exact number of CPUs at
> + compile-time, kernel code may be optimized better.
> + For general-purpose kernel, choose "boot time" option.
> +
> +config UNFORCE_NR_CPUS
> + bool "Set number of CPUs at boot time"
> + help
> + Choose it if you build general-purpose kernel and want to rely
> + on kernel to detect actual number of CPUs.
> +
> config FORCE_NR_CPUS
> - bool "NR_CPUS is set to an actual number of CPUs"
> - depends on SMP
> - help
> - Say Yes if you have NR_CPUS set to an actual number of possible
> - CPUs in your system, not to a default value. This forces the core
> - code to rely on compile-time value and optimize kernel routines
> - better.
> + bool "Set number of CPUs at compile time"
> + help
> + Choose it if NR_CPUS corresponds to an actual number of
> + possible CPUs in your system. This forces the core code
> + to rely on compile-time value and optimize kernel routines
> + better.
> +
> +endchoice
>
> config CPU_RMAP
> bool
> _
>
> Patches currently in -mm which might be from yury.norov@gmail.com are
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [merged mm-nonmm-stable] cpumask-limit-visibility-of-force_nr_cpus.patch removed from -mm tree
@ 2022-11-15 22:32 Andrew Morton
2022-11-15 23:13 ` Yury Norov
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2022-11-15 22:32 UTC (permalink / raw)
To: mm-commits, vschneid, vbabka, torvalds, tglx, sfr, sander,
peterz, paulmck, linux, klimov.linux, geert, ebiggers, dvyukov,
andriy.shevchenko, yury.norov, akpm
The quilt patch titled
Subject: cpumask: limit visibility of FORCE_NR_CPUS
has been removed from the -mm tree. Its filename was
cpumask-limit-visibility-of-force_nr_cpus.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Yury Norov <yury.norov@gmail.com>
Subject: cpumask: limit visibility of FORCE_NR_CPUS
Date: Wed, 19 Oct 2022 15:59:39 -0700
In current form, FORCE_NR_CPUS is visible to all users building their
kernels, even not experts. It is also set in allmodconfig or
allyesconfig, which is not a correct behavior.
The 'choice' and unused config UNFORCE_NR_CPUS are used to ensure that
auto-generated configs that try to enable as much options as possible,
like allmodconfig, don't enable FORCE_NR_CPUS.
Link: https://lkml.kernel.org/r/20221019225939.1646349-1-yury.norov@gmail.com
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Alexey Klimov <klimov.linux@gmail.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Eric Biggers <ebiggers@google.com>
Cc: Paul E. McKenney <paulmck@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Sander Vanheule <sander@svanheule.net>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Valentin Schneider <vschneid@redhat.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/Kconfig | 31 ++++++++++++++++++++++++-------
1 file changed, 24 insertions(+), 7 deletions(-)
--- a/lib/Kconfig~cpumask-limit-visibility-of-force_nr_cpus
+++ a/lib/Kconfig
@@ -528,14 +528,31 @@ config CPUMASK_OFFSTACK
them on the stack. This is a bit more expensive, but avoids
stack overflow.
+choice
+ prompt "Number of CPUs detection method"
+ default UNFORCE_NR_CPUS
+ depends on SMP && EXPERT
+ help
+ Select between boot-time and compile-time detection of number
+ of CPUs. If it's possible to provide exact number of CPUs at
+ compile-time, kernel code may be optimized better.
+ For general-purpose kernel, choose "boot time" option.
+
+config UNFORCE_NR_CPUS
+ bool "Set number of CPUs at boot time"
+ help
+ Choose it if you build general-purpose kernel and want to rely
+ on kernel to detect actual number of CPUs.
+
config FORCE_NR_CPUS
- bool "NR_CPUS is set to an actual number of CPUs"
- depends on SMP
- help
- Say Yes if you have NR_CPUS set to an actual number of possible
- CPUs in your system, not to a default value. This forces the core
- code to rely on compile-time value and optimize kernel routines
- better.
+ bool "Set number of CPUs at compile time"
+ help
+ Choose it if NR_CPUS corresponds to an actual number of
+ possible CPUs in your system. This forces the core code
+ to rely on compile-time value and optimize kernel routines
+ better.
+
+endchoice
config CPU_RMAP
bool
_
Patches currently in -mm which might be from yury.norov@gmail.com are
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-12-01 0:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-01 0:14 [merged mm-nonmm-stable] cpumask-limit-visibility-of-force_nr_cpus.patch removed from -mm tree Andrew Morton
-- strict thread matches above, loose matches on Subject: below --
2022-11-15 22:32 Andrew Morton
2022-11-15 23:13 ` Yury Norov
2022-11-15 23:23 ` Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.