* [PATCH] mips: drop ranges for definition of ARCH_FORCE_MAX_ORDER
@ 2023-03-22 8:15 Mike Rapoport
2023-03-22 8:24 ` Mike Rapoport
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Mike Rapoport @ 2023-03-22 8:15 UTC (permalink / raw)
To: Thomas Bogendoerfer
Cc: Andrew Morton, Huacai Chen, Kirill A. Shutemov,
Kirill A. Shutemov, Mike Rapoport, WANG Xuerui, linux-kernel,
linux-mm, linux-mips
From: "Mike Rapoport (IBM)" <rppt@kernel.org>
MIPS defines insane ranges for ARCH_FORCE_MAX_ORDER allowing MAX_ORDER
up to 63, which implies maximal contiguous allocation size of 2^63
pages.
Drop bogus definitions of ranges for ARCH_FORCE_MAX_ORDER and leave it a
simple integer with sensible defaults.
Users that *really* need to change the value of ARCH_FORCE_MAX_ORDER
will be able to do so but they won't be mislead by the bogus ranges.
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
---
arch/mips/Kconfig | 4 ----
1 file changed, 4 deletions(-)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 3e8b765b8c7b..a0f6e9d0a561 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2137,13 +2137,9 @@ endchoice
config ARCH_FORCE_MAX_ORDER
int "Maximum zone order"
- range 13 63 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
- range 12 63 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
- range 11 63 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
default "11" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
- range 0 63
default "10"
help
The kernel memory allocator divides physically contiguous memory
--
2.35.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mips: drop ranges for definition of ARCH_FORCE_MAX_ORDER
2023-03-22 8:15 [PATCH] mips: drop ranges for definition of ARCH_FORCE_MAX_ORDER Mike Rapoport
@ 2023-03-22 8:24 ` Mike Rapoport
2023-03-22 8:59 ` Thomas Bogendoerfer
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Mike Rapoport @ 2023-03-22 8:24 UTC (permalink / raw)
To: Thomas Bogendoerfer
Cc: Andrew Morton, Huacai Chen, Kirill A. Shutemov,
Kirill A. Shutemov, WANG Xuerui, linux-kernel, linux-mm,
linux-mips
Forgot to mention that the patch is on top of akpm/mm-unstable
On Wed, Mar 22, 2023 at 10:15:20AM +0200, Mike Rapoport wrote:
> From: "Mike Rapoport (IBM)" <rppt@kernel.org>
>
> MIPS defines insane ranges for ARCH_FORCE_MAX_ORDER allowing MAX_ORDER
> up to 63, which implies maximal contiguous allocation size of 2^63
> pages.
>
> Drop bogus definitions of ranges for ARCH_FORCE_MAX_ORDER and leave it a
> simple integer with sensible defaults.
>
> Users that *really* need to change the value of ARCH_FORCE_MAX_ORDER
> will be able to do so but they won't be mislead by the bogus ranges.
>
> Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
> ---
> arch/mips/Kconfig | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
> index 3e8b765b8c7b..a0f6e9d0a561 100644
> --- a/arch/mips/Kconfig
> +++ b/arch/mips/Kconfig
> @@ -2137,13 +2137,9 @@ endchoice
>
> config ARCH_FORCE_MAX_ORDER
> int "Maximum zone order"
> - range 13 63 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
> default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
> - range 12 63 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
> default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
> - range 11 63 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
> default "11" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
> - range 0 63
> default "10"
> help
> The kernel memory allocator divides physically contiguous memory
> --
> 2.35.1
>
--
Sincerely yours,
Mike.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mips: drop ranges for definition of ARCH_FORCE_MAX_ORDER
2023-03-22 8:15 [PATCH] mips: drop ranges for definition of ARCH_FORCE_MAX_ORDER Mike Rapoport
2023-03-22 8:24 ` Mike Rapoport
@ 2023-03-22 8:59 ` Thomas Bogendoerfer
2023-03-22 10:02 ` Kirill A. Shutemov
2023-03-22 17:14 ` David Hildenbrand
3 siblings, 0 replies; 5+ messages in thread
From: Thomas Bogendoerfer @ 2023-03-22 8:59 UTC (permalink / raw)
To: Mike Rapoport
Cc: Andrew Morton, Huacai Chen, Kirill A. Shutemov,
Kirill A. Shutemov, WANG Xuerui, linux-kernel, linux-mm,
linux-mips
On Wed, Mar 22, 2023 at 10:15:20AM +0200, Mike Rapoport wrote:
> From: "Mike Rapoport (IBM)" <rppt@kernel.org>
>
> MIPS defines insane ranges for ARCH_FORCE_MAX_ORDER allowing MAX_ORDER
> up to 63, which implies maximal contiguous allocation size of 2^63
> pages.
>
> Drop bogus definitions of ranges for ARCH_FORCE_MAX_ORDER and leave it a
> simple integer with sensible defaults.
>
> Users that *really* need to change the value of ARCH_FORCE_MAX_ORDER
> will be able to do so but they won't be mislead by the bogus ranges.
>
> Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
> ---
> arch/mips/Kconfig | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
> index 3e8b765b8c7b..a0f6e9d0a561 100644
> --- a/arch/mips/Kconfig
> +++ b/arch/mips/Kconfig
> @@ -2137,13 +2137,9 @@ endchoice
>
> config ARCH_FORCE_MAX_ORDER
> int "Maximum zone order"
> - range 13 63 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
> default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
> - range 12 63 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
> default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
> - range 11 63 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
> default "11" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
> - range 0 63
> default "10"
> help
> The kernel memory allocator divides physically contiguous memory
> --
> 2.35.1
Thank you for cleaning this up.
Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mips: drop ranges for definition of ARCH_FORCE_MAX_ORDER
2023-03-22 8:15 [PATCH] mips: drop ranges for definition of ARCH_FORCE_MAX_ORDER Mike Rapoport
2023-03-22 8:24 ` Mike Rapoport
2023-03-22 8:59 ` Thomas Bogendoerfer
@ 2023-03-22 10:02 ` Kirill A. Shutemov
2023-03-22 17:14 ` David Hildenbrand
3 siblings, 0 replies; 5+ messages in thread
From: Kirill A. Shutemov @ 2023-03-22 10:02 UTC (permalink / raw)
To: Mike Rapoport
Cc: Thomas Bogendoerfer, Andrew Morton, Huacai Chen,
Kirill A. Shutemov, WANG Xuerui, linux-kernel, linux-mm,
linux-mips
On Wed, Mar 22, 2023 at 10:15:20AM +0200, Mike Rapoport wrote:
> From: "Mike Rapoport (IBM)" <rppt@kernel.org>
>
> MIPS defines insane ranges for ARCH_FORCE_MAX_ORDER allowing MAX_ORDER
> up to 63, which implies maximal contiguous allocation size of 2^63
> pages.
>
> Drop bogus definitions of ranges for ARCH_FORCE_MAX_ORDER and leave it a
> simple integer with sensible defaults.
>
> Users that *really* need to change the value of ARCH_FORCE_MAX_ORDER
> will be able to do so but they won't be mislead by the bogus ranges.
>
> Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
--
Kiryl Shutsemau / Kirill A. Shutemov
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mips: drop ranges for definition of ARCH_FORCE_MAX_ORDER
2023-03-22 8:15 [PATCH] mips: drop ranges for definition of ARCH_FORCE_MAX_ORDER Mike Rapoport
` (2 preceding siblings ...)
2023-03-22 10:02 ` Kirill A. Shutemov
@ 2023-03-22 17:14 ` David Hildenbrand
3 siblings, 0 replies; 5+ messages in thread
From: David Hildenbrand @ 2023-03-22 17:14 UTC (permalink / raw)
To: Mike Rapoport, Thomas Bogendoerfer
Cc: Andrew Morton, Huacai Chen, Kirill A. Shutemov,
Kirill A. Shutemov, WANG Xuerui, linux-kernel, linux-mm,
linux-mips
On 22.03.23 09:15, Mike Rapoport wrote:
> From: "Mike Rapoport (IBM)" <rppt@kernel.org>
>
> MIPS defines insane ranges for ARCH_FORCE_MAX_ORDER allowing MAX_ORDER
> up to 63, which implies maximal contiguous allocation size of 2^63
> pages.
>
> Drop bogus definitions of ranges for ARCH_FORCE_MAX_ORDER and leave it a
> simple integer with sensible defaults.
>
> Users that *really* need to change the value of ARCH_FORCE_MAX_ORDER
> will be able to do so but they won't be mislead by the bogus ranges.
>
> Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
> ---
> arch/mips/Kconfig | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
> index 3e8b765b8c7b..a0f6e9d0a561 100644
> --- a/arch/mips/Kconfig
> +++ b/arch/mips/Kconfig
> @@ -2137,13 +2137,9 @@ endchoice
>
> config ARCH_FORCE_MAX_ORDER
> int "Maximum zone order"
> - range 13 63 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
> default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
> - range 12 63 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
> default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
> - range 11 63 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
> default "11" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
> - range 0 63
> default "10"
> help
> The kernel memory allocator divides physically contiguous memory
Reviewed-by: David Hildenbrand <david@redhat.com>
--
Thanks,
David / dhildenb
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-03-22 17:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-22 8:15 [PATCH] mips: drop ranges for definition of ARCH_FORCE_MAX_ORDER Mike Rapoport
2023-03-22 8:24 ` Mike Rapoport
2023-03-22 8:59 ` Thomas Bogendoerfer
2023-03-22 10:02 ` Kirill A. Shutemov
2023-03-22 17:14 ` David Hildenbrand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox