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+9uSPow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eBgTrgyQYqArEdDFP6puBkyV0FuUxY/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" -