From patchwork Thu Mar 23 09:21:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13185317 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 4A666C6FD1D for ; Thu, 23 Mar 2023 09:22:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8FD216B0075; Thu, 23 Mar 2023 05:22:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8D4036B0078; Thu, 23 Mar 2023 05:22:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 775876B007B; Thu, 23 Mar 2023 05:22:24 -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 64C6E6B0075 for ; Thu, 23 Mar 2023 05:22:24 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 3A11C1A0617 for ; Thu, 23 Mar 2023 09:22:24 +0000 (UTC) X-FDA: 80599622208.25.0447593 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf24.hostedemail.com (Postfix) with ESMTP id 881E718000A for ; Thu, 23 Mar 2023 09:22:22 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=jhevsx6F; spf=pass (imf24.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 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=1679563342; 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=gXlz2GDwGEf828vKAQ4gOXkpfBOIBEYsl1gssZpmRJQ=; b=02DeWNb9CdHXk+iXk3S+Ql0S8BHjtZ82MFc4N6buS2TqewjqqC8XjMVeWgnriT3O1XmOuS xrXHBAInno33lql2zjEazn2sNF6Uw2JFGsbiYWuPT34lmQ9t4+YyckkFNbFsHRwUpX6Byf WB3lRXPS+E85mWLO579AcEpHFg2v3dE= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=jhevsx6F; spf=pass (imf24.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 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=1679563342; a=rsa-sha256; cv=none; b=xZOs4PsUFY9596oSvStO0DrPQQlm5Onsh56n+9mCvOfqg3xzLwJd5Bl8MphnmtwkHLuGzc oCU2/aCSup16TkxnLNpReC0UaiMsUbYPRtHMxq/QAUjIrQ2goR1eSZA9Q1ILgXhWSK7MPH DHFHxQguxGgAJDu7UnwzVFyaBDTc2AU= 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 B572962542; Thu, 23 Mar 2023 09:22:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 259A5C433A8; Thu, 23 Mar 2023 09:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563341; bh=dcp30wp/Hf38sazwKthrJJR/hJsAXPYg2a1DhIjhRsY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jhevsx6FrKz/DSKyWa48ul+Br2Qq/2CdJ5Nno3oUdRcLCIk7t1cB69NdAiT1tyn5H Lhz9wXdd5uW6MFyeM+B3h0u5ydPTvK6l7CwpgHyUk3OAlG9W2UODv0/MJDEe3oHJOX /m2zMnBtkTaffkchF+6L07TdZQwBCPludGH8NHdSFGMYkW0A/qG31dPbgSSEevOGTB mnSJ77OEHBhaBpfgDQgrtyP3mOg3IRf23662ZNu2bRdqFbjyKhfTPTIRFNBR2BggXZ Y0Ifi3DaCS8c1NsQKYmG++xjhZAcZPCDklL+uk+NpDJszMuDUHYYaoRUcujltm1mXh pEp5mnhql9Qpg== 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 01/14] arm: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Thu, 23 Mar 2023 11:21:43 +0200 Message-Id: <20230323092156.2545741-2-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-Stat-Signature: m1qkrcq84hywjiiw1swc37y99n71w6gd X-Rspam-User: X-Rspamd-Queue-Id: 881E718000A X-Rspamd-Server: rspam06 X-HE-Tag: 1679563342-870658 X-HE-Meta: U2FsdGVkX19c/N2PWiUlxQAm5hWAUNX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hPCzq5gPlcU0Djo7pBNKtgXd3tOhg0ytMxeOcU5u4GcnWxpVmYGo4efaEcIt9/8ttxJXM9DaFFIIYFPjSyfcNJnxsWPdMr279+VXvPv1EX7RGuxYeFQttvd45+uU+NB1041HhBN3mB2+brGnmcUFpUx+/S9A2DQCG/jQDWvm1D5cKHeCAA+9PdbB5vwL8w3wPD2LxIY9JMiO4ZDV5tDR0I8TCWsEhRUrhUhDzrtQB9tCf0xFFxQB0VViDI/uO42AGT4zllEuELzlKEPrZrOpk7LFVuBxQtviMFp99WJppVcuZxDrbaPAKfqL+M+kwraIR+e/U5Dh67yJ8e0q6 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)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Signed-off-by: Mike Rapoport (IBM) --- arch/arm/Kconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 929e646e84b9..0b15384c62e6 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1354,17 +1354,19 @@ config ARM_MODULE_PLTS configurations. If unsure, say y. config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" + int "Order of maximal physically contiguous allocations" default "11" if SOC_AM33XX default "8" if SA1111 default "10" help - The kernel memory allocator divides physically contiguous memory - blocks into "zones", where each zone is a power of two number of - pages. This option selects the largest power of two that the kernel - keeps in the memory allocator. If you need to allocate very large - blocks of physically contiguous memory, then you may need to - increase this value. + The kernel page allocator limits the size of maximal physically + contiguous allocations. The limit is called MAX_ORDER and it + defines the maximal power of two of number of pages that can be + allocated as a single contiguous block. This option allows + overriding the default setting when ability to allocate very + large blocks of physically contiguous memory is required. + + Don't change if unsure. config ALIGNMENT_TRAP def_bool CPU_CP15_MMU 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: U2FsdGVkX18Vey7i5Gs7rVq1Htx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OopkGFVi47jMJRWfdXAYhHY5FpyDBBDfNSnhzvnYzHNLY3hulWDwiLyzp23Y/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 From patchwork Thu Mar 23 09:21:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13185319 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 22951C6FD1C for ; Thu, 23 Mar 2023 09:22:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B1FA46B0072; Thu, 23 Mar 2023 05:22:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ACFBB6B0074; Thu, 23 Mar 2023 05:22:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 997CB6B0080; Thu, 23 Mar 2023 05:22:41 -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 8D3786B0072 for ; Thu, 23 Mar 2023 05:22:41 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 5F191A0679 for ; Thu, 23 Mar 2023 09:22:41 +0000 (UTC) X-FDA: 80599622922.15.72426C7 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf09.hostedemail.com (Postfix) with ESMTP id 32B4B140021 for ; Thu, 23 Mar 2023 09:22:38 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=hwVWgNUm; spf=pass (imf09.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=1679563359; 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=v044m40V49k6TpfKf2XQ+ZmabTOaSM9C9RG3V8tT8mc=; b=NGxeSWL1dY3AnnapuwcJA6cYTGJAtOz+hEiRTQYeAhzLnhEESacWqdhZ1SPgbR3qCd11Dw /8/POO9s4Lj0rWngUXlUQ0GZd3Vt5BrQJ6CXVzkFnqVuaFXskXkib8oVP/TevUI5rE4+gm pZT1sIstHEHwb68/YC9dVNsRe3KYmGQ= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=hwVWgNUm; spf=pass (imf09.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=1679563359; a=rsa-sha256; cv=none; b=42HXCTj69/u/RjmTP6h+mbz3xpRYAxrNJcHl9wgUwv0WT6wn6z6b/ouxOM+x3invxMoEZd BdugwPSNzvc70EQQWwafzD5edtiFS7t5CbKbZYPvgJ7MmxgKK+jl0su3uxqBGLF3guKqda jV1oVZcYWyA/nEptgdcHN8grc5kOcX0= 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 AF5CEB8201E; Thu, 23 Mar 2023 09:22:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FB03C433A8; Thu, 23 Mar 2023 09:22:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563356; bh=YegLTyBTgABVrk8X6Ho+iz90BqWsK5lqi1pUx+eF0sU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hwVWgNUmpqudVX5t/F4T7eVjm0xHfzWtg7vXKXM2ECqAoid0i5uuM9texyHvlOPEV lyJia9wrDlW0JFd9lMjQOEx8W0T5jd1+TJG7CJma6/ByrozwfR3fEJ+mMDIlvNLzwV 4q5Lcyirnh53qgBO9ZpI9gkUUf+3fLcNPWxiuxAjR4abA+WGhiQ4cIT1SEY/45ykKB w2YMBaN6+8xqLRjCoGCUnCSqFJWz3rgKIrF+qrDiwAa5EbSopDjo2gimc/UR44IViU W04N0UqyO8l9zfjlSz5/GrT+ylQg8hLZO0SHJ0FWxnUAaLATArJJIMkA+D/WKft8PF c7ZFGS6pkh14g== 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 03/14] arm64: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Thu, 23 Mar 2023 11:21:45 +0200 Message-Id: <20230323092156.2545741-4-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-Stat-Signature: 8zodw1ohmnmtsuznxe56jgsyks9xpt3n X-Rspam-User: X-Rspamd-Queue-Id: 32B4B140021 X-Rspamd-Server: rspam06 X-HE-Tag: 1679563358-359798 X-HE-Meta: U2FsdGVkX1+9uSPowJhkukMquy0/Z0MBP3hM7vYtW/m/Wgq7E4V/denzZBqghRytu4bTqGHe33QhfrbMe40J+yq9eGSctnz1Nfx0DVdK9sNL1UyOR+pP8EBn3lqEFNg8xl7n9NqDTfUG1AyRp0WH1cwq1VjBiAajCNc0CAwwtTVSEbZ8FfX2SSoX8vX2V3nfBlHzn5iMBaVumO0ZlhGpb7QsLMYnYy9gYETbbV7sRsvoK+dL4/rMg6EnWfMy6mzStc9WTLsszQtdDkxuuKY/bVcTXMwt7S+rp6f8FSPQUEjrsEsnRmARzcOkXmSBxsqYNo+f3wPFjlNpK5AbXpkq//fbMfc2Mex36VUtmZ7XF95zQNUWC80Q+NV0b59bGjLa23PDE1kD+2e2XFocfNQ6GOtkMBgLy93T6NyNMBQ/LV/P1/CWp8kvbiAMMabiSCh214Hrz4x+o238ojCr3oJyj1T0R1F45HXsh7UJbe/mlxlV7CwJFmJSMQVj3PZeoWC+70w78mU8q64dooA363oW/v4wZg4deO0wDg1LiNz55/1vGNVRNqOKMgT0cyyL0RyTaOGBxgphLHxh4YqdAxIBWx9NnMPku/tb/DcKrNoXXivOPh/265KiBwq80QSJc4dmdzEG2liSquuWtY28WfmIi8jhK78TRXWWNIyRqHhYsWdTiiGoX2MgOqJD4daYWY0TsG2gC4ibY+KordWt3y4JQM0GsXYhcxAXuXmy0mgC7RO5q+E4lbJJnK7XGn6XTaDTLppi8alzQxxbYKA7OhDp4E9dV9b58jC/HRTpoFfsGa4j6lq/soesC1cyhvvZIve4b7JUnHLsnm8HH96A4QzPWuALmYHqSEMMgmfnOlGITM3IbPlntVZSKBnx/p/DoBksOuv+RL79g5oEySkIwWt9EggJ777b4ixEOzeSYLehhBJD6vaGgCyCyzNUlbi8kMPVALoY26YSBXoh3WFo3jT TsQ8K1F2 tLqdrUQquHD1x7LigAdZ8EEa5YoC7jnroKHMvPKY2q7jn8glIZk4aE5WkH3/2eHUTddfVvrnAAKeh1x6jBaTiOH0VnbBtUj0W5s9/OPq4BZ1PZLUQeBgTrgyQYqArEdDFP6puBkyV0FuUxY/NK1eLSKzFW7pN0x75L3AA1jBoFoeaLepc5yi5Hv6CsbX1wS9yUCqVPWC1n1+ZiQ6YzCRmNSYViD7un04OHcfwpnI8PlbVHxzDOlnu3Sv2QuP1YeoqclNis7wU2SquiwtZLXGlnU+U5/PUGtwCS0rjtOiQxKKs16JwsczW9Iu4XpqH+oeo7tVi 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)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Signed-off-by: Mike Rapoport (IBM) Acked-by: Catalin Marinas --- arch/arm64/Kconfig | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index bab6483e4317..75af4c329224 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1487,24 +1487,24 @@ config XEN # 16K | 27 | 14 | 13 | 11 | # 64K | 29 | 16 | 13 | 13 | config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" if ARM64_4K_PAGES || ARM64_16K_PAGES + int "Order of maximal physically contiguous allocations" if ARM64_4K_PAGES || ARM64_16K_PAGES default "13" if ARM64_64K_PAGES default "11" if ARM64_16K_PAGES default "10" help - The kernel memory allocator divides physically contiguous memory - blocks into "zones", where each zone is a power of two number of - pages. This option selects the largest power of two that the kernel - keeps in the memory allocator. If you need to allocate very large - blocks of physically contiguous memory, then you may need to - increase this value. + The kernel page allocator limits the size of maximal physically + contiguous allocations. The limit is called MAX_ORDER and it + defines the maximal power of two of number of pages that can be + allocated as a single contiguous block. This option allows + overriding the default setting when ability to allocate very + large blocks of physically contiguous memory is required. - We make sure that we can allocate up to a HugePage size for each configuration. - Hence we have : - MAX_ORDER = PMD_SHIFT - PAGE_SHIFT => PAGE_SHIFT - 3 + The maximal size of allocation cannot exceed the size of the + section, so the value of MAX_ORDER should satisfy - However for 4K, we choose a higher default value, 10 as opposed to 9, giving us - 4M allocations matching the default size used by generic code. + MAX_ORDER + PAGE_SHIFT <= SECTION_SIZE_BITS + + Don't change if unsure. config UNMAP_KERNEL_AT_EL0 bool "Unmap kernel when running in userspace (aka \"KAISER\")" if EXPERT @@ -2298,4 +2298,3 @@ endmenu # "CPU Power Management" source "drivers/acpi/Kconfig" source "arch/arm64/kvm/Kconfig" - From patchwork Thu Mar 23 09:21:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13185320 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 1F9DCC6FD1D for ; Thu, 23 Mar 2023 09:22:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9987C6B0080; Thu, 23 Mar 2023 05:22:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 948ED6B0081; Thu, 23 Mar 2023 05:22:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 811586B0082; Thu, 23 Mar 2023 05:22:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 72AA66B0080 for ; Thu, 23 Mar 2023 05:22:48 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 4B1B6806AB for ; Thu, 23 Mar 2023 09:22:48 +0000 (UTC) X-FDA: 80599623216.27.C292865 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf24.hostedemail.com (Postfix) with ESMTP id 92BF6180004 for ; Thu, 23 Mar 2023 09:22:46 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=YfDyZKg6; spf=pass (imf24.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=1679563366; 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=kvjxNCexZpNqfRHk6CLOMD2vnnIlUq8fwhP4XX2xfxQ=; b=f3IJBuvNxQL4uk32mskzroowWU8nFBf4j41A6O8UbPR43QsXIqJJvhPjBJlo3eh7BsbSHY DHHn8EML/mAT3euEIPsFdXxCoPpHKH0RP0jzMQkdAEBsycyBKbkTdYdkeQdNuG0Q0WXwGo p3tLswIbWjGLWzzkJQ8hx0OL3pX10VQ= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=YfDyZKg6; spf=pass (imf24.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=1679563366; a=rsa-sha256; cv=none; b=lVS2KTTaKi2oxdIGQ4Q4U4vL5Cryls4vTd9xs2u1hg/fIPWvwQFAqCOCXBopmP+s0pmsLA n9clLOWGOAK51gs/vH9aE85VfbpjnrqltSWb4gP/MsP+3S69stUpWPqQgYS/oeVkMKJ3KZ roLFlu/XXMK1NJZ8P5sEoVkeA5N9RAM= 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 39DCFB82020; Thu, 23 Mar 2023 09:22:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E437BC433B0; Thu, 23 Mar 2023 09:22:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563363; bh=VIGq21IucJ5jyDrKWO8wDSFXKn1G4gpham/RhLaDiSg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YfDyZKg6ubB3qVtTlpxKobEqRtwno61zPFlP3g3EIvlplSklLsZdZgd8QI++nKp4n qq2mJOxPwHzVhgTFzEAiFOfx+KPDLDwoJMzXey52ho+6XByzyjn3T3ZCKD4VZYT3kU cESe0WRXj+emYBHu833Ie/zYH4UBgDHJ3GJ5ePxM/uO1muD+DtVkdjQAf9ziZXzj+H 4+VX6vYZgHgBasWaay2Yvm3hUg76YEqRuvUFK4EUvPHEx5XhVCKEKGRBPfWgR5WtWO dU4L0e/mgCXn8RbvJfFELuUfLqP+eE794rhQOoRiuNs4FEE1ZnaNqR/QYUnj3nqRee MRKQtDiPgSwZg== 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 04/14] csky: drop ARCH_FORCE_MAX_ORDER Date: Thu, 23 Mar 2023 11:21:46 +0200 Message-Id: <20230323092156.2545741-5-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-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 92BF6180004 X-Rspam-User: X-Stat-Signature: awghe67ne9raoi5abfhjjtnzieiae4qk X-HE-Tag: 1679563366-951269 X-HE-Meta: U2FsdGVkX1/wLO+metJJoO+fXTnT2Wzm7vbUEDxCj67Ec6W+28ILzcdDXcp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vQ7YfZjzhNP17hGKbiPfUcs9M5K/Q3yTHBaI0TGCs/W5HOVT+ygX1NeFi3Pugskmma21uO17YlbVo6qJSLW8+lTWez3HMCqIA58XiZDNqb1/NiWNOWI5fzuCML6M7a8crYOaPnePMpRJopIBSRw9IXpCGc2ZX2O3oWUAORWoCQWqdxs3SK7MmAz/+Trqgq 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)" The default value of ARCH_FORCE_MAX_ORDER matches the generic default defined in the MM code, the architecture does not support huge pages, so there is no need to keep ARCH_FORCE_MAX_ORDER option available. Drop it. Signed-off-by: Mike Rapoport (IBM) --- arch/csky/Kconfig | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/csky/Kconfig b/arch/csky/Kconfig index c694fac43bed..00379a843c37 100644 --- a/arch/csky/Kconfig +++ b/arch/csky/Kconfig @@ -332,10 +332,6 @@ config HIGHMEM select KMAP_LOCAL default y -config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" - default "10" - config DRAM_BASE hex "DRAM start addr (the same with memory-section in dts)" default 0x0 From patchwork Thu Mar 23 09:21:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13185321 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 D937FC6FD1D for ; Thu, 23 Mar 2023 09:22:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 74E596B007E; Thu, 23 Mar 2023 05:22:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6FEBF6B0083; Thu, 23 Mar 2023 05:22:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5EE446B0085; Thu, 23 Mar 2023 05:22:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 5056C6B007E for ; Thu, 23 Mar 2023 05:22:56 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 22402A0676 for ; Thu, 23 Mar 2023 09:22:56 +0000 (UTC) X-FDA: 80599623552.06.2110D45 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf03.hostedemail.com (Postfix) with ESMTP id 5D85E20010 for ; Thu, 23 Mar 2023 09:22:54 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=vRT1J299; spf=pass (imf03.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=1679563374; 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=8sH59JOq+2C8eAXmnHKJIV10PXo476Fvg7+gmwbxyo0=; b=v/oyqkR5mrixA0A4M3VO0rkO8mo/G3Kx6SI8bLqogvzQJXreYVJ3VB+6K17dXDb36MCu34 F+ovgevT4VU77s8bfiWvFlWPTae6iLMQwOvS9O+6ls2V7IXUGx+YcrWuXdm3KrpTGNlK5q GgYGcRJm7Go63NKCPsCo0yOAKBjtcis= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=vRT1J299; spf=pass (imf03.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=1679563374; a=rsa-sha256; cv=none; b=7hJBwDfkFZ021E3ngRvLZ4DWfrItnJoDLD5UDMwVREvuLeTtrf2eSxJUcxP0tudODxkt1F zZSRtoqoSbcCCylZNlHHgiUKRs+Swgz3ULAbve8wFyIbjpqOGrKVysK/5PxvpizoGgFDwx Ick1gSIxVqXCE4cD8DHGKiTRtWBrI2U= 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 10BE1B82023; Thu, 23 Mar 2023 09:22:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F0E1C433AE; Thu, 23 Mar 2023 09:22:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563371; bh=Taw/mVGmMzfFA4/zjWlz+sOR+xqfdhkwF0DQ85nhoys=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vRT1J299K8QpI00sxZv59CyczO6p0SWP1wcHAQk8mghcdKjhLznndromKwnUtlkrM SRWyev3rVk+6CoxTsdqVockaQN2ib+Nl4FHOvmR+E/SjJe1acNEz6Z4GFuyF6GLjfd NuLmQu+LCOGDTIOxUdJKu3y2Kol4WBMAdYu5dp+Zj49J79N9Gzs8fUFCVhMdAWtkR8 Ee5XTvH/Aq3cY4DQROJ2COFMOABNcorPOEkkywcg034jyqoHf/3OREMiGZ7q6+/cP7 pO8gCgPnpv6P2h41m6iFg7ve1OatfexcxvMd110cY4RS/B3xhHDbjx1NZErU4piC14 QCF+7aV9m+NqQ== 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 05/14] ia64: don't allow users to override ARCH_FORCE_MAX_ORDER Date: Thu, 23 Mar 2023 11:21:47 +0200 Message-Id: <20230323092156.2545741-6-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: rspam03 X-Stat-Signature: jx3mg981r361hxezfp49sugxseqofc6i X-Rspamd-Queue-Id: 5D85E20010 X-HE-Tag: 1679563374-823380 X-HE-Meta: U2FsdGVkX1/xjxxN/Am/RJrUee8afw3+XlUCt56bF3QPafTvYxTsIW152qPxDfM14uFgyb7IM8I0XTYuuxdAOeTWD9NFlXDyF2BYP7vWig8EvekMxmAPn9l+Q3LloX3oJqbR78sp15TKie43R8dof+7hlCZ2mmbBGgkULTXpNeAtz7VDlx479I8pkOS2jqJJPBf8J3lytyjeKK8NahsJIXlJcogOfM9frVoO8WRD8nkWK92a887gTM9KXcN4eC4nbhhUyP/o19uksTTWwy8w7KU9TS0xkVQ3+kIetBBUSQy/XI3RNpA5kYgDvRPWSVD1B3/Id/G2d0yWf5WNwrXB3onqYjwYulDrGfmVBMQTKUYPgFI8SyifySJYR6v8f/3YJhHDGhin0Lpgd3pTTLeqMSxCKcgSVhqKsbZaJmt73c0qVIQpJ+VBCfaaXvc5FI1mZRbHuCd548PdVnbC3LMyEJbjN+Ua59QjMX4GbpI/aD/DAlTwXH8H9Z7eVxPA71P+j/WBw3sUhX66z0ZjmBnk1JXNpa9Z8a2qMt1pmAwWrlssdOslK1oWJj2uY7T8zJTbGCjdiw03I3GQ6o/b5wq+cGDORxvAheNQjY6151UMz9kZB/0westyEbWK7RNd4cgf3pGK3iomy2XpQCZzXpKfP5JeG1O0VIhK6EhBC4PwG6f/J5VCm4Zt3//DDTCuZKT3nePvC87IxJ++NRXF7eiaAT7xAD/ROyElNGEFuHIUq3d2mbrPrcZOhzWnoXE8HiKJ9CJPuhZD+4GdRV0/nFdq6hG5QB1N2GIITkQW9MUVuqM2gX1dMRp5nfPsi8RR7L5iidb+0lfpkeTD4IiYyjMbZDYRnhckE3baUUclRwtmNAUERqlks9ePFxRkxLfsHBJUQkqfpIWGzIZe+kSJHOREbo2e7wQEpWITKpz3cmL7ZjB2tEt+mdR3QfJcYVXPWINQ+5pdqlGYzbejOiDphni +MG9eY1u z0BbYLS4tBfzEAvVSug3QgNgHDH4F3bpSUgEu5jgjzjG/k4NdCOUq7x7ZqcaGOBXpXAvz/jo388o5cMD28bFMl4SR7jSCXMQK2yptVaEyhzMhhV30m/o4l3/++3pG1EGlZFLFu0K/bUoxBGQ6gvqotHEV/uxI9xaNSfrYqK3pUxhQZ9uk2k725pdVH7Alv39seo4OT7j42AFSCEZBSRPAkrlK7CKPbPw3n6ikntLxQuM5h3kPUHQOhNpBUdVBQ/6Uw3JmdZX+8HvdBxvdr3W44p5l1YwR5LrqKtnU+4KogVBLdLVvLw4aTmip7eIIHm4Tvt8M 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 enough to keep default values for base and huge pages without letting users to override ARCH_FORCE_MAX_ORDER. Drop the prompt to make the option unvisible in *config. Signed-off-by: Mike Rapoport (IBM) --- arch/ia64/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig index 0d2f41fa56ee..b61437cae162 100644 --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig @@ -202,8 +202,7 @@ config IA64_CYCLONE If you're unsure, answer N. config ARCH_FORCE_MAX_ORDER - int "MAX_ORDER (10 - 16)" if !HUGETLB_PAGE - range 10 16 if !HUGETLB_PAGE + int default "16" if HUGETLB_PAGE default "10" From patchwork Thu Mar 23 09:21:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13185322 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 B442CC76195 for ; Thu, 23 Mar 2023 09:23:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 52C5C6B0085; Thu, 23 Mar 2023 05:23:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 50AD06B0087; Thu, 23 Mar 2023 05:23:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3CB436B0088; Thu, 23 Mar 2023 05:23:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 2C0596B0085 for ; Thu, 23 Mar 2023 05:23:05 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id A93C612030A for ; Thu, 23 Mar 2023 09:23:03 +0000 (UTC) X-FDA: 80599623846.02.EA7FAD7 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf30.hostedemail.com (Postfix) with ESMTP id CFA998000B for ; Thu, 23 Mar 2023 09:23:01 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=GE5krmZ0; spf=pass (imf30.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=1679563382; 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=0bPxPWN1s3BYSZSIZ1kjGwpz5HNXms48awRz1FjuoZs=; b=HXoftmjhaeIk3n1jiUHaES9xQaiTgIH03n/C7Z3Ukn1FBekMhN5h89CFTYp5Y2FdFUQUA7 SQcWhJvkjxNyvQSWDQPvt7BlGnyeLjb8utefPqtMzct/2nPU6JB//FWQdleSKRI6+O8TKk nmzB7xlLd21wGobv+aLSBb7f/Jl2FV8= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=GE5krmZ0; spf=pass (imf30.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=1679563382; a=rsa-sha256; cv=none; b=sdi4X5kcCkSgIQQkUwHpJG+jpZy5dq/V2Hg7yltS8LbAOm64jNvePK0SEX3C79anE6Q2oR Py6pHajWsbrTbJSs7TWr3pC/KyU3u5Daq5IwYM7/igUTZ3rwAPxjMEQ/9RvE8O4htApdzB xoyqVvuH4imdAgmASgIVl10Ahc8Fyb8= 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 6EC01B81EB8; Thu, 23 Mar 2023 09:23:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26655C4339E; Thu, 23 Mar 2023 09:22:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563379; bh=qM1kqSfFKpsE4xKrdSQW7DvR4rxMPF3in5qEieKPeA8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GE5krmZ0gXB70ofGbcBeOPtXQDLzzCQ6IeYGZ14v4R8jeHsrKel/M382hm7G8CAyY WSwNliNppBUKyln1dzxYxIiPKolESMW5XFmY5rNfSGZQQAt/ZPlFgjRt4zvvPNMsP1 btLklwizse4VYyFA8wBmdsJI/2Afc3xukaqL3fOqKJ4dUoiBP3w6a2I+4ipO2eYE6a If3yoskjdPy/OtjijJmM4uHLXAA675hSKZsojEik+P1JYu5Qdg0vJ0C2kUNi6SOZRO 1wa49ymgOshm7pgeknQKGF2zZjq0eXa0FzDHC5jxAfI6l1tXu9ebX6MaBUej00yf7+ 86ZKAZJa2UAfA== 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 06/14] m68k: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Thu, 23 Mar 2023 11:21:48 +0200 Message-Id: <20230323092156.2545741-7-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-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: CFA998000B X-Stat-Signature: iqa5wxoanegsjuf9b8rugad4hagcgu51 X-Rspam-User: X-HE-Tag: 1679563381-374779 X-HE-Meta: U2FsdGVkX1+72p+hVve/Q2XdUNGlJNhDyzmRYImRtOWhOq+K3AbGD6UrCKS+MzW9kuy6dNN5/+dmzv5SBfXRfoxLr68ExDj6eNDTL139g1Pf6A9UHn8jQOwqC9yI/u/2dEOGFMothWbpVT7kier2fU3ashrzHUXLZggRuL50W8eXfnMS9tbJphThRw1wLU49cKMjNCCUpQupALsy0ioreDy271WmR5jOvk1rjyWuyJYZsOxZw+gGcyhGlL0ALNR7kdAd1F4f0+Lt6KHdjIysDhwXzRPUzfT4UBoijN4pPaQzzsxd4OHa6UuKyJ1x+O+YIjOqEVm/z2n7eu+sO/kjxmSseBs0NH1O9QSKiE7ZobtkHWMJ4yRn5j5kV372nn7LosJ5nYmlSTd5lSF4+TFgQTqKhz1JPLlpZ8Zt37R98goJALgXhiCHqH9EWAM/C70k9tSPWvc3bFnFwA/9sJCmPtHd4+p8A2LpUVLcgoM8A+jv1ts4O8JwYt1/ypVNsDG+AttThjaP/8QPiW+jcx94YWA3+jvs5CMyuaOegwXru0D4d+sNlP4SdC3gqhvJqT2LlK8VQ5JGI3XpPmj1awfltFsIBrF2B1h+oUuKA5QLlwZgxyU/qm+M2MpgjH1V81zDV4waGkPL1kK1whR8bpe/HO433isc7ZOHqwcPE7h1zzfgDk3qC2Ga7qMRITA9nke1fZcUHcqRNogFmex0gdkkATZ7nWwediGkcMu4+4tj12iqwWywN1fIcrNLjJGCEWJPA3jF/kjQszcAfYT++Wuy65VA5FQ6wW0DWII253w1clzMuemmRcAobORWhWi1rnOsuyS5vQisPhunx5JqYiKcIekByWs349PorfUIV9Mswur7ixc+WdLWnFe5wF35crYT2TMkLvc6O/VyU9kRTclNFgva4f7yE9HlxtYmoMYNTXPFFxFnVw25m8OHQh1Upm34rlct5TSXgt/o8cy/l/L pjn0W9W2 xCh+iVMa/sq52bjUDJpKuvIsp3Cxz2RbxMMMR75CZPDTMcx6FyE+M1YF069KC6Fu0ojy3DVoKMpROc7BiFsjbDx0VECb3efFCaLQcMETJWJtR2FsyvbrdWMeRoA0wuvUwHFQGm7xX64uQpwVbHF3HWFtcUqkcFuuT+T37Kt3XZH2KSMMm8yYaaTtVyS4z9ZgZGUqq+l61Ukxtg2y6oUxwMT8120Y0Kc6/3sgG2EUGWvrxTfe19DqOI6XmHLuwsYOCb0tOfEBjpfWuwT0OuokVL5BnPiPZNUXiVfPd1o3Xp7DSenJYweLWeTJj8K1PBSHra5I3 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)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Signed-off-by: Mike Rapoport (IBM) Acked-by: Geert Uytterhoeven --- arch/m68k/Kconfig.cpu | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/m68k/Kconfig.cpu b/arch/m68k/Kconfig.cpu index c9df6572133f..e530bc8f240f 100644 --- a/arch/m68k/Kconfig.cpu +++ b/arch/m68k/Kconfig.cpu @@ -398,21 +398,23 @@ config SINGLE_MEMORY_CHUNK Say N if not sure. config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" if ADVANCED + int "Order of maximal physically contiguous allocations" if ADVANCED depends on !SINGLE_MEMORY_CHUNK default "10" help - The kernel memory allocator divides physically contiguous memory - blocks into "zones", where each zone is a power of two number of - pages. This option selects the largest power of two that the kernel - keeps in the memory allocator. If you need to allocate very large - blocks of physically contiguous memory, then you may need to - increase this value. + The kernel page allocator limits the size of maximal physically + contiguous allocations. The limit is called MAX_ORDER and it + defines the maximal power of two of number of pages that can be + allocated as a single contiguous block. This option allows + overriding the default setting when ability to allocate very + large blocks of physically contiguous memory is required. For systems that have holes in their physical address space this value also defines the minimal size of the hole that allows freeing unused memory map. + Don't change if unsure. + config 060_WRITETHROUGH bool "Use write-through caching for 68060 supervisor accesses" depends on ADVANCED && M68060 From patchwork Thu Mar 23 09:21:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13185323 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 E9126C6FD1C for ; Thu, 23 Mar 2023 09:23:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 838896B0078; Thu, 23 Mar 2023 05:23:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7E9016B0087; Thu, 23 Mar 2023 05:23:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6D82B6B0088; Thu, 23 Mar 2023 05:23:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 5F29D6B0078 for ; Thu, 23 Mar 2023 05:23:10 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 32DF61C2D12 for ; Thu, 23 Mar 2023 09:23:10 +0000 (UTC) X-FDA: 80599624140.17.7754768 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf02.hostedemail.com (Postfix) with ESMTP id 50BE08001B for ; Thu, 23 Mar 2023 09:23:08 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=OzqUXRJv; spf=pass (imf02.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 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=1679563388; 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=Fmj5x4MItVVgDJUK3YcgVA2gB6TriTrlCDGVVfJz3ys=; b=c3qFVA42mkhfgKSG5TRXET+Eau2Kx2kCGObCG9vNffCXWcjFW3GW5NqupJIyhcu/pB4Gjx pMfqFDVVjv03nB3MHeceivwQ3h5SlJlrcmq/FUQ5U5GisLIwVlR0K2DY/VpiaPD6Os49nE 2rCvnpAnxRnvfzyc6fjKM+0CjgVhUNM= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=OzqUXRJv; spf=pass (imf02.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 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=1679563388; a=rsa-sha256; cv=none; b=2Fyszl0rSrcaKraa3ewM/3YTbZO5kpFzndRL3b5xy39i6tCii4skVXEsjsUuMyrwIBrrA8 8e/JOP0wZqXZs69GQgfU/gJz5DxXHP4A+MPJChuF+6YDkCCrgJaI3yf/6yrdoHifQcC1uZ E9Te2NABvE5zqJuJagMDXUhQ3P8dg4w= 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 65CB862569; Thu, 23 Mar 2023 09:23:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4F5DC433A0; Thu, 23 Mar 2023 09:22:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563386; bh=2cBYSF+JamtgsUh/BOUyBseGRxUzFBktadFA1PpPvNk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OzqUXRJvV5cHhhxpEQ76d0VmU9uuByNR8pcfw0l9ZT0pUxGdp9gz7IOdJ66R8dqXw 5FnZFyrNaxWOzoSbHrQ6/ZDGPnxAxYDl2BnY+xWiqOGURfr9e2VkCnrr8L9Gbjfwpc HOlDenrpg4JUs2TFkXkOV7O5LYl6nEsPELlOlAv9iHXU4q5POu//gt+gKg5uP+Ny9L o5o1k5mpI2e+4t1Js33KwBaCT3bLrYzUiQxXWh1vfyrNCqFtV/ZQu1hQ/eSNGKtd31 PavpmOfvieMQUnvC+CwhHR9pKI4cbxwUVVA+Umw8wBJoMrORkoopTP9wnn/sWxuy4K eN/4aW2yBGF9Q== 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 07/14] nios2: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Thu, 23 Mar 2023 11:21:49 +0200 Message-Id: <20230323092156.2545741-8-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: rspam03 X-Stat-Signature: a15kanb1d865aftsy3f8x6cce9xy7aye X-Rspamd-Queue-Id: 50BE08001B X-HE-Tag: 1679563388-247122 X-HE-Meta: U2FsdGVkX1+RKsQJVyroHLL4QeVXAV/r87jO+hiTB/9bPvAA/JpfXA0r67FnM65zRyJTqxEeN2d0i4zVoH1wgM8v/OxIp728Eh6qnFVe5mwIhNmtwO0NERUsFX2/wEmSMt4pbGruF0MwYChNsYWSwtpge7Cg7zuu0vX6F7boCtQwajx/Y6b3YmKoknMMHO2lAcaq2mbvls0aUWH5d9GK/HNgs7q88B1Dzf5R4AVyR2vBHQtUckj8WB7J5hBJTSbYMwY9+8KZIi4ED4r5g8OkqH55SlG/AycQ72U9ymdWZXers69mAiQ+JVDRJE8UPNpsQEoghoO3kiyAbN41hRBTe6pBxcvLviboeDLomHggobD9yf7XXQnszPGl9K7CE4BLUQkxqoogU/5/GJq/oU/hA/U4r6vmifd4ic+xe4ymoSj6lx954W2KDpTKiZ7NZJf7OAwHl8C25RniYMMMyztgvlhFmyzRNy3TPpkZxe6fUKM1YYte7OYrtfJhatlxSYgYZBbG+yQK3GvI/V4UNqB9B/xt/2TiKXKcBerFOx0IP2QpytiVQjGhM2H3HsbqM+dQxoGBcixrdF0fZ27KxiKUDWZI5tEEhkUZl+JQLlASlVmO6FLDnhPLzjNlRUDQxCGC5bN8xusRuVBoSPPBZJiKbquXoYsQo5ODoNhm87ilqW9oO1mUY9t+jJuNbArGb9M00hbZyn7TxzEtrs6Ex5ivW8eUoQ0LYxcpZuj1XvTCcPmHqt1mbMiW1GO4YuZq07/JGPyzXswfdWKuNYjOhJ81RFai63uRpPsRuqrx1RlDH/oPZ2Y25in6opIsj7QT1DFP80jBn+QQmRFqAb/6nn5sXiRoi54VQFqPyLRRMDaA1h+Zl1/OT7DMljhgM6AlnSIOhQZXLync8CP2QN8Xi1miZr+VFh54LXV5vf5oVhjwCqz/jZKpApzGFDErdRqDU1WtDVQIFwQd7xro0l73b2Q dyZVmYiv 6NoiF7squAY2njICeK8Y/LcBmnTlVjgGEaGeGbB0UU4H1s5g4/8Ppj6wEeZJFyYxqXjWjsb0gBTtZluwmDRC3r3m2rQEexTxvSIFfas+V6SCNUmdAGTO/3O9ElDDHMrUrONJyu2HfkD7qXM+Vf6Pah/xprlBVt8aF7WCIARUD2qN/hjBIN7ameCsGkP+ayw28Ms737QOWbgPYYGeB2J25YVX2A4s350nBx5F5Yc9AKjdglBsPQSWO8QtPggRFEe3BZcErrSCzgJM+2VV5KH+Yl2ZE03hNHtIQtvjZFA8k6vupjvSgiE2ICSnKkPpvd9UaspnhCbth36puQrrA78nwAM2DolDXV9fCIrbGK0R8N9RyVUX/dzJzPZlQjuCY/tW1JfuvtRZW+4rz2oO5f5Uk366gIw9EX974MLk/PuDtXZISYWIJypxa4rB1U50ECPoNc1bG 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)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Signed-off-by: Mike Rapoport (IBM) --- arch/nios2/Kconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig index 89708b95978c..fcaa6bbda3fc 100644 --- a/arch/nios2/Kconfig +++ b/arch/nios2/Kconfig @@ -45,16 +45,18 @@ menu "Kernel features" source "kernel/Kconfig.hz" config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" + int "Order of maximal physically contiguous allocations" range 8 19 default "10" help - The kernel memory allocator divides physically contiguous memory - blocks into "zones", where each zone is a power of two number of - pages. This option selects the largest power of two that the kernel - keeps in the memory allocator. If you need to allocate very large - blocks of physically contiguous memory, then you may need to - increase this value. + The kernel page allocator limits the size of maximal physically + contiguous allocations. The limit is called MAX_ORDER and it + defines the maximal power of two of number of pages that can be + allocated as a single contiguous block. This option allows + overriding the default setting when ability to allocate very + large blocks of physically contiguous memory is required. + + Don't change if unsure. endmenu From patchwork Thu Mar 23 09:21:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13185324 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 9FB74C6FD1C for ; Thu, 23 Mar 2023 09:23:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3A6436B0088; Thu, 23 Mar 2023 05:23:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 37D046B0089; Thu, 23 Mar 2023 05:23:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2441C6B008A; Thu, 23 Mar 2023 05:23:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 1298D6B0088 for ; Thu, 23 Mar 2023 05:23:19 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id B5C2A40639 for ; Thu, 23 Mar 2023 09:23:18 +0000 (UTC) X-FDA: 80599624476.05.A30D852 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf13.hostedemail.com (Postfix) with ESMTP id 0F00E20007 for ; Thu, 23 Mar 2023 09:23:16 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=opvYt+M6; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf13.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=1679563397; 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=yesdwf3fCPCC0+ct04YG2vDudXDg9QKxHgqsjfhcoic=; b=xZnmi4yo0tZqUI7zUPuwlgOxHg/qVCXR3WdNzqG/L7pBfR5guBDkx6wt1hQ2rcRMMASTD6 ehsJhr4+a2L0R2eDc1YtA3PBFEFGCqwzXYWY7MjGUzZZh00T6e5loe2q5ZpO24gt2shxZu 2KykaOsJtcWzIepcZhKTzABF91aJ2ok= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=opvYt+M6; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf13.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=1679563397; a=rsa-sha256; cv=none; b=l5sFeW/vSVOFgw3aYS6xcI63cTbSIpwZ+xFeKVEHH6EuGxanLL/ZnKBqC9J7LbCNXN4e/C GzAsEq2D3704yBiK/ouF+u9zL7Ntmqu/igx2w4GcyVsBcmcfVy0OxGbiB0DvZNK0zSWn0f pMjJrPBRSrDJcTRtykrzO5zU69lIAt8= 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 A8779B82021; Thu, 23 Mar 2023 09:23:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6048AC4339E; Thu, 23 Mar 2023 09:23:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563394; bh=jzZSH15gj6TUOIsTCrO5L+I5me/Mb74Nnyc5QzApf2o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=opvYt+M6nVWy83Z/VnNrEAxA7GcoGHzEz8QYyBOSThR1uJN44T0NbsszAVqRkmb9A SFPedINEgAbnyJ/AKydoamZjo3WlyOV/lqEJmXHsxX31FbqFPcrUSqmaQWw7/Lavv0 pPumm6jkzkBxu2g5cEsCaVlcJS4bENKkkFc8Cz2Wz6eQKaxqTYIhIRxBQoMF2g89v5 DZ2t+8xW5kCcFwoLehAHXimJZXVI3kEvMEYcvGsn+KOl1TSwgvlKsnJ9ypkWw+7GOc VfD+ftLkOkIQYp64EjA4dBOMp2fQX797VTwRK697fAL4dXiohtz60VzvDWHmWbnAxZ 3F3FrUCphxRGg== 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 08/14] nios2: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Thu, 23 Mar 2023 11:21:50 +0200 Message-Id: <20230323092156.2545741-9-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: 0F00E20007 X-Stat-Signature: 6suasfhjczg7sdzw1gm8yha9w8iuxefk X-HE-Tag: 1679563396-46467 X-HE-Meta: U2FsdGVkX18KetxqAgEqgNyVdvAsqwOgnK1w4TjZXGkZSMRkrg8ZwgYgbwZYJi+CGbfhR4u7ks2XGDqnrELsdwEOO6qpYG5kj0pOh65QSxsEH9T7d8MPDewvexmBAAOuLfdfym2NexqYBG9NmitJKPKnRdwy2apODAWL12Brs+xOEPNuayI1WorexPXtAkNI83zi4zI6W+J4kcQTyolLJkW6T1uNTedGWL/7W9s8RTpbMErhoHR1sWn/dBSwo0vqfKcwzfKcyDKeKOZPuwV62jnQS/RwsAmYiNXHGYVQWuHb3YQTzw4nIlHzNLME9Sy83uebhbHwJT0K5qgG2HuzF8jDNCSLFVGZ0pGxnVwsXi1fYD0gBiZGTWn3z4L/iET6da/uRp/QhdAheplLn8sk2dzQSKPoKAmk9/nHebmzN9NOuNbqT3VfNpXsC77mnBXB1cgGwl7GyaMPx/7ynFcSDif/1q2UXHzrPFWHnAPj2FnKCKxZffYzRLtvgQFB/Ce8w/DVc6cdQR8tXEt1IDFExoYI+ggqpbGTZM7/YiKMCPGS/tzRWZklr91qFSe8w/BXV9hXIV03xrmQRMp+56TSGN6Y0kvMqR6uTu+DOqgya9of7CwZfJQZkdTd6sogvfc626q0TaDjpHR3/P4BVoxpw2a4lbBh434yHpNAS9qefRgi1Rez3TvBJ/V781/qsH5NyADYIerBE/v/tuQhmyxJV9OfJfjmMhn7ruigc4SNP+Tmej+7RTBV5umMoKnfmRWlPK790TkY4DXD9rIKyhxbPygAooB3s5HGMkZQx8Y5uzJ7JY6fJk5Qh02ev+dZ5junYRHhlAnBs/VXqDHQCuxCzAlmFpNp4MPlijMB7fvE7bE5bCGH0gQLze+4MA1YOwioyQwXmbzUUa+x/0yPhpQv8mInm8h8z+WILCXK37RvmQmYZk7V+KVU5xhA38Jn9+7qaVCJ1MHWq/WFKtPGm0n 8/ub/hGh 6mQQxd2mcwxEpSgY5WCOG561A2xXtfARoAoHp2fHPZ2jBeBLGco1/RU91urjFFCE7GsSMjQqHhrzylXjBwost93e/+ec4nhTjpkvrK6eUSk0xxn0fzZS/7NyMDRj7LShXvCV9gJJxoldpTquhvKDixx2NsVWWPLTSXTuI9zYlLBGXzdJrxexiKEV5mmi/nG1KL16Gn8X/LtLPHLwJ1dVt/CZmpjXmMOTgBNULvLq0ENYu9pSIPyTu5EK6pXL6lyXK8rJGB+fU6NRxonw3Zm5d5Ctl8bbm/X8ffyGuYSh5Gn5M1aq0LyFWC7RbjDNCp3C7v1W+ 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)" nios2 defines range for ARCH_FORCE_MAX_ORDER allowing MAX_ORDER up to 19, which implies maximal contiguous allocation size of 2^19 pages or 2GiB. Drop bogus definition of ranges for ARCH_FORCE_MAX_ORDER and leave it a simple integer with sensible default. 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) --- arch/nios2/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig index fcaa6bbda3fc..e5936417d3cd 100644 --- a/arch/nios2/Kconfig +++ b/arch/nios2/Kconfig @@ -46,7 +46,6 @@ source "kernel/Kconfig.hz" config ARCH_FORCE_MAX_ORDER int "Order of maximal physically contiguous allocations" - range 8 19 default "10" help The kernel page allocator limits the size of maximal physically From patchwork Thu Mar 23 09:21:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13185325 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 185A6C6FD1D for ; Thu, 23 Mar 2023 09:23:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AAA056B0074; Thu, 23 Mar 2023 05:23:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A5A2B6B0075; Thu, 23 Mar 2023 05:23:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9221C6B0078; Thu, 23 Mar 2023 05:23:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 842636B0074 for ; Thu, 23 Mar 2023 05:23:25 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 2185C1A068D for ; Thu, 23 Mar 2023 09:23:25 +0000 (UTC) X-FDA: 80599624770.12.01BFF79 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf04.hostedemail.com (Postfix) with ESMTP id 6CF274000E for ; Thu, 23 Mar 2023 09:23:23 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=S9vNGrWj; spf=pass (imf04.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 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=1679563403; a=rsa-sha256; cv=none; b=8o+ILNxzLx1Eg7WUdtm/fDbCyG5tzDd6Y9Wh5cSqbjvWDWsLx/Bl3z4Z/W1wYuoxLY8WZS iIv2JNLfoLwl1+O+Hf0GNPg8GI5urUA2frp6yYtgekfuCyOEQ1Zh0WYzkjEJg4tFTiqcNb j/QX7kjCZT0iwguXWNmWprV+n0dYFXQ= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=S9vNGrWj; spf=pass (imf04.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 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=1679563403; 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=zCRsd73vS0MuZIC2LxtAq8bRMDrTRHHZ1DbhZdCeQ3M=; b=0Ife0baWwdj5bUO8vQdAsGp2gjVbKynBoQDzr9Jy3rc4HUsoI/l5/TfsRTsYbdEr8WsTtv AB7Hl7uO3IFhVEl6WgRHq/iw3YxATDC0F2hx+gMcdjx/PsO7LOgKJ4okfJrqV7BQpvou08 4826aVfFeBKWiMyJ06Gm3dVDhFKHHR8= 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 93DD06252F; Thu, 23 Mar 2023 09:23:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 041DAC433A7; Thu, 23 Mar 2023 09:23:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563402; bh=/lzhNRYztJj1ouQRj918klLWnmAPsjZfq5Hpj2i7B9I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S9vNGrWjED3wIll6kE/hVbqtHfO9MyT/Hu6xNL8puEW0xDcgPxTscIk7hCO4DRRC5 ilO3FYhi6cQgQK9M7F6iTKF9trHSwbxr5hoJkfZj7dH58LZn2C0zHeNgnNbtsmUQtM hIsslwy+kW7OQFFbsPJLGsP2YYNhAjYKRraZceOdAm6m8c5i1/UJ1zDvaAj33xmKbC 6w6+dB64eKtu7qOhgcaxRaogkiGRFH33MjiIPbCNMShREvrHFXffR8koK71/C5/yo0 J7tSw2rFHv3JNHd4XhC8LmXab+nvHt/80GpNUDwm9bN1QeR0YrOvlmBRd2KSSdSgQA DNJeKxdyXaYug== 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 09/14] powerpc: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Thu, 23 Mar 2023 11:21:51 +0200 Message-Id: <20230323092156.2545741-10-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-Queue-Id: 6CF274000E X-Rspamd-Server: rspam01 X-Stat-Signature: c7y85oekunccsq8ccgm5xzcyx79kt7ff X-HE-Tag: 1679563403-300240 X-HE-Meta: U2FsdGVkX18PuuKD0QRbGiFuzJDmq5W+e1B2woTMTYTegoC+u5DW7pun7vQOB9GYj2tD8XFTKLn5snvPzU1AIcqqYKdsE2gaqNjnzKotp1y2LzIryw/la1HWRPWAn6bh6CPUL0Z6SiBQy71OftK0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A0kClWMhN3xXptZcDD2CkBnvvPrGopql0MaU7GkqPgcO/7dCNR+lE+7NecGXQ7vE2Je9a1WYRHRjXzg8aVtOSCyj1ZXoocwHAmJdwvkLPzCj2orbpKcnNSqeCzMnRlvLsGFQVNwzfmgVuUzGAkgjlsqV+az7hAqN5nnqlQ4RwrMqM064z+KzHtoKA3w 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)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Signed-off-by: Mike Rapoport (IBM) --- arch/powerpc/Kconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 24d56536b269..c0095bf795ca 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -896,7 +896,7 @@ config DATA_SHIFT 8M pages will be pinned. config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" + int "Order of maximal physically contiguous allocations" range 7 8 if PPC64 && PPC_64K_PAGES default "8" if PPC64 && PPC_64K_PAGES range 12 12 if PPC64 && !PPC_64K_PAGES @@ -910,17 +910,19 @@ config ARCH_FORCE_MAX_ORDER range 10 63 default "10" help - The kernel memory allocator divides physically contiguous memory - blocks into "zones", where each zone is a power of two number of - pages. This option selects the largest power of two that the kernel - keeps in the memory allocator. If you need to allocate very large - blocks of physically contiguous memory, then you may need to - increase this value. + The kernel page allocator limits the size of maximal physically + contiguous allocations. The limit is called MAX_ORDER and it + defines the maximal power of two of number of pages that can be + allocated as a single contiguous block. This option allows + overriding the default setting when ability to allocate very + large blocks of physically contiguous memory is required. The page size is not necessarily 4KB. For example, on 64-bit systems, 64KB pages can be enabled via CONFIG_PPC_64K_PAGES. Keep this in mind when choosing a value for this option. + Don't change if unsure. + config PPC_SUBPAGE_PROT bool "Support setting protections for 4k subpages (subpage_prot syscall)" default n From patchwork Thu Mar 23 09:21:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13185331 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 77FAFC76195 for ; Thu, 23 Mar 2023 09:23:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1A8896B0078; Thu, 23 Mar 2023 05:23:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 159FD6B0082; Thu, 23 Mar 2023 05:23:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 021AF6B0085; Thu, 23 Mar 2023 05:23:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id E9C436B0078 for ; Thu, 23 Mar 2023 05:23:33 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id CAE6E14062E for ; Thu, 23 Mar 2023 09:23:33 +0000 (UTC) X-FDA: 80599625106.04.48647B7 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf21.hostedemail.com (Postfix) with ESMTP id 260C61C001D for ; Thu, 23 Mar 2023 09:23:31 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Vf+DqdFM; 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=1679563412; 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=WwcuQYubO1HhOiaBjYeuCdzgI2VErYAdoRgsy6FJpYs=; b=eNbI18H4Kz2Sfot1rllGptrxBC+62cf0EeskP0BbX2gSqzHYg6SsBc+1ooEj7aol2tLkF5 poKyTcO0LaWsKFsyAQJdQ6noIuv5+NIJahQFaZZD9Vup8Tk30MmcxrLpH7+v5e55QpiqFs 3GUYXYT/UajbkvsUIGjsah6XmJuU9JE= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Vf+DqdFM; 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=1679563412; a=rsa-sha256; cv=none; b=JR6VC3HFer2+ftj1BAyXsCZvJdnme1Q5aMghVkvyb4PpDh+oWlPd3aAxK23PcGtWWJyffN BL9N5SxmMVyNZ3o05g3ouvlOhA7xgAGFPYwb9xXbybiwtGOwcfCXMZUAnEaeqMsYCxidxV TW6a+KmhNq7ejkfsO3cHr6G31uFc23c= 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 CC2F2B8202A; Thu, 23 Mar 2023 09:23:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 922B2C4339E; Thu, 23 Mar 2023 09:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563409; bh=mp6A6C8OOeS6nY+QDsN8wj88cRjFdHtJCyFT1kANL6s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vf+DqdFMjEwSbPC+mJj235EVrBbgYDeFMYHxHYwKEoJX6x2hG7Nd6wUFlTriUV+ju Ki+QZQPrDtM2ZM/upW1C91O6NowwP2geqJok0JmWq2H72w6qScQsAHBP450KPi50O8 GnVm52Ym3n9y0567PryZU/4PnsUtdUTXIfj7RKzU4XtAIIDfvODMlcqYrijMGf+xdU xlmiAvGgCuUdAQV6JuFcTkmxtOYvFB1YsVPqzbZtVOz+BNwl7EUfScn+rtw/Gn/cvW hcHl/dApeHp57bvQnfEJzFI6X2ZwwbySWtQPm/oSj5a+4/6CqZV3+pdT8sT7oM/zlU LyHhQhr8mNFeQ== 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 10/14] powerpc: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Thu, 23 Mar 2023 11:21:52 +0200 Message-Id: <20230323092156.2545741-11-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-Rspamd-Queue-Id: 260C61C001D X-Stat-Signature: 66q85t9em1kepmekk8jxnis5wghxqzue X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1679563411-865180 X-HE-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8/az9zLBskgJ3GN9k/ywgflbRK+LOmNO1cnIAOOSJHHG8qYFekD2SULcBZvHnR91XGiCgY1Hdw4v3P9Ylqb0hbqNqyf4MgOiZmFC4nLr3veiMPyRKN49BdDsXEgeB8ffWC5+OcQqlus4QneyrMRSv34P5sni+8cPGYR/GrJ32M8swiOPVX+f1jz1nc1Tyhlf8p7HB3dfriGgU4h8tMUrLGiwYyY8GrlKg4l9ETNVey 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)" PowerPC defines ranges for ARCH_FORCE_MAX_ORDER some of which are insanely 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) --- arch/powerpc/Kconfig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index c0095bf795ca..419be4a71004 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -897,17 +897,11 @@ config DATA_SHIFT config ARCH_FORCE_MAX_ORDER int "Order of maximal physically contiguous allocations" - range 7 8 if PPC64 && PPC_64K_PAGES default "8" if PPC64 && PPC_64K_PAGES - range 12 12 if PPC64 && !PPC_64K_PAGES default "12" if PPC64 && !PPC_64K_PAGES - range 8 63 if PPC32 && PPC_16K_PAGES default "8" if PPC32 && PPC_16K_PAGES - range 6 63 if PPC32 && PPC_64K_PAGES default "6" if PPC32 && PPC_64K_PAGES - range 4 63 if PPC32 && PPC_256K_PAGES default "4" if PPC32 && PPC_256K_PAGES - range 10 63 default "10" help The kernel page allocator limits the size of maximal physically From patchwork Thu Mar 23 09:21:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13185332 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 CBEF4C6FD1C for ; Thu, 23 Mar 2023 09:23:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7020A6B007E; Thu, 23 Mar 2023 05:23:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6D8336B0083; Thu, 23 Mar 2023 05:23:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 579506B0085; Thu, 23 Mar 2023 05:23:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 4B0DB6B007E for ; Thu, 23 Mar 2023 05:23:40 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id E8E6D1202EA for ; Thu, 23 Mar 2023 09:23:39 +0000 (UTC) X-FDA: 80599625358.22.48F810D Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf27.hostedemail.com (Postfix) with ESMTP id 27F7340012 for ; Thu, 23 Mar 2023 09:23:37 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=GFFz5NaC; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf27.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 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=1679563418; 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=ieU6MJ2gfyQKdq+5xSbR/IAwtBG/2PyGitCA8Mx/mRE=; b=n+d8d6fQSMZQCwNbabDN/rRKSRo3KxkqBdTRNF5VA9QhUFysGW/0coBhcjLbOh/Ob4gMM3 qhsZBQ2VNChlGd37o9i79IioT+oijA52bnx9G9F2M7A5KSJKd7uNthw42h06Zh71P9DDWK s7yZZJyuF8A8qfTNjqmbaONOEbC45co= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=GFFz5NaC; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf27.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679563418; a=rsa-sha256; cv=none; b=uSi5hJaZmQewASJirVTZOVVw2HOfRxoU5b1Bv8RS5+ahqbFupHc8kN7GuGzQQ/VqRnEeA7 6Cf6loX4rCkuziz1RE5Oc8/XDN7MANgtyu46UoFF9exa0nWoraCR3vJAwpY9qldOl95CXw tiBM+xeKRIBrEeMAyGXu3rLTvS0/35E= 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 628A06256A; Thu, 23 Mar 2023 09:23:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D02FC433A8; Thu, 23 Mar 2023 09:23:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563417; bh=xyXXkPdOs/21dd9fXLx/1W3XAfw4Vm18klKPTzgLDlE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GFFz5NaC+vrwnSCGIu6c0oHMBmH41+j5nnZFHvFRMqQaOnlu8zCF23yQp8LqpSUt6 Qu329MdHdt1bUT9fJK06PoV31PmGAOtM86VmGGT1ePi7NlfJEiWbMRrc+lyLqcxUaC g3wJxdZ/KGyisazSl2iXmhi5XAujfAaBfhSNzNxy9q7dxCJ4yRuzdekruueK/KJns7 E9Xbl9WHZZsP+II+QP+PJH/FE+VWPnqb5Q0JLaSNy+ppD59eLK0NEmcrtk4Jwx7jp8 pagmMXBYAzaV+b1cDmcUqxElrUp+xt0+aQe1ggmHaoGesSG3y9jUY6DZ+ry7M/kiwn JU/N4Vy1Mv7nQ== 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 11/14] sh: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Thu, 23 Mar 2023 11:21:53 +0200 Message-Id: <20230323092156.2545741-12-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: 27F7340012 X-Stat-Signature: 6o7u5azk4gq46d9of7nrimf7c33s9t3p X-HE-Tag: 1679563417-290657 X-HE-Meta: U2FsdGVkX19w6JV+/7cViil5fNtZl82+OkiWw+JznuU/GOzl6iNA7INXhJV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lYUHYWTZZDvgShXg1eOT/4PoZvxjdRm6zLtsZlk6/azLuzYbQ6CbvoKq92wx5d1/T7bXvH4epU+c7MpR+Xo19IHaiJ+KVWSgJ7ITceoWrooORsgdqKM7wr/8g6LpFSnQz/V3dmzG8WsuJAKFdCez8rjts5OqYRPQ88XMSfNdv2Apcq/dGxWICxFWGNvPDdhmQDB2Da8HhnuWBsr+WHSzgCIWfsY885Gdf7YYFwu6fmo9NaQVzQe2eCZPGc5MLVLnGJMs9ZjdL2X4mjVkYv1Ld/FSq5ObhLV8BgF3BMy4cFL5OY 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)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Signed-off-by: Mike Rapoport (IBM) --- arch/sh/mm/Kconfig | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index 40271090bd7d..fb15ba1052ba 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig @@ -19,8 +19,7 @@ config PAGE_OFFSET default "0x00000000" config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" - range 8 63 if PAGE_SIZE_16KB + int "Order of maximal physically contiguous allocations" default "8" if PAGE_SIZE_16KB range 6 63 if PAGE_SIZE_64KB default "6" if PAGE_SIZE_64KB @@ -28,16 +27,18 @@ config ARCH_FORCE_MAX_ORDER default "13" if !MMU default "10" help - The kernel memory allocator divides physically contiguous memory - blocks into "zones", where each zone is a power of two number of - pages. This option selects the largest power of two that the kernel - keeps in the memory allocator. If you need to allocate very large - blocks of physically contiguous memory, then you may need to - increase this value. + The kernel page allocator limits the size of maximal physically + contiguous allocations. The limit is called MAX_ORDER and it + defines the maximal power of two of number of pages that can be + allocated as a single contiguous block. This option allows + overriding the default setting when ability to allocate very + large blocks of physically contiguous memory is required. The page size is not necessarily 4KB. Keep this in mind when choosing a value for this option. + Don't change if unsure. + config MEMORY_START hex "Physical memory start address" default "0x08000000" From patchwork Thu Mar 23 09:21:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13185333 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 E6791C6FD1D for ; Thu, 23 Mar 2023 09:23:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 887AA6B0083; Thu, 23 Mar 2023 05:23:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 837C46B0085; Thu, 23 Mar 2023 05:23:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6FFDB6B0087; Thu, 23 Mar 2023 05:23:49 -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 628966B0083 for ; Thu, 23 Mar 2023 05:23:49 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 3C4871606AB for ; Thu, 23 Mar 2023 09:23:49 +0000 (UTC) X-FDA: 80599625778.11.1E1E4D0 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf16.hostedemail.com (Postfix) with ESMTP id 620C1180006 for ; Thu, 23 Mar 2023 09:23:47 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=fSSowVKk; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf16.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=1679563427; 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=h+YlYSthhOBb0s3FtBNRszFjjOIbwOB7F0p1CBuDGvk=; b=QEaOSz+slG+vlcTDh7Uhq/IdJi1N2PIqX4u1uxgFy9yOiuCPYt7Qa2B5aBMsWZofhA9Kb1 5ZduF9VZOIUgH2l8nKpU1bGN7AG+GDWe6rpFl+vDEMtPcv9VkPXv90Tj3IySXzFBC2ozhi 4npmXNLYClSWAQopymN2cBFLAoxGz1g= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=fSSowVKk; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf16.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=1679563427; a=rsa-sha256; cv=none; b=c1blTIRVS6B7nN+WsT8vRyV9IjZNi2v12wtXae9FGcvbDuUkWrHddmCg1i+LhjXPrNpJ6e wleCaKndTMdUakZVBQEde3UPlIrem9BjHh9tR5hZMdAhduvnb/765+BTIFgA4w9apglkIx LvSRQ8WKWO4wGMwXGJmIiwAA8Dn8X0U= 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 188C5B8202D; Thu, 23 Mar 2023 09:23:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD746C4339C; Thu, 23 Mar 2023 09:23:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563424; bh=99+9gRXuNZGZrnvJd+Y1nZy5usyv3NMBBGlXNWMVJhs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fSSowVKku6I+4khALqKcaWeFjf1TxQwq6N17YCC7lSQQq1PMKZNZXR6Amg8KHBCln 8D1+czeovKFYgk9ba7AwrEOWdx4T4TvSidUG4w0oEnP7Ux2idkiveTG5RuhNH001uj ZH2wbqVR6pwA72IlRr0A0Vm+Px75ZhuzsapmFJ4MJUx20c6j0uj+d4nkaYltR2HdGP LBmRDMYlYeROh4iX+5zaZEFyfMPZyDOym4GBzHOPHNe4Rg7MF0KLgYOBU/kY0U7tEp 2qhz4vjT8nOntJZetWtWrbF6J0wrO+fnxdSyIdjlEGw6E/HBeJt9B+RUXXoHM7dYWp 7S274GLZIA5Jg== 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 12/14] sh: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Thu, 23 Mar 2023 11:21:54 +0200 Message-Id: <20230323092156.2545741-13-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-Rspamd-Queue-Id: 620C1180006 X-Rspamd-Server: rspam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lieHSs+pJbprml4cE4pOkgdtxAyZCKdCOFnw073CHM7/fB7GpdlmQGsxC8kYVnkAjMu888nfNErgSs6Pm4vaN2wSNKAG/utEDmpxke1n4lTMpbtJnlN0eviEiAMVwiCo7NsoNm2AX0C1UkTtC6B/MO76MBgqVbTSTHpj4e9BuP/OUAPYFyX/mH5cJxMJh6MhyBHP8xma6FdsBke9wb+EPKEXgvrvNaHW837BWs83IFgOsRxkneCPB9KI4s8GyhAOGktsag6/tlitvGeyi2REhd74IRp+UpXY+0oY0W8ZcPpjpclMwNL+FJE 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)" sh 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) --- arch/sh/mm/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index fb15ba1052ba..511c17aede4a 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig @@ -21,9 +21,7 @@ config PAGE_OFFSET config ARCH_FORCE_MAX_ORDER int "Order of maximal physically contiguous allocations" default "8" if PAGE_SIZE_16KB - range 6 63 if PAGE_SIZE_64KB default "6" if PAGE_SIZE_64KB - range 10 63 default "13" if !MMU default "10" help From patchwork Thu Mar 23 09:21:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13185334 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 2A0C3C76195 for ; Thu, 23 Mar 2023 09:23:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BE2676B0087; Thu, 23 Mar 2023 05:23:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B928B6B0088; Thu, 23 Mar 2023 05:23:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A59FC6B0089; Thu, 23 Mar 2023 05:23:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 9473B6B0087 for ; Thu, 23 Mar 2023 05:23:55 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 638DB4064D for ; Thu, 23 Mar 2023 09:23:55 +0000 (UTC) X-FDA: 80599626030.29.D137486 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf17.hostedemail.com (Postfix) with ESMTP id B8B8A40008 for ; Thu, 23 Mar 2023 09:23:53 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=bXT7tVFQ; spf=pass (imf17.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 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=1679563433; 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=7vJvYqihbaZZxSzTlBL3/w/w4YY5wGGwCSp8sD393ng=; b=kwDj68l79hWXorcfcDx1B+ttFkczjXe23T+GZtWoumcgN1TlIGYlei/OFq+pJpx4GoZ/M7 q6O0dYg9MmoScujXNPRvxxM6T4mMST6A0E5auOILM9dur9Lnj7rah7XTJGDutv8xuSqgHY nr3pV6eZ3Yxyyw8ZIfrzoL5G0aI0pq4= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=bXT7tVFQ; spf=pass (imf17.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 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=1679563433; a=rsa-sha256; cv=none; b=wR9Bgx+LXOMhGkDo9UacnQr8kNOBZB96YQFlfhGKEhAFdPd5MRj7aoZUf/4HueivdMdCw8 6gDcqXJjaVwfT6eaFUXZ48i6o7qqX+eaBKOXTL3uemMqmUfdfJ4dqeV59wlYD6KVdM/MZi 5MMtNlgCq57Lo8dT8ukZ28KBOp6R20s= 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 E7C0E62567; Thu, 23 Mar 2023 09:23:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57854C433A0; Thu, 23 Mar 2023 09:23:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563432; bh=h6B+59Tw/wfggMAxASThb2CqM8SDBv67+wW2LDMN9Jw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bXT7tVFQRhfcw151cmushy4biLsPbWo6PzWcZLPclsdZZu0AHI/gHXPCin5Sg9iiA 2jk1L0YVy7Qe/xDRPG5nOHZxPuEwCxatggeE5zw2R5dQXNP451ThM1w/k3c6D25V2O N+fe/J9ocQzrTj5ZRLDbYNoj8L7Fg7BoJUvOHZovfKRiaVzD97DUE5sICsn6MFA/LY pi2Jmg0MAtEvLy9L7TPVXS9dEOiqkceSsUxLk5XOUJZY6EZeficShFvwWbnG3PVgeZ ReZTduniWcIdQc0MmOkZSG5un3YfSersJkiDN7rNBFhp80ssYVvFAzH/URVEBtzC7R bB6ljs+LiityQ== 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 13/14] sparc: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Thu, 23 Mar 2023 11:21:55 +0200 Message-Id: <20230323092156.2545741-14-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-Stat-Signature: cz6fsoi3az4pugu4ot76gnuxc7qc8pqp X-Rspam-User: X-Rspamd-Queue-Id: B8B8A40008 X-Rspamd-Server: rspam06 X-HE-Tag: 1679563433-551427 X-HE-Meta: U2FsdGVkX1/XUECLdv8VWeIpOvjAYRAX89J6tdBR+u92aDMOf6IcrAZWjT1bJeuMqmiBP1DAvEmr0u9FYmDcYlgGvfZwsJTkpJNdDQxTON31+qLu+uw2BigaIsmbXNL92XCZCxB+vVp9RNt+zaZUZ0+X6WKJGSTe+FncC6/SQr5EX5gRSsb0G5Xc1FqrIAte5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Ld16JrNhaw4weEuxO3QcA8QKaP/9wGTxAZ5BupsvheHp0LD1DH92dKtr7Ztl31ya0ZxiPHhB1gH4iGRjseQFYMahiCEgrPjn1FsQ5TK/9nsWXWtgt9/1muDe9ftc/npeYzoHLn4JupUv73Ir4GSKPr+5P2+WbnkFMItKRPLl 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)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Signed-off-by: Mike Rapoport (IBM) --- arch/sparc/Kconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index e3242bf5a8df..959e43a1aaca 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -270,15 +270,17 @@ config ARCH_SPARSEMEM_DEFAULT def_bool y if SPARC64 config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" + int "Order of maximal physically contiguous allocations" default "12" help - The kernel memory allocator divides physically contiguous memory - blocks into "zones", where each zone is a power of two number of - pages. This option selects the largest power of two that the kernel - keeps in the memory allocator. If you need to allocate very large - blocks of physically contiguous memory, then you may need to - increase this value. + The kernel page allocator limits the size of maximal physically + contiguous allocations. The limit is called MAX_ORDER and it + defines the maximal power of two of number of pages that can be + allocated as a single contiguous block. This option allows + overriding the default setting when ability to allocate very + large blocks of physically contiguous memory is required. + + Don't change if unsure. if SPARC64 || COMPILE_TEST source "kernel/power/Kconfig" From patchwork Thu Mar 23 09:21:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13185335 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 0FE7BC6FD1C for ; Thu, 23 Mar 2023 09:24:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A5A946B0078; Thu, 23 Mar 2023 05:24:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A0C586B0082; Thu, 23 Mar 2023 05:24:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8D3C66B0089; Thu, 23 Mar 2023 05:24:07 -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 7B7D36B0078 for ; Thu, 23 Mar 2023 05:24:07 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 4F6081A06A5 for ; Thu, 23 Mar 2023 09:24:07 +0000 (UTC) X-FDA: 80599626534.28.29A5671 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf05.hostedemail.com (Postfix) with ESMTP id 99F61100014 for ; Thu, 23 Mar 2023 09:24:05 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=WIWeaGhk; spf=pass (imf05.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=1679563445; a=rsa-sha256; cv=none; b=WF5PAFSAqb8zauApXyWogsZtWhqcfwqggFDNXDEpWIP7I2hDXnmjDfYfOwUdfuTM4qTvkT C/SYTFaJ81/nu/pTXrr4hIaJ4BRZtm5IqC0TvT6j8waHK7pBh0SUH6pc4gmKOlLkUoIuzK R86Vg6lisY44bB8nYeCC5++i7KHnurI= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=WIWeaGhk; spf=pass (imf05.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=1679563445; 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=H32cuQ3SphckJ3aDr/4WYGo8VXam3pofa2cEPa/nrF8=; b=Yq7tanEau9sZ9UuG6aeKfwLEMd8anq2TswPlc/B7VCpprgTnluk/E0Pe03dG2Q2yC7KPkm MaRLsfp07gjGN2WUExeG/L2RPpRWnjwx/OKdeI+UyYYQrftu7NyCC9fvhV0BECEK4tRIuq jaGP9C57BOZrG/obdQJqgj51wBp92fI= 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 2B63EB82033; Thu, 23 Mar 2023 09:24:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4E88C433A8; Thu, 23 Mar 2023 09:23:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563440; bh=cLED8RkguNRC7M0dLtOL32lQLdxQxLek8h+Azi/Gy6Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WIWeaGhkdAVAFsei9Bza8wkj6njjW2uuNU19Ix52dZIy4kTovKxu2Yzdc1Dz5INgk 6Pg8B0dxqUnQqAGPRddvXBDr04oxwsZgfgMfgJcU2jrpRxwEnlQEkRrI1EaXpZ/Sd3 J1R1AHdgpJEjig/ZCiDv6lRb6moY7coIH3tSLS9pooMmPjppzT+nQQhT/DWOAlRgqO qm0cc8RB1yphHkpFQoCij3s1dldJDU1nXnNLUsJgMOQ4HfK7QoHZuhf2AiVIoE2wS5 yFRQUoFek2mX0QhpEnHG0I8VwxyFZGYOyQDQfZMNp/sVEaoPdJET5/f6iAfGlVUfv5 tjTM9P6gnulFg== 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 14/14] xtensa: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Thu, 23 Mar 2023 11:21:56 +0200 Message-Id: <20230323092156.2545741-15-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-Queue-Id: 99F61100014 X-Rspamd-Server: rspam01 X-Stat-Signature: k3j1e49g44ciwqqcb1ittpab873izmfh X-HE-Tag: 1679563445-139403 X-HE-Meta: U2FsdGVkX1+jHYkqUw2NciIzqXLlxcSdKcgeX3UzF78skqnsKl2iWHPWX6vCr8oUdDCtCY4M8YnEC6DVJNxUdlieZvpdaZ4Sr0+AMtSYzPvkbmDZw2ROrU3eK5TT3FhNd0ODA1RiDPnfRC1hLZIjZFjp5RXsLlSMhIpEeNmnim+QMyJKucS8nerAntnhWsbtZm8fVIxpKgZTo6P8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wpz3ga+8qkgJl7BHlvWjx 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)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Signed-off-by: Mike Rapoport (IBM) Reviewed-by: Max Filippov --- arch/xtensa/Kconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig index 3eee334ba873..3c6e5471f025 100644 --- a/arch/xtensa/Kconfig +++ b/arch/xtensa/Kconfig @@ -772,15 +772,17 @@ config HIGHMEM If unsure, say Y. config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" + int "Order of maximal physically contiguous allocations" default "10" help - The kernel memory allocator divides physically contiguous memory - blocks into "zones", where each zone is a power of two number of - pages. This option selects the largest power of two that the kernel - keeps in the memory allocator. If you need to allocate very large - blocks of physically contiguous memory, then you may need to - increase this value. + The kernel page allocator limits the size of maximal physically + contiguous allocations. The limit is called MAX_ORDER and it + defines the maximal power of two of number of pages that can be + allocated as a single contiguous block. This option allows + overriding the default setting when ability to allocate very + large blocks of physically contiguous memory is required. + + Don't change if unsure. endmenu