From patchwork Thu Mar 23 09:21:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13185318 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 1C0F8C6FD1D for ; Thu, 23 Mar 2023 09:22:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B46B86B007B; Thu, 23 Mar 2023 05:22:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AF69A6B007D; Thu, 23 Mar 2023 05:22:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9BFBE6B007E; Thu, 23 Mar 2023 05:22:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 8A5EE6B007B for ; Thu, 23 Mar 2023 05:22:33 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 560FD1606B1 for ; Thu, 23 Mar 2023 09:22:33 +0000 (UTC) X-FDA: 80599622586.19.AAB5ECC Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf30.hostedemail.com (Postfix) with ESMTP id 8048880018 for ; Thu, 23 Mar 2023 09:22:31 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=OZZcT6du; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf30.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679563351; 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:in-reply-to:references:references:dkim-signature; bh=6Ech0t/2ME/zzdRLjhS1xRbvQgY150vgCsTFSScQM/E=; b=Yd0ID6P0+oOp3+Aw9d85kIMOmg7EwZZY/zNE+5xXfKF2zcn1hs9X9d7vAq023IQj2ITVin 8kZUQZW/Y5teLvoG/LJEvOVhFrj8L9yf5hUWoorYVlwGX5NHfjWNlSN6hs8ue52AGvdE+u Nl+0mDdz7DsSPq818vknofktRay81QU= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=OZZcT6du; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf30.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679563351; a=rsa-sha256; cv=none; b=7r8P+TyLdDbSMgSNxmG4s0sZZVE4+xhAxjPS9q18bYwNWFY7JzVWnoJF9X3yLpF3+DF1a7 8DPbdEUhSwTPArTtWMbuB0Wi7+15TQ7fdunsWXlA/f6S8OeGmQAfNVEOyevQS5k4VV8J3X NNOB8VqU2rZu8Itm3oClOUfsHYulTsU= 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 0915BB8201D; Thu, 23 Mar 2023 09:22:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3258C433AA; Thu, 23 Mar 2023 09:22:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563348; bh=1wuMjPglrXxylZYRQp9g6PBGTaQCsIyJmL4MjyDfkT8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OZZcT6du5dwua6qJE5uCEiu3Bbh3Q97TquC+/sYNXkmdypc+bsLGDW93XoYEnZ4mH MSoFTjH6bKTl3fsgQ4Bc3SK5VaWp9pBpu5SvZo1sRyf7bml4ql3CzkUro6OsghW0vc Oy90Vtp+PuM+H/Fs7+pOeFq6VXb7ExvoCICIAZhSBN3LP0NP130lo2YGBKKTONyDoH O4a++hJhMH5PNPPUpgd9/coAlzQjl3AYohwmcVJY6mAnGbnI5g5nhBGeR+cfm7Ukr1 7eEmM1z6tUZiEn08emyl+wuY10m5eYRrfMvZd2JFyNi2MsejH2NoIL8GFXLAlQ90D9 npeRgo88+OTgg== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH 02/14] arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER Date: Thu, 23 Mar 2023 11:21:44 +0200 Message-Id: <20230323092156.2545741-3-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230323092156.2545741-1-rppt@kernel.org> References: <20230323092156.2545741-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 8048880018 X-Stat-Signature: 69wc81q3wiqpcmutwgtnwpiatniasakm X-HE-Tag: 1679563351-246115 X-HE-Meta: U2FsdGVkX18Vey7i5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PvTLjdvS7hmOopkGFVi47jMJRWfdXAYhHY5FpyDBBDfNSnhzvnYzHNLY3hulWDwiLyzp23Y/yuRnu9fpSHeh42X2PJQWgqLF1K6DPfrwVXoiljxet4+wrDMgq1HrAmUjhtJtCA6Zn2z8m1wyVuG0eTzXWGjVe8ZYidP5nL0BX51FVGNAz5eZDDD0XLLrFK7/nVh/1aIlC5voaJgBDInD X-Bogosity: 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)" It is not a good idea to change fundamental parameters of core memory management. Having predefined ranges suggests that the values within those ranges are sensible, but one has to *really* understand implications of changing MAX_ORDER before actually amending it and ranges don't help here. Drop ranges in definition of ARCH_FORCE_MAX_ORDER Signed-off-by: Mike Rapoport (IBM) --- arch/arm64/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index e60baf7859d1..bab6483e4317 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1489,9 +1489,7 @@ config XEN config ARCH_FORCE_MAX_ORDER int "Maximum zone order" if ARM64_4K_PAGES || ARM64_16K_PAGES default "13" if ARM64_64K_PAGES - range 11 13 if ARM64_16K_PAGES default "11" if ARM64_16K_PAGES - range 10 15 if ARM64_4K_PAGES default "10" help The kernel memory allocator divides physically contiguous memory