* Re: [PATCH] arm64: Remove the ARCH_FORCE_MAX_ORDER config input prompt
2023-05-19 17:14 [PATCH] arm64: Remove the ARCH_FORCE_MAX_ORDER config input prompt Catalin Marinas
@ 2023-05-23 16:12 ` Mike Rapoport
2023-05-24 6:20 ` Anshuman Khandual
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Mike Rapoport @ 2023-05-23 16:12 UTC (permalink / raw)
To: Catalin Marinas
Cc: Will Deacon, linux-arm-kernel, Ard Biesheuvel, Marc Zyngier,
Andrew Morton, Justin M . Forbes
On Fri, May 19, 2023 at 06:14:40PM +0100, Catalin Marinas wrote:
> Commit 34affcd7577a ("arm64: drop ranges in definition of
> ARCH_FORCE_MAX_ORDER") dropped the ranges from the config entry and
> introduced an EXPERT condition on the input prompt instead.
>
> However, starting with defconfig (ARCH_FORCE_MAX_ORDER of 10) and
> setting ARM64_64K_PAGES together with EXPERT leaves MAX_ORDER 10 which
> fails to build in this configuration.
>
> Drop the input prompt for ARCH_FORCE_MAX_ORDER completely so that it's
> no longer configurable. People requiring a higher MAX_ORDER should send
> a patch changing the default, together with proper justification.
>
> Fixes: 34affcd7577a ("arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER")
> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
> Reported-by: Marc Zyngier <maz@kernel.org>
> Cc: Will Deacon <will@kernel.org>
> Cc: Mike Rapoport <rppt@kernel.org>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Justin M. Forbes <jforbes@fedoraproject.org>
Acked-by: Mike Rapoport (IBM) <rppt@kernel.org>
> ---
> arch/arm64/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index b1201d25a8a4..343e1e1cae10 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -1516,7 +1516,7 @@ config XEN
> # 16K | 27 | 14 | 13 | 11 |
> # 64K | 29 | 16 | 13 | 13 |
> config ARCH_FORCE_MAX_ORDER
> - int "Order of maximal physically contiguous allocations" if EXPERT && (ARM64_4K_PAGES || ARM64_16K_PAGES)
> + int
> default "13" if ARM64_64K_PAGES
> default "11" if ARM64_16K_PAGES
> default "10"
--
Sincerely yours,
Mike.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] arm64: Remove the ARCH_FORCE_MAX_ORDER config input prompt
2023-05-19 17:14 [PATCH] arm64: Remove the ARCH_FORCE_MAX_ORDER config input prompt Catalin Marinas
2023-05-23 16:12 ` Mike Rapoport
@ 2023-05-24 6:20 ` Anshuman Khandual
2023-05-29 13:41 ` Marc Zyngier
2023-06-02 12:33 ` Will Deacon
3 siblings, 0 replies; 5+ messages in thread
From: Anshuman Khandual @ 2023-05-24 6:20 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon
Cc: linux-arm-kernel, Ard Biesheuvel, Marc Zyngier, Mike Rapoport,
Andrew Morton, Justin M . Forbes
On 5/19/23 22:44, Catalin Marinas wrote:
> Commit 34affcd7577a ("arm64: drop ranges in definition of
> ARCH_FORCE_MAX_ORDER") dropped the ranges from the config entry and
> introduced an EXPERT condition on the input prompt instead.
>
> However, starting with defconfig (ARCH_FORCE_MAX_ORDER of 10) and
> setting ARM64_64K_PAGES together with EXPERT leaves MAX_ORDER 10 which
> fails to build in this configuration.
>
> Drop the input prompt for ARCH_FORCE_MAX_ORDER completely so that it's
> no longer configurable. People requiring a higher MAX_ORDER should send
> a patch changing the default, together with proper justification.
>
> Fixes: 34affcd7577a ("arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER")
> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
> Reported-by: Marc Zyngier <maz@kernel.org>
> Cc: Will Deacon <will@kernel.org>
> Cc: Mike Rapoport <rppt@kernel.org>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Justin M. Forbes <jforbes@fedoraproject.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
> ---
> arch/arm64/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index b1201d25a8a4..343e1e1cae10 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -1516,7 +1516,7 @@ config XEN
> # 16K | 27 | 14 | 13 | 11 |
> # 64K | 29 | 16 | 13 | 13 |
> config ARCH_FORCE_MAX_ORDER
> - int "Order of maximal physically contiguous allocations" if EXPERT && (ARM64_4K_PAGES || ARM64_16K_PAGES)
> + int
> default "13" if ARM64_64K_PAGES
> default "11" if ARM64_16K_PAGES
> default "10"
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] arm64: Remove the ARCH_FORCE_MAX_ORDER config input prompt
2023-05-19 17:14 [PATCH] arm64: Remove the ARCH_FORCE_MAX_ORDER config input prompt Catalin Marinas
2023-05-23 16:12 ` Mike Rapoport
2023-05-24 6:20 ` Anshuman Khandual
@ 2023-05-29 13:41 ` Marc Zyngier
2023-06-02 12:33 ` Will Deacon
3 siblings, 0 replies; 5+ messages in thread
From: Marc Zyngier @ 2023-05-29 13:41 UTC (permalink / raw)
To: Catalin Marinas
Cc: Will Deacon, linux-arm-kernel, Ard Biesheuvel, Mike Rapoport,
Andrew Morton, Justin M . Forbes
On Fri, 19 May 2023 18:14:40 +0100,
Catalin Marinas <catalin.marinas@arm.com> wrote:
>
> Commit 34affcd7577a ("arm64: drop ranges in definition of
> ARCH_FORCE_MAX_ORDER") dropped the ranges from the config entry and
> introduced an EXPERT condition on the input prompt instead.
>
> However, starting with defconfig (ARCH_FORCE_MAX_ORDER of 10) and
> setting ARM64_64K_PAGES together with EXPERT leaves MAX_ORDER 10 which
> fails to build in this configuration.
>
> Drop the input prompt for ARCH_FORCE_MAX_ORDER completely so that it's
> no longer configurable. People requiring a higher MAX_ORDER should send
> a patch changing the default, together with proper justification.
>
> Fixes: 34affcd7577a ("arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER")
> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
> Reported-by: Marc Zyngier <maz@kernel.org>
> Cc: Will Deacon <will@kernel.org>
> Cc: Mike Rapoport <rppt@kernel.org>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Justin M. Forbes <jforbes@fedoraproject.org>
Acked-by: Marc Zyngier <maz@kernel.org>
M.
--
Without deviation from the norm, progress is not possible.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] arm64: Remove the ARCH_FORCE_MAX_ORDER config input prompt
2023-05-19 17:14 [PATCH] arm64: Remove the ARCH_FORCE_MAX_ORDER config input prompt Catalin Marinas
` (2 preceding siblings ...)
2023-05-29 13:41 ` Marc Zyngier
@ 2023-06-02 12:33 ` Will Deacon
3 siblings, 0 replies; 5+ messages in thread
From: Will Deacon @ 2023-06-02 12:33 UTC (permalink / raw)
To: Catalin Marinas
Cc: kernel-team, Will Deacon, Mike Rapoport, Ard Biesheuvel,
Andrew Morton, linux-arm-kernel, Marc Zyngier, Justin M . Forbes
On Fri, 19 May 2023 18:14:40 +0100, Catalin Marinas wrote:
> Commit 34affcd7577a ("arm64: drop ranges in definition of
> ARCH_FORCE_MAX_ORDER") dropped the ranges from the config entry and
> introduced an EXPERT condition on the input prompt instead.
>
> However, starting with defconfig (ARCH_FORCE_MAX_ORDER of 10) and
> setting ARM64_64K_PAGES together with EXPERT leaves MAX_ORDER 10 which
> fails to build in this configuration.
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: Remove the ARCH_FORCE_MAX_ORDER config input prompt
https://git.kernel.org/arm64/c/f3c3762178fa
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread