From patchwork Wed Mar 22 08:15:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13183655 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82355C6FD1F for ; Wed, 22 Mar 2023 08:15:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229645AbjCVIPl (ORCPT ); Wed, 22 Mar 2023 04:15:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229783AbjCVIPk (ORCPT ); Wed, 22 Mar 2023 04:15:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6604057D03; Wed, 22 Mar 2023 01:15:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EC1EE61ED0; Wed, 22 Mar 2023 08:15:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E366C433EF; Wed, 22 Mar 2023 08:15:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679472934; bh=8aB9JsR4x+4YOZELTOL8u+ID1lYD3Uivc3LtlNrOVcM=; h=From:To:Cc:Subject:Date:From; b=XYRff+A6NWpR1LCJrBdkefih2ejzbGyzba+yQU5u7itfVPhq3JWXY+knlS41jJJ+B 8mjAgYA5TKDAxqukGBvSSSLfpkXsH127m42apyHEhbOQFXCH+rmfTxUG8l3FeEglzL Ure0yYnCOS3do8GPI/iyR5VCDazFc16VpprhLWljKe25WnDtsdB5vQJf9AAbPIPqdc Q8BpVGWHIuce5YuZtgPoXRKGrEeyt2H7ivwZ4KtBCvHGYiPZkxacJiL8YAzFGWihxy +F6uqz1CNJqH7Of3g8U0ygKJh6NbfuppbsRvzyEXcQ5OcPylo5xlJAADeDISVlLPcj 8H65ie1J0FDSw== From: Mike Rapoport To: Thomas Bogendoerfer Cc: Andrew Morton , Huacai Chen , "Kirill A. Shutemov" , "Kirill A. Shutemov" , Mike Rapoport , WANG Xuerui , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-mips@vger.kernel.org Subject: [PATCH] mips: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Wed, 22 Mar 2023 10:15:20 +0200 Message-Id: <20230322081520.2516226-1-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org From: "Mike Rapoport (IBM)" 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) Acked-by: Thomas Bogendoerfer Acked-by: Kirill A. Shutemov Reviewed-by: David Hildenbrand --- 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