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: 73931 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2807019wrt; Thu, 23 Mar 2023 02:28:42 -0700 (PDT) X-Google-Smtp-Source: AK7set9h32oz+gEws/PZqBXYsZAcvSuDq16fbZH8kG/rgFSUSahjarDZhszjv5gmWfx2Z72DnhJL X-Received: by 2002:a17:902:d481:b0:19f:3617:e9e9 with SMTP id c1-20020a170902d48100b0019f3617e9e9mr6874995plg.43.1679563722576; Thu, 23 Mar 2023 02:28:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679563722; cv=none; d=google.com; s=arc-20160816; b=oP3AUhljd2P3PUxTDXWzL/qyt2d/dLN7zqnn7X5RhwRdJVR6HcymhLJ5jjG+iMloqv +UIQ6xaDwh18H0NlSKOK/9cSJ+VlyrDYKmOWPg27/XKFtOiAWjSR+prZfYXtYGjqhtTq avvsDB4OnR3qbGBkORBXXJOIKlL8Op+TmvriG+Hd0qIt1R9lm5By7yUV3O6+OyJDaHCS 6AVpgXJsr57aX3d18Eh23Q8C4nRnHsGK7JEDkaTnFou9VoEBDFit23GJq184u5b6+2tO u0/qNj5kdSyCOGRVGSwBJOKJeCEdjZ8pO1xxahPJRrz2CTY3Zr7bPMMeA+5t4luSRIQA /zDQ== 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=ieU6MJ2gfyQKdq+5xSbR/IAwtBG/2PyGitCA8Mx/mRE=; b=ZCwH2dM55sgF1NxuPTg7kLaR/w94y/9Wac4hwI1vezLIsIgVFJB4JDaOOKA0FFnFaY zi9lKoxy9+F5OHEzZ3tPN/BCYo9QeZ3IL3OimJrWEps7ZzSNo3hFnATmhLZC3/AybmZi ueRlsuaR+sKFIX5AHD6nxhCyCeA53G4T+mQFHc9U/BAzzOXEnUHSHfAw9DbSwHwnVCD8 2PT+RRl0wUDQhcQFylGjLZmyaG0amVbVTCaiUiLkQc+Kk27j1H+pKVnqVEtZVHUT6V7R Dk2dAMFbRf5+3KX9wIftX4lGxe3gzOC1p5oKaJH+mWdTtVQbOpnsgTMOfwaDeSgITGMg 0D9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GFFz5NaC; 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 l6-20020a170902f68600b001a1c005bd52si13355802plg.34.2023.03.23.02.28.30; Thu, 23 Mar 2023 02:28:42 -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=GFFz5NaC; 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 S231192AbjCWJ0S (ORCPT + 99 others); Thu, 23 Mar 2023 05:26:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229917AbjCWJZM (ORCPT ); Thu, 23 Mar 2023 05:25:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AF51211D6; Thu, 23 Mar 2023 02:23:38 -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 dfw.source.kernel.org (Postfix) with ESMTPS id C372562567; 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-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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?1761150210056169857?= X-GMAIL-MSGID: =?utf-8?q?1761150210056169857?= 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"