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: 13183657 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2956C6FD1F for ; Wed, 22 Mar 2023 08:15:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 76A166B0075; Wed, 22 Mar 2023 04:15:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6F34C6B0078; Wed, 22 Mar 2023 04:15:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 593C06B007B; Wed, 22 Mar 2023 04:15:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 459F56B0075 for ; Wed, 22 Mar 2023 04:15:39 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 03F8E16036F for ; Wed, 22 Mar 2023 08:15:38 +0000 (UTC) X-FDA: 80595825198.24.B095B5D Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf21.hostedemail.com (Postfix) with ESMTP id 388611C0018 for ; Wed, 22 Mar 2023 08:15:36 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=XYRff+A6; spf=pass (imf21.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679472937; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=4XddvRGJJ5yiYY08oEMsVaFHT4Dk6QqSsxZeEm0k6/M=; b=oDK1fR8Sp7lQx0HykKctlQxPRbGxWRtruk0r5iLMWfVpeKA21xvhnM/mD05HRdmMIimNrH FyJ46tlfvi+zuMCqkbQvxaD/CZ4iL/sc8ILMNsI11FUSzy4FtBCVnj/xalR9fP1t/O5/cL RxQsWtksjNBlCiaIah8khb7A4kUPDX0= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=XYRff+A6; spf=pass (imf21.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679472937; a=rsa-sha256; cv=none; b=2QMZG5KIoF8v42j/uhiilkxF74ucfB8kc3L0cv3LuY8GQ4Dd7eEOZ2fJTDBm/esbfc0qCK WuXQuEhMWJzGvV3ImHJGOmvBOS3dLn/5MR/ppDyBOclO8lKF+gbZ57dLAuDbbSksF7KRqd bbFEfSnUldSRXWdiF1LZxz1HubcQspA= 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 ams.source.kernel.org (Postfix) with ESMTPS id 8BC45B81A34; Wed, 22 Mar 2023 08:15:35 +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 X-Stat-Signature: t87p9u79jwjkgbufhqy67hheuh1t55h1 X-Rspam-User: X-Rspamd-Queue-Id: 388611C0018 X-Rspamd-Server: rspam06 X-HE-Tag: 1679472936-793398 X-HE-Meta: U2FsdGVkX1+1a9Jn9Rk9zsut2Hh9VIGps3MAgfm0yEkp36AQQKYk1rl+/t0oTPc/FBQ5R4HrZLpDNWh22pk1zf6AedGWffHrUrnjOXA3n5u14PdmfMtYAlbVa6ByR0Dz617Yuvmi+x39iAGldi7gvksbHwQZsidIMvvuWaWuTJ+3URMlaZzKK/OP6qFRrggUcFZQjp5nYrytrQyZJHABwAj1rhp24uOhK7FwNrl5dvJ1LRLZllg03WGwYWTcolGfP0RMid2L3OMSTsQGDCX/31n3L/DuuI4/fAv6V0hjFpQl2wX6EQZH/gdXAa5w32oN4BIM1RVMBQ/NP/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ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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