From patchwork Fri Mar 24 05:22:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13186411 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 ACC47C6FD1C for ; Fri, 24 Mar 2023 05:23:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 506F96B007B; Fri, 24 Mar 2023 01:23:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4B5456B007D; Fri, 24 Mar 2023 01:23:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 37DE16B007E; Fri, 24 Mar 2023 01:23:17 -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 272A46B007B for ; Fri, 24 Mar 2023 01:23:17 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 456DC1608D4 for ; Fri, 24 Mar 2023 05:23:16 +0000 (UTC) X-FDA: 80602648392.19.538B160 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf22.hostedemail.com (Postfix) with ESMTP id 92173C0008 for ; Fri, 24 Mar 2023 05:23:14 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=QKsHTrvo; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf22.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=1679635394; 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=h1fBzFR1C2otn/COmqLryUQJ1nrFXVn/BwszCvhylOw=; b=qub0Iia1ZupQMsKJsNDi9B9XwWy0TTe5lWYfFl4e8cMAEWY4XiPuvhkdfb/MKBYavVJdjF n8avkfrJt4NFVuXJx+UamRQS7Wg8W6AO/E1tvjJ1mfkUoxl3Qs9QQHq8gHh28QucmTJlG/ XM+zsegmQwJAslWBlEpTaXGlbzg7/QA= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=QKsHTrvo; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf22.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=1679635394; a=rsa-sha256; cv=none; b=VgS++kcqOXvb0vG38/lpfFypMuKmAOotD+h4XwQwqTUjTPqqoIbA18CWdG7ykJ6GX4jH8k +P7glZArJiuYAYaze3MXB75JqSQNr7VR8VkEdmNNB7GFgFtETBHiLuioEqIrhalN0ov3dx WJvUz6TGRU+d/nOzkEZ1cE2d811ZjsA= 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 BB29362957; Fri, 24 Mar 2023 05:23:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61994C433A1; Fri, 24 Mar 2023 05:23:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635393; bh=Zfj73O5QmHC9csclCsOEEXs0WRxczZbIru4eG1K3bF4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QKsHTrvoJDstuitb77BIdiwhIP8BnjIaN5EfRgntemImBAB2ZoJrnpLrEccFXRIFT cxArY2y6DiOiABJ3L/i7Xu8XFaoLsX7moofmhfeyBfVo34JiBXOm5jl7XaS0xnssVU 5blXXcAyhof9+c3M9s2cj1NYXPhn1FREYEnY6T8K5AzbNu1aI7sQTJqR78YpvVcUaI 0Rc6KE/ZMV9Ep1Z7hq1bseI4eJyOaUNDDEHJUuWotCorS+yiI8KgE33OzElWYTw94O eah6z/e12f41ZlVpKC9qfzCGl1BSz9jP0V0wGx62Q1Fhm/yf0ocImos9jX9ZryNokf l1gzvZ/IqwUeA== 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 v2 03/14] arm64: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Fri, 24 Mar 2023 08:22:22 +0300 Message-Id: <20230324052233.2654090-4-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 92173C0008 X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: f8ncax9ybbextrgiwez3gmbd5aricidw X-HE-Tag: 1679635394-342439 X-HE-Meta: U2FsdGVkX19SppQymqZerI9Qy+jWKGlAEZv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+VeM1lC8qtmH2udti6l3IuxOd8MdqQbTAo8o4dGqW1mcVfd1xJrg+ewZXxS57DSEF8n2TGexWlV6T+klzoyDo9irGJReZn8jBdW+dCQwdfyGBC0LOGMy927Dr/CT3Mf5AWKapAH9hJzOyJ1I8ORBGa0blBUTphvmwdqwcvn5Yp/A3Jmo7LgiiiXb57UzCnT9FuiTV+DfAlQ45UNUVNiZkZEl5+UK01A2pU8+JWTxYXc3FsKVdZPCouG5GQDgYf1jODUZ6tR9qjksL/6Pj1fA+BpyhXOGVydcz9A+fX+j5eqxTvTTCTbwSqS3SjgdHw4BJ4PWZL7y5/aZ68o9xTvwMuldUew== 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: Kirill A. Shutemov --- arch/arm64/Kconfig | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7324032af859..cdaf52ac4018 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 EXPERT && (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