From patchwork Fri Mar 24 05:22:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13186424 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 9A565C6FD20 for ; Fri, 24 Mar 2023 05:24:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2E3D86B0087; Fri, 24 Mar 2023 01:24:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2932F6B0088; Fri, 24 Mar 2023 01:24:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 159CB6B0089; Fri, 24 Mar 2023 01:24:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 076D96B0087 for ; Fri, 24 Mar 2023 01:24:00 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id D0481808D9 for ; Fri, 24 Mar 2023 05:23:59 +0000 (UTC) X-FDA: 80602650198.13.BF00DEC Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf06.hostedemail.com (Postfix) with ESMTP id 108D3180007 for ; Fri, 24 Mar 2023 05:23:57 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=fqCbMYSM; spf=pass (imf06.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=1679635438; 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=doB+A+//ZGYqd5r6xoksR3G0zdrIxGuJAmwL+F+Umqg=; b=yt076png5MN6Pq3OOKp5Ko8I9ljNIbe1tpnrqAwuUDuuXVvz1seJju0QbZoRRpsHIqgs96 kyH/k8B6j+S6fRHzTXQohuNNdIKn1pxyrTvUlT9VodoDFOqhfZmvrzZTB4VaS2T0ggPFN3 eklszeEdNjc/CzQ54Z6JaXEIyFDniA8= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=fqCbMYSM; spf=pass (imf06.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=1679635438; a=rsa-sha256; cv=none; b=uZwd9l8EIwkH1CQEhLp9NSGjptLUl/+jyEisABkZkmbzgrpKzOcqofqeML4cxJAW/DPOS1 sdDADDVtjMyyuHoHG5+5wS5vLhvlBlOCbHp+cv/FzQeFb2IvN38PBeBqWKGGk3EaQuODWq dTM85JHmrhoFjpWKpYN5BcIBwFMLotU= 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 409C6628E6; Fri, 24 Mar 2023 05:23:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BFCFC4339C; Fri, 24 Mar 2023 05:23:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635437; bh=UVsispKOXrBQIEvWETypgEvjsfcHzjlmC/4ErOkgTNY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fqCbMYSMHRA8KSzswP21kxD34OBvPg5Oroes5iFhMPJ9Jc9lUvLPdfZusBSVzxRjD ZlU6JqXwo7gqufTHgsi7V2KYkqvPdhXWJniY546kA+HW//VjjbzDJ5M21/A8oWT0Lc cETKEhPNKLa2fOzp+XVPD0qVEl0P7kiVmNLagl9k1laXXohAb6JbmnGiNxTwWDsuS0 h8cxMHFbqttSNXkLPI/vicrjWlcEAN1g8TI7yesPlErb1aBdTV3L7Hi1bMNc6+Bt0l 23BSyQJZuTuaAN09/B8wSFzbZ3vkeBkT2OBZEGsqb1Gwi8JLs1MyWMHpy7vS3iIw6J HLZTIgog+NgUA== 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 09/14] powerpc: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Fri, 24 Mar 2023 08:22:28 +0300 Message-Id: <20230324052233.2654090-10-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-Server: rspam07 X-Rspamd-Queue-Id: 108D3180007 X-Rspam-User: X-Stat-Signature: n6o5mnfwquisuqg474h7jdjiurp9zc5n X-HE-Tag: 1679635437-907046 X-HE-Meta: U2FsdGVkX1/1bR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vXveILyAomeMjbXAvVhIQ28z/LslH2i4cBQMYzN0DzQvvz07hRAXoUDJRfp+d97RrL63lotgQi5Xru/Ff3xUW4hjIJMV2jhdvMIyom2X8VHkzeP1Wbp84UVsaJoqgsrIxaokMaNtNS7/lN0ah1dkzdPxtVKxrTPcDKnzwUDczbCHpHelsYIzAJP9TK35s5m6R2AYXo8TeFtOYM01qK47MbTojnlWv0gzHB4v7U9iCO/V2pqkZQ47aNIf4bah3rU7+66gXWjZxZEsHAw2EX+tCX4GgEmScJyP7QjHKhhhAJMxTLrLNbFQRWP0wc3Gte0sGo6BQkIeJ6dDda50FLimtdO08X4pFUpFLcDcMCltQ== 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/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