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: 73927 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2806806wrt; Thu, 23 Mar 2023 02:28:02 -0700 (PDT) X-Google-Smtp-Source: AKy350YLbWLnWt2k3khUMtuDGQCyf1fobtf3U77k8L5rM322aFykA0e8r4GlHhiP8ADqYhb+TTrN X-Received: by 2002:a17:902:d489:b0:19a:9dab:3438 with SMTP id c9-20020a170902d48900b0019a9dab3438mr5768716plg.2.1679563682567; Thu, 23 Mar 2023 02:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679563682; cv=none; d=google.com; s=arc-20160816; b=ib7ExWf2CMBcc+f1/I0rENaeciqtFbKXsyW3U2LVOZ/yi7cHPWMrOs9RgMKGuvaIjW xD42fqyWTv6MP4lIA6SNSc5LQPbNutNt1oh3trx39vOsfdG4YwTaDsFLeVB1diz1WO5o 5tTkIqneqU0s9A6656EX9R+jYgMADVBTJvIetNs0Y1U1ahDMs8a4PPQZta7Skq9+KVcK 8OR45hA+IAp6LxEN3P2gMpx+RVINC/OUVv7+aRLWQ/RCmQhaVBKYDGzTnaBa+hCcIThm CImozXlWL145yyksdCLQm98WQZs35LFQMGS3DBozuEUgRFRvaPPE1NO1pXm143YQxmaf 7sFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zCRsd73vS0MuZIC2LxtAq8bRMDrTRHHZ1DbhZdCeQ3M=; b=s4WqqzBXm0SeEDe/iz7zmDf9kT0DrBzvxHsCJz/QucM5cxn4bdjKAuqa5sJ7kFQvex KkpXJR7MdcyM71os6Nrdt1Pil6U6suu5qhCk9cTKnK4lAXJi1yrE4+EvpnycfCgfs1Vh ms7IcFH1LUgVUOLVRZcu/BxYtTfvJaPxhSnLKIVi630omI2ytzSvS7VyYvTgBGPCElfQ KKuvx6/aXkho8/WmYDiJ8PGS2VaNrIdpfmwmFp2OLMgJ2/G8kaUWccYO3Oe+oyzvOxxL ZbD7W9E+vGgHGUhFoSxc6V6pMmMHSxCh7egCoSPjkwQ0x8+G/8UaB180XVDDjW0DXa9d j9ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S9vNGrWj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t19-20020a170902e1d300b0019e8c3cd415si17071896pla.260.2023.03.23.02.27.48; Thu, 23 Mar 2023 02:28:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S9vNGrWj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230355AbjCWJZf (ORCPT + 99 others); Thu, 23 Mar 2023 05:25:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231455AbjCWJYn (ORCPT ); Thu, 23 Mar 2023 05:24:43 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B27B20077; Thu, 23 Mar 2023 02:23:24 -0700 (PDT) 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 3C378B82027; Thu, 23 Mar 2023 09:23:23 +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-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761150167811641189?= X-GMAIL-MSGID: =?utf-8?q?1761150167811641189?= 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