From patchwork Thu Mar 23 09:21:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 73937 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2809249wrt; Thu, 23 Mar 2023 02:35:09 -0700 (PDT) X-Google-Smtp-Source: AK7set90DNxAGQRZlxb8V9o/z2wXOB9/d7hAQSfKw2POWxpKPttxLHCV2mfG7TbsiLRA+KzjEqGL X-Received: by 2002:a17:902:e293:b0:19f:1c79:8b21 with SMTP id o19-20020a170902e29300b0019f1c798b21mr4526081plc.42.1679564109385; Thu, 23 Mar 2023 02:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679564109; cv=none; d=google.com; s=arc-20160816; b=UF8H8XxmfI0bvSLkZ0T4hl4xT0Y8NSbVfYMa9NOssMLRau6wyF71xvxTTcAxjkGPQj xmzjnEFizm08Voqpa239kzeZ26+USTU12xkkr9/m8kE9X/h5LCvR50xqSyxh/0At2KaZ lhdtudcC9kCcViKMOyeITgEWWdXKcYL2NCIr9V2wcXA3lmVrge1otQXTfBc/Wworks8M IXiwhnTe2ZHDbzq+M9WOukxDbRBRoYqvSZV8Kt2KrPkawfpG6f8VtfvB2sWmWbkARKyI tRUqqgJW3gtAMig4uKowM9CaBMVrdeZitnTWT38kdjKBaXVymC5X6+NczXJaNUG9l1s+ elIg== 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=gXlz2GDwGEf828vKAQ4gOXkpfBOIBEYsl1gssZpmRJQ=; b=v4AibA+KiGR5rwdEqrn74uSeZdWUKx6BemJiUDD/cWaDF5SdtsFyXSUZnMvc4Rqrn1 xU3Bxc/xNyfhetPvgrxK1GGClFboHFvI0J8e3kp0u7MkrJDM5Phy1ZZq+p2B9isuNI1W p43/2jka8+tEgowcxam9vqvBgtg6zdxJllK4FeAHhO+rYInhLAkJ3ZAiA/zgioQrwXPI taYyxYHI9IsNR3uktc0GwM2u+eqQ9aXpKpYd9akdKZqLbvfuP/PIDw80ofgQToLi3RxW SBzg2PDOteGxCCutuVsBpMWfqPeCtvnnts5Mo6gumgj1mMgoSOrMSjSl4E39lzo3d8tO c/Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jhevsx6F; 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 q5-20020a17090311c500b001a0aecb8b3dsi19249670plh.588.2023.03.23.02.34.56; Thu, 23 Mar 2023 02:35:09 -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=jhevsx6F; 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 S231181AbjCWJW3 (ORCPT + 99 others); Thu, 23 Mar 2023 05:22:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjCWJWZ (ORCPT ); Thu, 23 Mar 2023 05:22:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 315493C3B; Thu, 23 Mar 2023 02:22:23 -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 7A397B8201C; Thu, 23 Mar 2023 09:22:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 259A5C433A8; Thu, 23 Mar 2023 09:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563341; bh=dcp30wp/Hf38sazwKthrJJR/hJsAXPYg2a1DhIjhRsY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jhevsx6FrKz/DSKyWa48ul+Br2Qq/2CdJ5Nno3oUdRcLCIk7t1cB69NdAiT1tyn5H Lhz9wXdd5uW6MFyeM+B3h0u5ydPTvK6l7CwpgHyUk3OAlG9W2UODv0/MJDEe3oHJOX /m2zMnBtkTaffkchF+6L07TdZQwBCPludGH8NHdSFGMYkW0A/qG31dPbgSSEevOGTB mnSJ77OEHBhaBpfgDQgrtyP3mOg3IRf23662ZNu2bRdqFbjyKhfTPTIRFNBR2BggXZ Y0Ifi3DaCS8c1NsQKYmG++xjhZAcZPCDklL+uk+NpDJszMuDUHYYaoRUcujltm1mXh pEp5mnhql9Qpg== 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 01/14] arm: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Thu, 23 Mar 2023 11:21:43 +0200 Message-Id: <20230323092156.2545741-2-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?1761150615721505329?= X-GMAIL-MSGID: =?utf-8?q?1761150615721505329?= 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/arm/Kconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 929e646e84b9..0b15384c62e6 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1354,17 +1354,19 @@ config ARM_MODULE_PLTS configurations. If unsure, say y. config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" + int "Order of maximal physically contiguous allocations" default "11" if SOC_AM33XX default "8" if SA1111 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. + + Don't change if unsure. config ALIGNMENT_TRAP def_bool CPU_CP15_MMU From patchwork Thu Mar 23 09:21:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 73941 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2809505wrt; Thu, 23 Mar 2023 02:36:00 -0700 (PDT) X-Google-Smtp-Source: AK7set8ct/uU3qdNFCEtC1QAADiz3SczTErRiO7LBahBU4DO7RlWp0hEYkUZ4Z2ggqIwMjThhmFb X-Received: by 2002:a62:1991:0:b0:624:7c9a:c832 with SMTP id 139-20020a621991000000b006247c9ac832mr5337694pfz.8.1679564159989; Thu, 23 Mar 2023 02:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679564159; cv=none; d=google.com; s=arc-20160816; b=pFvTUqRFKiXAWhpvx9E2Zs2fCadf5TcAIqN4OdD7EhtR4U4xnDwpunXGlToDVfi81J Wf29PkEuQUiyj7QyyjUI/BAjjNQictEKlygh6mtF5c+p0EU1FM4/JPz8qBQ/tzOXlS/Z uQYAsyRHxbJ464fIMnSs4epC9HoYZPrViz76M6r/LwXsoSFVMhzdCPKhsny+Mh1wuJuX TF0BJMBh1ni8gvK+ypQUbDCW2QIxggoInJjm0ZWR6oAJEfxJC1IAjYd3+BfgCUS3JPkR Hgz9R7QjErQDXrn4dFRT3FRXIpg7AQAT0ElHEWEQjNVJWbkPuhN7ZksdsIWonVWmDzg6 Ec8w== 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=6Ech0t/2ME/zzdRLjhS1xRbvQgY150vgCsTFSScQM/E=; b=L22F/dIxyijwMRv/2k+AnLQlT+KUr02H4g9A4UeBO2yiSUthewcIwkpvHU6iECvBA7 1UxNrUcb2iRbktfwtI1erfwVriS4mTcj9TQR/5NlOj5z4PlujVsuattTV8A31Ie81Xta 04vJCVCn6sWUFP3YhzlA1uGuIwoMerZxxAZooREmjI76KDe/vjMU9XCZOJ+fIoeYY/du XIdNkGewQ4yfUtFeEdtQ36LtIIad0EJtJ6cCoLzWMrrQ60nquBmDsy0rTaS2Baj6USI0 BFmdI1ug47o77cVemGMtm3f3whWwCn/ipRMU2LdIo6MV40KorFvB0tmd8LBmrJwzrH+s UAUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OZZcT6du; 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 g2-20020a635202000000b004fbc18d0938si18082571pgb.361.2023.03.23.02.35.47; Thu, 23 Mar 2023 02:35:59 -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=OZZcT6du; 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 S231617AbjCWJWp (ORCPT + 99 others); Thu, 23 Mar 2023 05:22:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231511AbjCWJWg (ORCPT ); Thu, 23 Mar 2023 05:22:36 -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 44AF71F4BE; Thu, 23 Mar 2023 02:22:31 -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 02287B8201C; Thu, 23 Mar 2023 09:22:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3258C433AA; Thu, 23 Mar 2023 09:22:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563348; bh=1wuMjPglrXxylZYRQp9g6PBGTaQCsIyJmL4MjyDfkT8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OZZcT6du5dwua6qJE5uCEiu3Bbh3Q97TquC+/sYNXkmdypc+bsLGDW93XoYEnZ4mH MSoFTjH6bKTl3fsgQ4Bc3SK5VaWp9pBpu5SvZo1sRyf7bml4ql3CzkUro6OsghW0vc Oy90Vtp+PuM+H/Fs7+pOeFq6VXb7ExvoCICIAZhSBN3LP0NP130lo2YGBKKTONyDoH O4a++hJhMH5PNPPUpgd9/coAlzQjl3AYohwmcVJY6mAnGbnI5g5nhBGeR+cfm7Ukr1 7eEmM1z6tUZiEn08emyl+wuY10m5eYRrfMvZd2JFyNi2MsejH2NoIL8GFXLAlQ90D9 npeRgo88+OTgg== 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 02/14] arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER Date: Thu, 23 Mar 2023 11:21:44 +0200 Message-Id: <20230323092156.2545741-3-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?1761150668360873391?= X-GMAIL-MSGID: =?utf-8?q?1761150668360873391?= From: "Mike Rapoport (IBM)" It is not a good idea to change fundamental parameters of core memory management. Having predefined ranges suggests that the values within those ranges are sensible, but one has to *really* understand implications of changing MAX_ORDER before actually amending it and ranges don't help here. Drop ranges in definition of ARCH_FORCE_MAX_ORDER Signed-off-by: Mike Rapoport (IBM) --- arch/arm64/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index e60baf7859d1..bab6483e4317 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1489,9 +1489,7 @@ config XEN config ARCH_FORCE_MAX_ORDER int "Maximum zone order" if ARM64_4K_PAGES || ARM64_16K_PAGES default "13" if ARM64_64K_PAGES - range 11 13 if ARM64_16K_PAGES default "11" if ARM64_16K_PAGES - range 10 15 if ARM64_4K_PAGES default "10" help The kernel memory allocator divides physically contiguous memory 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: 73928 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2806836wrt; Thu, 23 Mar 2023 02:28:07 -0700 (PDT) X-Google-Smtp-Source: AK7set9cYxJZE2FgsWanArDu+4vnbBCi3uRG8Ddh/xOXuljN021CxorgGnlgJK4zuDcF22rC+dfz X-Received: by 2002:a05:6a00:1795:b0:594:1f1c:3d3b with SMTP id s21-20020a056a00179500b005941f1c3d3bmr6216060pfg.16.1679563687351; Thu, 23 Mar 2023 02:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679563687; cv=none; d=google.com; s=arc-20160816; b=f5eiVzdyDqC1AabRKHzBOBTgtZBh+CAul96VAU6/NKMrAOqYZxwubrtc0DKH7Udq1e kDKx3+ZMLJZqAUjvOH6Ue8AY8a1wdlxhYFJOzeSumI2XxoZ+l038x5uChNC4BWgkZOYK 4Dt1sYXgSM/86gde+bnF94IbqRAAFOnrfZe/zjzHcT/P4o3D8G79g80+vvCakkhLcEi/ Zx2Kv1Vc6cDkmMyDXqcbUKdF8oakXQREnLZVw0wedO6BVHdTW1rgyBIgTvINlEZmpvny 6hjUDx/vkI01ZP0gViwmBsBjN1VZYMti365CkHcnehC70uoIxU1hQUDHYVh1Eg3prcnl nEdQ== 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=v044m40V49k6TpfKf2XQ+ZmabTOaSM9C9RG3V8tT8mc=; b=LC1+AcuKv82Orm5XXEI25+WVnaJCi5FcuNYJpoMB5G231sYUyUNyS4kxavdlocuFQO dkGffXmVdcsq2H0qxwSdlwEW0gQosW34XCAo5OaS1SxHo8U9XpGoskHhkhcaWt+Ettn/ uFZ23uk0NKHL5AtfB3t6YLXQnCFkKprlvpHOiYMk3lrHWbjbJlOJzUOwdoX2LobgznVc JpWzg74JAxb4fGAoY7jfGuQCwCyCdyzGXV4hatZd+/8h3JdMcyU6l/MyNeUXbi0XkyxV YexJeGWa1C5qYMjhaTpUvQqQXP3fbSZ9Ze8FFOtco0Ns+3WWyrsytLWQTk0PwqCpl/mc O8Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hwVWgNUm; 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 r13-20020a63ec4d000000b0050be42c6f04si18140736pgj.539.2023.03.23.02.27.54; Thu, 23 Mar 2023 02:28:07 -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=hwVWgNUm; 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 S231574AbjCWJXJ (ORCPT + 99 others); Thu, 23 Mar 2023 05:23:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231405AbjCWJWl (ORCPT ); Thu, 23 Mar 2023 05:22:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66D8120A10; Thu, 23 Mar 2023 02:22:37 -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 E9F3F62566; Thu, 23 Mar 2023 09:22:36 +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-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?1761150172645150737?= X-GMAIL-MSGID: =?utf-8?q?1761150172645150737?= 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" - From patchwork Thu Mar 23 09:21:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 73938 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2809278wrt; Thu, 23 Mar 2023 02:35:12 -0700 (PDT) X-Google-Smtp-Source: AKy350asH+gP6w2lEXO9f/8LYwZAYEQBGFtGxur5bWovN+Gsq/VHVAqrzNXgo9CgtDo8HP2Gh51o X-Received: by 2002:a17:902:da8f:b0:19a:aa0e:2d67 with SMTP id j15-20020a170902da8f00b0019aaa0e2d67mr5089734plx.32.1679564112226; Thu, 23 Mar 2023 02:35:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679564112; cv=none; d=google.com; s=arc-20160816; b=bUBLEXBLI75SwNUdU2R8H+5RD5eaKniTP95lxKS0W+Wyw6cvPnnIxqe/heVZjM3rHo 81XTMyw7XNFPINPrigOIwK3JV2JiNYwhia0TVONpivT480oidilEWuP2G26U0olF7rw+ HUCL3XLk9g3QLKDDf1PAYsdzrZj6VSxUoHgvnL68IQuXOolX3Dle8FxwqeMWaDKSxKBg OG03lr9Mi6wjQcCQVYVlXoJZ52tvoD7ohC4IGykUspCEIqcEocK5a/g+PgPW+1xclIAe TrhRsNo5iPCbvV9J8OezqXIK0oOMRsANLQc63GP5tyzsHLE4FQU1ASjbZNmFuC7Lo42p MMLg== 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=kvjxNCexZpNqfRHk6CLOMD2vnnIlUq8fwhP4XX2xfxQ=; b=uCfq1AjpHnWXQzbM1uvPG1W+9dkY4akPt3NLRiZZXvlwR3UhuqL2Rw0v8AAOaZnyOc q8SQoWUkbbVScfJJgeLjr12UFFvEwwdd3GZnACUIu9OaKKCh7UntPkZBqsqPK3b0+LgF siZ1239XlhbAovIKic1NNXTC6HYYuBfRIeu+tgMyOrap8RMCPiU/gcr4fS4Zt7XPPHoc 5zcq0ptzyvZKhoFStgZqHoNnYEuVXVzToMhcKMhdJAxQbJ+Kb6+rNqrgK/0SCkBpWlux BeapZ7a81889CUXf8RWHIqmTob3qbNirRGD5p70i4JZfqOlChMZcgoFgTGgTX26dVeWs pWTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YfDyZKg6; 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 kn5-20020a170903078500b001a05d0bf297si16677319plb.451.2023.03.23.02.35.00; Thu, 23 Mar 2023 02:35:12 -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=YfDyZKg6; 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 S230459AbjCWJYA (ORCPT + 99 others); Thu, 23 Mar 2023 05:24:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231633AbjCWJW5 (ORCPT ); Thu, 23 Mar 2023 05:22:57 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B65BB20D22; Thu, 23 Mar 2023 02:22:46 -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 3A3A3B82021; Thu, 23 Mar 2023 09:22:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E437BC433B0; Thu, 23 Mar 2023 09:22:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563363; bh=VIGq21IucJ5jyDrKWO8wDSFXKn1G4gpham/RhLaDiSg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YfDyZKg6ubB3qVtTlpxKobEqRtwno61zPFlP3g3EIvlplSklLsZdZgd8QI++nKp4n qq2mJOxPwHzVhgTFzEAiFOfx+KPDLDwoJMzXey52ho+6XByzyjn3T3ZCKD4VZYT3kU cESe0WRXj+emYBHu833Ie/zYH4UBgDHJ3GJ5ePxM/uO1muD+DtVkdjQAf9ziZXzj+H 4+VX6vYZgHgBasWaay2Yvm3hUg76YEqRuvUFK4EUvPHEx5XhVCKEKGRBPfWgR5WtWO dU4L0e/mgCXn8RbvJfFELuUfLqP+eE794rhQOoRiuNs4FEE1ZnaNqR/QYUnj3nqRee MRKQtDiPgSwZg== 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 04/14] csky: drop ARCH_FORCE_MAX_ORDER Date: Thu, 23 Mar 2023 11:21:46 +0200 Message-Id: <20230323092156.2545741-5-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?1761150618673900938?= X-GMAIL-MSGID: =?utf-8?q?1761150618673900938?= From: "Mike Rapoport (IBM)" The default value of ARCH_FORCE_MAX_ORDER matches the generic default defined in the MM code, the architecture does not support huge pages, so there is no need to keep ARCH_FORCE_MAX_ORDER option available. Drop it. Signed-off-by: Mike Rapoport (IBM) --- arch/csky/Kconfig | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/csky/Kconfig b/arch/csky/Kconfig index c694fac43bed..00379a843c37 100644 --- a/arch/csky/Kconfig +++ b/arch/csky/Kconfig @@ -332,10 +332,6 @@ config HIGHMEM select KMAP_LOCAL default y -config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" - default "10" - config DRAM_BASE hex "DRAM start addr (the same with memory-section in dts)" default 0x0 From patchwork Thu Mar 23 09:21:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 73926 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2806635wrt; Thu, 23 Mar 2023 02:27:32 -0700 (PDT) X-Google-Smtp-Source: AKy350bd38hRFoEgktaztbx88McuTFtHb1brTpog1c6XElgAU1IRi81oC6vUGDKQoK1qP1ZJ5Mi8 X-Received: by 2002:a17:90b:1c84:b0:23b:4438:e9ee with SMTP id oo4-20020a17090b1c8400b0023b4438e9eemr5084399pjb.12.1679563652292; Thu, 23 Mar 2023 02:27:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679563652; cv=none; d=google.com; s=arc-20160816; b=vfdtqxHwCpz6zqq7giCMDfHP11KBU2hTKbn/UQs6/rSlMUrx9rGp3Ln22NLgcXtMxd 2gQb/hb2Za4uYQtNSOlqBPuIeWRpM1Sjh7AQgxxDl0zfyg8YuaarlvgyLf8tVMNOK2lC L9uO+646mwzZ4NB4UHd+OGpWxi6HaouKs9bdjrDGsqciuTpG/S0YJaOO4a04KLDpZSjx UOwg2IC+0/p3ZksyboLn6SRFMrDXLSeWwUJakLiYIeCb3GDu1aR6rqI/hc1oFzh0r0T2 fFC4SXhvSMS/Y8+0BYcRraksFKfZv3BRRNT2Op17Yb4QXphuIpfVlcVAshpxGELn4SX4 Ertw== 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=8sH59JOq+2C8eAXmnHKJIV10PXo476Fvg7+gmwbxyo0=; b=eLjTESdoqgVOKkatnKucnGNMs98onDrjODpGNoBK3bhYs9SVwuRiTc8/ZuBAZjaVXm DdHoFIu6e3kG4u3o18TmHLUQekjGXWIrjKBmg9j0N8+jR5PO8cETMDUAnw65GEQk3rFe cu3Mdx8URGZWQbXqjvDCmDuVhU9Vkxuqh2iwYKroBs14vT9jUSSEo1clXt2nn52m5L4F K72/ZEWYv7MDooDGN4WqFDUqPNqoIWlxn+va46O2bjGBakfua+SDgUxbqwEhFLVh+cDX igFe/NIKkPOV529K3R2E83zUWjYzlxQ+8jPjMtL64vpT5UpNCWlEAQqIUi6slk5KV4h/ HZzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vRT1J299; 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 q5-20020a17090311c500b001990dd91a9csi18919406plh.199.2023.03.23.02.27.19; Thu, 23 Mar 2023 02:27:32 -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=vRT1J299; 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 S231666AbjCWJYI (ORCPT + 99 others); Thu, 23 Mar 2023 05:24:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231664AbjCWJXB (ORCPT ); Thu, 23 Mar 2023 05:23:01 -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 63E7A21A01; Thu, 23 Mar 2023 02:22:54 -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 D7FC5B8201C; Thu, 23 Mar 2023 09:22:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F0E1C433AE; Thu, 23 Mar 2023 09:22:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563371; bh=Taw/mVGmMzfFA4/zjWlz+sOR+xqfdhkwF0DQ85nhoys=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vRT1J299K8QpI00sxZv59CyczO6p0SWP1wcHAQk8mghcdKjhLznndromKwnUtlkrM SRWyev3rVk+6CoxTsdqVockaQN2ib+Nl4FHOvmR+E/SjJe1acNEz6Z4GFuyF6GLjfd NuLmQu+LCOGDTIOxUdJKu3y2Kol4WBMAdYu5dp+Zj49J79N9Gzs8fUFCVhMdAWtkR8 Ee5XTvH/Aq3cY4DQROJ2COFMOABNcorPOEkkywcg034jyqoHf/3OREMiGZ7q6+/cP7 pO8gCgPnpv6P2h41m6iFg7ve1OatfexcxvMd110cY4RS/B3xhHDbjx1NZErU4piC14 QCF+7aV9m+NqQ== 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 05/14] ia64: don't allow users to override ARCH_FORCE_MAX_ORDER Date: Thu, 23 Mar 2023 11:21:47 +0200 Message-Id: <20230323092156.2545741-6-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?1761150136412049687?= X-GMAIL-MSGID: =?utf-8?q?1761150136412049687?= From: "Mike Rapoport (IBM)" It is enough to keep default values for base and huge pages without letting users to override ARCH_FORCE_MAX_ORDER. Drop the prompt to make the option unvisible in *config. Signed-off-by: Mike Rapoport (IBM) --- arch/ia64/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig index 0d2f41fa56ee..b61437cae162 100644 --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig @@ -202,8 +202,7 @@ config IA64_CYCLONE If you're unsure, answer N. config ARCH_FORCE_MAX_ORDER - int "MAX_ORDER (10 - 16)" if !HUGETLB_PAGE - range 10 16 if !HUGETLB_PAGE + int default "16" if HUGETLB_PAGE default "10" From patchwork Thu Mar 23 09:21:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 73945 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2810178wrt; Thu, 23 Mar 2023 02:37:58 -0700 (PDT) X-Google-Smtp-Source: AK7set+KbkW472BtMXoVYxqVA8+LKS6PvNW/WhLlj1NBoRPhz2ygi0nrIj6EtNbexYimdRKQS6yr X-Received: by 2002:a17:902:d4c3:b0:1a1:dbaf:ae31 with SMTP id o3-20020a170902d4c300b001a1dbafae31mr7839176plg.1.1679564278020; Thu, 23 Mar 2023 02:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679564278; cv=none; d=google.com; s=arc-20160816; b=veJvgHJMQKl/IfCh5UZroco2Js0WNQ98pMluSpjQhfyJgJTR7saXF+ycUNTZ83Tx23 7utbg1XJr9k8F5cVxJNaK6yd4iLSXaSqC5aMoUM4fexgXXOx8JZo7j9Te03FMZ5HujmZ ZhqVGIteK1LuzE9So1C6WI/sSg1DLfwVlkmQBRiU8xqEZl2LTMV2OACzEh4PJQVEfXPc 2zsWmrQ0VJYJnYmmd5VP/pceg25ehNupu9mjy/JunazuA96QTkh1lmwkKIRP/9HW/haC kOvbLTiNwIgxIeKa32zw3ffLUHURDp4TXNm7oNOnB0DdKCswNEpAYu4WPh/utCnouGwN sLHg== 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=0bPxPWN1s3BYSZSIZ1kjGwpz5HNXms48awRz1FjuoZs=; b=diBEnWofCx78SPuA+ZCnAbHxX2+H4nebNDmieMhgkw2rz8zaAkJRVdV2bywYLKXCdL JtXFYRzZI2GnbABjnZxgN+eKm4lKkOTQfAkWlmzUPPjcM9em6ZpqPqwU5EfOcSmI+FEL tJa8x6bp+VPFWGypGlcfI5HcGZMjchZEXQT+1lOCRHIdssQ6/Ua5z+mB/DEGhjvBObHS wmbTy3FU1CSC1ftVcRJrT0F9KYi75S/CDlhT4HPID2K5Td74hOy9eONB5rHJryTahjW2 yGRH89/s7UgZ0sHKhiPxBWCPfnvExgFD/afPgX2y/yk2hVPTKHHpYhdZk7RVINrQZ3VP +Eqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GE5krmZ0; 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 s4-20020a170902b18400b0019ab4f7b389si17759752plr.387.2023.03.23.02.37.45; Thu, 23 Mar 2023 02:37:57 -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=GE5krmZ0; 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 S231665AbjCWJYN (ORCPT + 99 others); Thu, 23 Mar 2023 05:24:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231564AbjCWJXE (ORCPT ); Thu, 23 Mar 2023 05:23:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E9567A80; Thu, 23 Mar 2023 02:23:00 -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 CDC5C6256D; Thu, 23 Mar 2023 09:22:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26655C4339E; Thu, 23 Mar 2023 09:22:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563379; bh=qM1kqSfFKpsE4xKrdSQW7DvR4rxMPF3in5qEieKPeA8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GE5krmZ0gXB70ofGbcBeOPtXQDLzzCQ6IeYGZ14v4R8jeHsrKel/M382hm7G8CAyY WSwNliNppBUKyln1dzxYxIiPKolESMW5XFmY5rNfSGZQQAt/ZPlFgjRt4zvvPNMsP1 btLklwizse4VYyFA8wBmdsJI/2Afc3xukaqL3fOqKJ4dUoiBP3w6a2I+4ipO2eYE6a If3yoskjdPy/OtjijJmM4uHLXAA675hSKZsojEik+P1JYu5Qdg0vJ0C2kUNi6SOZRO 1wa49ymgOshm7pgeknQKGF2zZjq0eXa0FzDHC5jxAfI6l1tXu9ebX6MaBUej00yf7+ 86ZKAZJa2UAfA== 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 06/14] m68k: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Thu, 23 Mar 2023 11:21:48 +0200 Message-Id: <20230323092156.2545741-7-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?1761150792540568521?= X-GMAIL-MSGID: =?utf-8?q?1761150792540568521?= 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: Geert Uytterhoeven --- arch/m68k/Kconfig.cpu | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/m68k/Kconfig.cpu b/arch/m68k/Kconfig.cpu index c9df6572133f..e530bc8f240f 100644 --- a/arch/m68k/Kconfig.cpu +++ b/arch/m68k/Kconfig.cpu @@ -398,21 +398,23 @@ config SINGLE_MEMORY_CHUNK Say N if not sure. config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" if ADVANCED + int "Order of maximal physically contiguous allocations" if ADVANCED depends on !SINGLE_MEMORY_CHUNK 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. For systems that have holes in their physical address space this value also defines the minimal size of the hole that allows freeing unused memory map. + Don't change if unsure. + config 060_WRITETHROUGH bool "Use write-through caching for 68060 supervisor accesses" depends on ADVANCED && M68060 From patchwork Thu Mar 23 09:21:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 73940 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2809491wrt; Thu, 23 Mar 2023 02:35:58 -0700 (PDT) X-Google-Smtp-Source: AKy350ZJQdK/R4DwXfJr2vkyN3yWmtqnOauYMktWhCw+Ag72X0iGEI+tt7ZjE9ZeTys7gQF2pfMK X-Received: by 2002:a17:903:650:b0:1a2:296:9355 with SMTP id kh16-20020a170903065000b001a202969355mr1619127plb.16.1679564157820; Thu, 23 Mar 2023 02:35:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679564157; cv=none; d=google.com; s=arc-20160816; b=ZmHUdKZ/v9gvu8wXWzVABU/btsx8Ro9ZVbdnFuSLyhkCUrVDU/v6AcMrR5gi2aEmn9 CyHmudkvUK2bdHcon6vJOxb1WQFNyScIgEGO4Zue+RdlaZyMBBf1Sw/ArQuFytnHBjWd gBjHYFLMBX/hiCI7HYgDcY0acENmJu8zV4JYA9WOG3lNklJTcBiQpXKlYepWAkhodgdB ps8jK7Zn90sj9Fsy9497B7YaNLx4bHQa+/GjVHIB/Mz4A7ksLXrjue10Eh7XX8FTKd57 EXFFc92Ql4H8+EI7+KP+PIR7a3U1RtAIogEFClA4DfQpuU9W4cGs0hU7I6KnhAIuwrEc 32Qw== 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=Fmj5x4MItVVgDJUK3YcgVA2gB6TriTrlCDGVVfJz3ys=; b=Dbc/qCDkLnJH0H1GNO8AXsSSjxbsjXGwRIo9VUjKbBvUj1ybYjZjL+7d+H6+LdsKTz lqvqRUwJ2KW3v1FjpEF7RteheYlVTwgGcXJ8KE45rS7eS19/XaikbVWH+4inW21YmhS3 7llw2NFcYI6AGc73bToDt5E8boI65oQ/0S5+HR4r52/yuJRzn4nVh3DVu/izXjdwMdRU Fn6PuP1z8NaNHosK7rmGQjGBKjJb1p+Vmhqd47JB6JOdNuwxBpvAIoJYAfsFPfY7EJYY h2zo5xpgP2JpfXix0ZzRn+jRnk7NYdd/O83gA0y/PBGPDgWacAj7EPh0lhXNlxif6Sor S7ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OzqUXRJv; 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 w4-20020a656944000000b0051309268f00si1788114pgq.449.2023.03.23.02.35.45; Thu, 23 Mar 2023 02:35:57 -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=OzqUXRJv; 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 S231499AbjCWJYo (ORCPT + 99 others); Thu, 23 Mar 2023 05:24:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231649AbjCWJXc (ORCPT ); Thu, 23 Mar 2023 05:23:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30B45EFBB; Thu, 23 Mar 2023 02:23:07 -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 6572A62566; Thu, 23 Mar 2023 09:23:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4F5DC433A0; Thu, 23 Mar 2023 09:22:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563386; bh=2cBYSF+JamtgsUh/BOUyBseGRxUzFBktadFA1PpPvNk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OzqUXRJvV5cHhhxpEQ76d0VmU9uuByNR8pcfw0l9ZT0pUxGdp9gz7IOdJ66R8dqXw 5FnZFyrNaxWOzoSbHrQ6/ZDGPnxAxYDl2BnY+xWiqOGURfr9e2VkCnrr8L9Gbjfwpc HOlDenrpg4JUs2TFkXkOV7O5LYl6nEsPELlOlAv9iHXU4q5POu//gt+gKg5uP+Ny9L o5o1k5mpI2e+4t1Js33KwBaCT3bLrYzUiQxXWh1vfyrNCqFtV/ZQu1hQ/eSNGKtd31 PavpmOfvieMQUnvC+CwhHR9pKI4cbxwUVVA+Umw8wBJoMrORkoopTP9wnn/sWxuy4K eN/4aW2yBGF9Q== 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 07/14] nios2: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Thu, 23 Mar 2023 11:21:49 +0200 Message-Id: <20230323092156.2545741-8-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?1761150666237544616?= X-GMAIL-MSGID: =?utf-8?q?1761150666237544616?= 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/nios2/Kconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig index 89708b95978c..fcaa6bbda3fc 100644 --- a/arch/nios2/Kconfig +++ b/arch/nios2/Kconfig @@ -45,16 +45,18 @@ menu "Kernel features" source "kernel/Kconfig.hz" config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" + int "Order of maximal physically contiguous allocations" range 8 19 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. + + Don't change if unsure. endmenu From patchwork Thu Mar 23 09:21:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 73929 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2806876wrt; Thu, 23 Mar 2023 02:28:16 -0700 (PDT) X-Google-Smtp-Source: AK7set+iemEIxKwZ8QSbC6nkzBNt0j+AcS9AuPPGWwGXG6CIA3m8LC1RetAWKeSK9OvNPcD/awLv X-Received: by 2002:aa7:d419:0:b0:4fc:3cd1:37c8 with SMTP id z25-20020aa7d419000000b004fc3cd137c8mr10064476edq.22.1679563696004; Thu, 23 Mar 2023 02:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679563695; cv=none; d=google.com; s=arc-20160816; b=OjWWVnR84vVgnGF9OpJYeZKcFr4pLRuwmQuaMF8PtmIEYQPJeG4nQiNOJFlHJw9gk7 NR8vHXLyAMTIhnJnIbMevzukmgzUsCzIboTg67SegOVry+0s7B3uJ/S0BYyJZnLze50h bs8XR014OcdrkJDkaySIXWh7Bniqg6iLvgy8BZnhdRYWl1Sum3nrYwGLF0yK2XxCpj8I CqlAb3IpKTUqKVLHMU051yjSNcmAwy6htD81vd1XLmbONnHZ4T+uo1gcpe/nIQngDxgb KFAkjZNyBEitpsCkWP8i0agXGf8M+m1myU/Ct1KGF75yFhhJ0Gmuy0uWgON/z33LRh8w s9lQ== 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=yesdwf3fCPCC0+ct04YG2vDudXDg9QKxHgqsjfhcoic=; b=0jI4TtJ4KgnYUUQhHfe+tHLyjnE9QjCiIVaLxVL/6fVZiv25VoGeGYOMLgizxf4ylD cu5txa66JYHiJETfFtI40sSXA8/5/dhoSuriNQG7xZ8/u3WGTA5/kcRuYcR9vEsbOcwQ 1P8tZ5mr+zGhAcPX/qRK5k50FoeTnMq68fkR9hTyxfNkBv03bqD468ELrDK7NVjzlI0x lYNYgIlQvCRRuW+OrmFoLt9p8iNCPPXeDYaXvbgIrLOos6yPjqw6C5AoCL53NG6G4FOZ bdX4raC3nRJbd2h3Jzbdqbr0HbI4iXN/v6zLk61/v4oS0ggp7Iuq2kxYro9uxdc1jxJ4 Ow1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=opvYt+M6; 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 i23-20020a056402055700b004fd03dd5f0dsi14945204edx.563.2023.03.23.02.27.52; Thu, 23 Mar 2023 02:28:15 -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=opvYt+M6; 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 S230086AbjCWJZQ (ORCPT + 99 others); Thu, 23 Mar 2023 05:25:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230074AbjCWJYa (ORCPT ); Thu, 23 Mar 2023 05:24:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23FDA3C3B; Thu, 23 Mar 2023 02:23:17 -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 BB204B82025; Thu, 23 Mar 2023 09:23:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6048AC4339E; Thu, 23 Mar 2023 09:23:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563394; bh=jzZSH15gj6TUOIsTCrO5L+I5me/Mb74Nnyc5QzApf2o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=opvYt+M6nVWy83Z/VnNrEAxA7GcoGHzEz8QYyBOSThR1uJN44T0NbsszAVqRkmb9A SFPedINEgAbnyJ/AKydoamZjo3WlyOV/lqEJmXHsxX31FbqFPcrUSqmaQWw7/Lavv0 pPumm6jkzkBxu2g5cEsCaVlcJS4bENKkkFc8Cz2Wz6eQKaxqTYIhIRxBQoMF2g89v5 DZ2t+8xW5kCcFwoLehAHXimJZXVI3kEvMEYcvGsn+KOl1TSwgvlKsnJ9ypkWw+7GOc VfD+ftLkOkIQYp64EjA4dBOMp2fQX797VTwRK697fAL4dXiohtz60VzvDWHmWbnAxZ 3F3FrUCphxRGg== 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 08/14] nios2: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Thu, 23 Mar 2023 11:21:50 +0200 Message-Id: <20230323092156.2545741-9-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?1761150181876048069?= X-GMAIL-MSGID: =?utf-8?q?1761150181876048069?= From: "Mike Rapoport (IBM)" nios2 defines range for ARCH_FORCE_MAX_ORDER allowing MAX_ORDER up to 19, which implies maximal contiguous allocation size of 2^19 pages or 2GiB. Drop bogus definition of ranges for ARCH_FORCE_MAX_ORDER and leave it a simple integer with sensible default. Users that *really* need to change the value of ARCH_FORCE_MAX_ORDER will be able to do so but they won't be mislead by the bogus ranges. Signed-off-by: Mike Rapoport (IBM) --- arch/nios2/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig index fcaa6bbda3fc..e5936417d3cd 100644 --- a/arch/nios2/Kconfig +++ b/arch/nios2/Kconfig @@ -46,7 +46,6 @@ source "kernel/Kconfig.hz" config ARCH_FORCE_MAX_ORDER int "Order of maximal physically contiguous allocations" - range 8 19 default "10" help The kernel page allocator limits the size of maximal physically 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 From patchwork Thu Mar 23 09:21:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 73930 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2806946wrt; Thu, 23 Mar 2023 02:28:26 -0700 (PDT) X-Google-Smtp-Source: AK7set/pcQTXx++p8V6UaPoxfpQp68YOrlkNnuzuM6x1R/A2Ctx8t98Rkc1uJNyL6Hpwo/V5Q61D X-Received: by 2002:aa7:9e9c:0:b0:625:dcc1:620b with SMTP id p28-20020aa79e9c000000b00625dcc1620bmr5722660pfq.34.1679563706349; Thu, 23 Mar 2023 02:28:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679563706; cv=none; d=google.com; s=arc-20160816; b=wPFrreFiaqlsQiEc0aYEfWl4e0Pcxgty6o+rJnzIFFKuWtUldPm4ytXMPoWBCc/5f/ ODS9uWBX8ImtexHW/YoaaUf0bq+YorxA3SXLWeoyi2ojczoWqZNAITqCyR1+/g/eCv1w 6S2WS0bRVoORq9wu6UGEj9MlXNQA+D9TmSI15pAkqsm/6QefIOoO20AbzTwLRj46X1Ez E1nLxjP3nvot43q2Yl07o2iQeIXZankCmAeUDq8EuYXgdxJNIrKhSOU3b4rvjg3Hpf/8 ja201AgWUAM3svvRo92oyIBhryutppJFEwsltpS1040mD88pB9BgU+VUhPpWwMlhOQiq y+lg== 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=WwcuQYubO1HhOiaBjYeuCdzgI2VErYAdoRgsy6FJpYs=; b=x3OGu+0I3VzJVkqcv5jwEfRtUYubTiXBPMa/7Ag0lzHh+WXMYE70WTrmoo968AowKf EiB9VmqyRydrJVeS/9V/LlunS6o6+GJETenziTri5YJvAdFTIzllsgb7LwtOqg4PhpB2 Eznvyt2NiPNQiNSPpKnqC2WJSjPTzIiJaAwnDc7UwuoFP49Et6BUKNLahbbk10PqWUuc XvrsBeB+jcnL2gMicz0xnAkVjYOtouL49WBIx4i1yrmUPUCTtBeuc270XsaU0ahUpIb7 02TjWGv5BWRnCgrNN3TOGGjiTL2MW7MqO1JKqXmvMtP6j6edELaUD/D9+itsl3sWlEVs 7gsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vf+DqdFM; 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 g64-20020a636b43000000b0050f781303cfsi10992010pgc.310.2023.03.23.02.28.13; Thu, 23 Mar 2023 02:28:26 -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=Vf+DqdFM; 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 S230059AbjCWJZu (ORCPT + 99 others); Thu, 23 Mar 2023 05:25:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjCWJZB (ORCPT ); Thu, 23 Mar 2023 05:25:01 -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 417F42004A; Thu, 23 Mar 2023 02:23:32 -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 E652BB8202F; Thu, 23 Mar 2023 09:23:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 922B2C4339E; Thu, 23 Mar 2023 09:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563409; bh=mp6A6C8OOeS6nY+QDsN8wj88cRjFdHtJCyFT1kANL6s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vf+DqdFMjEwSbPC+mJj235EVrBbgYDeFMYHxHYwKEoJX6x2hG7Nd6wUFlTriUV+ju Ki+QZQPrDtM2ZM/upW1C91O6NowwP2geqJok0JmWq2H72w6qScQsAHBP450KPi50O8 GnVm52Ym3n9y0567PryZU/4PnsUtdUTXIfj7RKzU4XtAIIDfvODMlcqYrijMGf+xdU xlmiAvGgCuUdAQV6JuFcTkmxtOYvFB1YsVPqzbZtVOz+BNwl7EUfScn+rtw/Gn/cvW hcHl/dApeHp57bvQnfEJzFI6X2ZwwbySWtQPm/oSj5a+4/6CqZV3+pdT8sT7oM/zlU LyHhQhr8mNFeQ== 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 10/14] powerpc: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Thu, 23 Mar 2023 11:21:52 +0200 Message-Id: <20230323092156.2545741-11-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?1761150192840393812?= X-GMAIL-MSGID: =?utf-8?q?1761150192840393812?= From: "Mike Rapoport (IBM)" PowerPC defines ranges for ARCH_FORCE_MAX_ORDER some of which are insanely allowing MAX_ORDER up to 63, which implies maximal contiguous allocation size of 2^63 pages. Drop bogus definitions of ranges for ARCH_FORCE_MAX_ORDER and leave it a simple integer with sensible defaults. Users that *really* need to change the value of ARCH_FORCE_MAX_ORDER will be able to do so but they won't be mislead by the bogus ranges. Signed-off-by: Mike Rapoport (IBM) --- arch/powerpc/Kconfig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index c0095bf795ca..419be4a71004 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -897,17 +897,11 @@ config DATA_SHIFT config ARCH_FORCE_MAX_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 default "12" if PPC64 && !PPC_64K_PAGES - range 8 63 if PPC32 && PPC_16K_PAGES default "8" if PPC32 && PPC_16K_PAGES - range 6 63 if PPC32 && PPC_64K_PAGES default "6" if PPC32 && PPC_64K_PAGES - range 4 63 if PPC32 && PPC_256K_PAGES default "4" if PPC32 && PPC_256K_PAGES - range 10 63 default "10" help The kernel page allocator limits the size of maximal physically 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" From patchwork Thu Mar 23 09:21:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 73942 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2809572wrt; Thu, 23 Mar 2023 02:36:09 -0700 (PDT) Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fSSowVKk X-Google-Smtp-Source: AK7set8mYPH7wm5VJfevLFoyc1iH8BPNkcTotkaStDBLDlMLOJ/zgytpa2opzN387rSzwkkEWH/O X-Received: by 2002:a17:90a:1c2:b0:23f:7c8c:4f2d with SMTP id 2-20020a17090a01c200b0023f7c8c4f2dmr6732400pjd.16.1679564168818; Thu, 23 Mar 2023 02:36:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679564168; cv=none; d=google.com; s=arc-20160816; b=JpvJaOtx6Ibv/X1LnulZBPYbOtKiaDrnC/tIf++E7tpdEuMO7Ydc2/Gj0/xSsyhkjm 9EaZj6kqT1b8aPjdY/gQ3rL3nywi52eaP5lwG91GKF7TQXWs1TzVm3OUZmVJzxGLRgt8 la2rGG8joS5JUiBTDWjVlqWvAVJWnsZPi9fak9BCbdyewa1fT2EaTTG8rsjtPlafK2OE I6FwJ0mKsb+EqH/cpVNz5VDM/M9I6fXVgi4qeyI7gjKb6DtZgviPEQV9CxSSLWWvdo+Y ztomsNPFvGF6w7+w9XW2KE9zM4fk4UsUBgdliNo5dOLFjs2JW1xDfyLW74tYAuXuujYg aFQQ== 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=h+YlYSthhOBb0s3FtBNRszFjjOIbwOB7F0p1CBuDGvk=; b=Wnl5gr0txSLRUS8pgcdpyzbFhl0GqyDbtbEX28DpFLuExQPO7r3sh7xx2/iRI86npj rxKM4FlobJWiBXAq2H1HSd4/vDVjL8OCHnajsl7nOdJY8g7NE7104h642dKlvRP+aJNg HstPXSULTRYEplNjcObekBJVRZXrX8DJHMVqErXmu29e4+6G0SAtJVPAkDEYrF3/Eqtb TstV281tjL87nwxO4TnQZ0AcWTHnuoQesLc74noxt4NVTUHUN9W5UY3AIZ5n7RdF7R65 pxcoMufh7V2gb68Zpmx/zjqsJzcDj2g+iMQjbqFWiUGzSVZgjEfRlqg1vJaPQQDzWxxu MamA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fSSowVKk; 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 r23-20020a17090b051700b0023f58e27405si1390489pjz.32.2023.03.23.02.35.56; Thu, 23 Mar 2023 02:36:08 -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=fSSowVKk; 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 S230291AbjCWJ0k (ORCPT + 99 others); Thu, 23 Mar 2023 05:26:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231654AbjCWJZs (ORCPT ); Thu, 23 Mar 2023 05:25:48 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87340227A0; Thu, 23 Mar 2023 02:23:47 -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 29E24B8202F; Thu, 23 Mar 2023 09:23:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD746C4339C; Thu, 23 Mar 2023 09:23:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563424; bh=99+9gRXuNZGZrnvJd+Y1nZy5usyv3NMBBGlXNWMVJhs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fSSowVKku6I+4khALqKcaWeFjf1TxQwq6N17YCC7lSQQq1PMKZNZXR6Amg8KHBCln 8D1+czeovKFYgk9ba7AwrEOWdx4T4TvSidUG4w0oEnP7Ux2idkiveTG5RuhNH001uj ZH2wbqVR6pwA72IlRr0A0Vm+Px75ZhuzsapmFJ4MJUx20c6j0uj+d4nkaYltR2HdGP LBmRDMYlYeROh4iX+5zaZEFyfMPZyDOym4GBzHOPHNe4Rg7MF0KLgYOBU/kY0U7tEp 2qhz4vjT8nOntJZetWtWrbF6J0wrO+fnxdSyIdjlEGw6E/HBeJt9B+RUXXoHM7dYWp 7S274GLZIA5Jg== 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 12/14] sh: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Thu, 23 Mar 2023 11:21:54 +0200 Message-Id: <20230323092156.2545741-13-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?1761150677808800062?= X-GMAIL-MSGID: =?utf-8?q?1761150677808800062?= From: "Mike Rapoport (IBM)" sh defines insane ranges for ARCH_FORCE_MAX_ORDER allowing MAX_ORDER up to 63, which implies maximal contiguous allocation size of 2^63 pages. Drop bogus definitions of ranges for ARCH_FORCE_MAX_ORDER and leave it a simple integer with sensible defaults. Users that *really* need to change the value of ARCH_FORCE_MAX_ORDER will be able to do so but they won't be mislead by the bogus ranges. Signed-off-by: Mike Rapoport (IBM) --- arch/sh/mm/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index fb15ba1052ba..511c17aede4a 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig @@ -21,9 +21,7 @@ config PAGE_OFFSET config ARCH_FORCE_MAX_ORDER 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 - range 10 63 default "13" if !MMU default "10" help From patchwork Thu Mar 23 09:21:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 73944 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2809924wrt; Thu, 23 Mar 2023 02:37:15 -0700 (PDT) Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bXT7tVFQ X-Google-Smtp-Source: AK7set+uufz7etrARyXz0N4bFwwBbiqSyI8p4byWdOdWc7NBa6ibfJHrleAkUeYosCn2EfrlWkbD X-Received: by 2002:a17:90b:3ec8:b0:23f:7d05:8762 with SMTP id rm8-20020a17090b3ec800b0023f7d058762mr7130416pjb.23.1679564234865; Thu, 23 Mar 2023 02:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679564234; cv=none; d=google.com; s=arc-20160816; b=OAcx8C8TlSB7nqz3tfElrynkzEbxhWqHFNq48ocVn5pDrKSfuMqWMCMHIHpEi1bMbY 3YtkrMmZtP5S8Zlo+1BIG/ZXAbW6KgZu/HlcSlpwcUmWjSyiXv+TCouh1MZ/F2b+Scsv OMVRvB7uHf34vO5WOqaT33BvKmdcopjEk5ZdVkBbzGU6L5cOPM82WeGw2ivf4wPhzECk koeHBWQi1/aGoZjAv5DY9yN71uuu/TkSxYjdLv36RRbpGXz08SSFS/vKYzd2uTKC5kYj BcrBr6MGaNSant3HcpXWqRI8ffenuxlmQCz7/NEvoyBn18BD+ggX0lZSZl8GHVyQRuSy EHiw== 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=7vJvYqihbaZZxSzTlBL3/w/w4YY5wGGwCSp8sD393ng=; b=XvB9VrOjR+X2eU2oA52Z/+eTh0wymw+NlIlzSM5iP7wZoTDItlc96xKyj8KlYep2zE 7uzUwA6Xo+WnObv9liEpQBXWMGL237I57S8Qw+SIJkQJaZLAxoKbVOJWQYTxunJ6XGAf 0hlsHkDuBexS0HWvIN5tcQJA0as9pQ6+EJ1w13jnOosgdYTHtEjiV3BdARbRR2xF4BKz oksEE4uQmnqds3wKciBU3hwaZ9VAZsHPxw/7thSUgyqeG5r4mWV6HIcKi4PMsBheRTPR U1jY4C8K6U5zS/s95D1BSMcSpJ/JeD04HJVMeiXkDvpoMAmbVyZMN1fF8uxHCIevPUQN NjIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bXT7tVFQ; 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 lp13-20020a17090b4a8d00b0023d2847e355si1669119pjb.0.2023.03.23.02.37.02; Thu, 23 Mar 2023 02:37:14 -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=bXT7tVFQ; 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 S231483AbjCWJ1D (ORCPT + 99 others); Thu, 23 Mar 2023 05:27:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230310AbjCWJ02 (ORCPT ); Thu, 23 Mar 2023 05:26:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A24541E1DF; Thu, 23 Mar 2023 02:23:53 -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 E71C362566; Thu, 23 Mar 2023 09:23:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57854C433A0; Thu, 23 Mar 2023 09:23:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563432; bh=h6B+59Tw/wfggMAxASThb2CqM8SDBv67+wW2LDMN9Jw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bXT7tVFQRhfcw151cmushy4biLsPbWo6PzWcZLPclsdZZu0AHI/gHXPCin5Sg9iiA 2jk1L0YVy7Qe/xDRPG5nOHZxPuEwCxatggeE5zw2R5dQXNP451ThM1w/k3c6D25V2O N+fe/J9ocQzrTj5ZRLDbYNoj8L7Fg7BoJUvOHZovfKRiaVzD97DUE5sICsn6MFA/LY pi2Jmg0MAtEvLy9L7TPVXS9dEOiqkceSsUxLk5XOUJZY6EZeficShFvwWbnG3PVgeZ ReZTduniWcIdQc0MmOkZSG5un3YfSersJkiDN7rNBFhp80ssYVvFAzH/URVEBtzC7R bB6ljs+LiityQ== 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 13/14] sparc: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Thu, 23 Mar 2023 11:21:55 +0200 Message-Id: <20230323092156.2545741-14-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?1761150747025110496?= X-GMAIL-MSGID: =?utf-8?q?1761150747025110496?= 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/sparc/Kconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index e3242bf5a8df..959e43a1aaca 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -270,15 +270,17 @@ config ARCH_SPARSEMEM_DEFAULT def_bool y if SPARC64 config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" + int "Order of maximal physically contiguous allocations" default "12" 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. + + Don't change if unsure. if SPARC64 || COMPILE_TEST source "kernel/power/Kconfig" From patchwork Thu Mar 23 09:21:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 73932 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2807377wrt; Thu, 23 Mar 2023 02:29:45 -0700 (PDT) X-Google-Smtp-Source: AK7set9vfIxL8JpJ+XvEoiBhoI+QZsFgV6cMv5rlcs97Dtdk0WOalUb9HBXVOeuy5OVhHL2zjXag X-Received: by 2002:a17:902:d48b:b0:1a1:c746:7d6f with SMTP id c11-20020a170902d48b00b001a1c7467d6fmr6549335plg.53.1679563784772; Thu, 23 Mar 2023 02:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679563784; cv=none; d=google.com; s=arc-20160816; b=VijBkKIc9zdzdE9krJT1XRyqPn44o/sn3Koz2T03VS+vHnV7/Jg/mOuyPL/WPRkSFw DNaxd06FolND0RPC6EFk5RMbGRCGWz7YnTh8zV4oZOzc3woiWCgYRIeNgqlDqSRO7QBZ kIVmszV6y9oeh2HvZ1DdFHL5pdeJoT9YhAZct8o5C/AwW/Ugv3aC2vm2291n5AKzW7HY HOoLKLJ1vxaAa9BPR4ovNqS32h0Jx8EoytxZ8Yx50ZYeoVMGwxmtDfptYJsZNQf1z98d YyEwgi3eitiQ5fIJf5XThk2EASqE8PhywQe20PQNoZ4qfxboiAXFGZkwJn3qMMWDtrGq /Cug== 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=H32cuQ3SphckJ3aDr/4WYGo8VXam3pofa2cEPa/nrF8=; b=dyTSsACc7u7LY82VnHv9TB7uN9qNhipVPRqP4XxLS37oD8nTgFANMzd65Rs0bzljvY iPPzWX8VPwHZ+6eBPBXwLhVZS+CDw0uYqD+vT5zhdOl4Rx6BWj7LNcUyVzqlRUklqH2p JxtezeqBg3QqdVIz0OJN8yJDshUs7AVaVWKMvPTJLbLJGdjaLtpT3zCbTU9y2a4/KwUA 4gDd1ndHMaKJp/SYezWvZlCgPJE7Q0ulZxaVLKH5E1lWnGUUd9uFE6RnZuWpd5zsRsTZ 44Vm42/n77EmGKj+WA0ZM3+mHVLAJWIcEAGUNcJAZKVPG92YPFAmHaA91aFYftg0Qeqi 4EwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WIWeaGhk; 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 r13-20020a63ec4d000000b0050be42c6f04si18140736pgj.539.2023.03.23.02.29.31; Thu, 23 Mar 2023 02:29:44 -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=WIWeaGhk; 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 S231436AbjCWJ1S (ORCPT + 99 others); Thu, 23 Mar 2023 05:27:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231292AbjCWJ0e (ORCPT ); Thu, 23 Mar 2023 05:26:34 -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 46A8B23329; Thu, 23 Mar 2023 02:24:05 -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 47B10B82035; Thu, 23 Mar 2023 09:24:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4E88C433A8; Thu, 23 Mar 2023 09:23:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563440; bh=cLED8RkguNRC7M0dLtOL32lQLdxQxLek8h+Azi/Gy6Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WIWeaGhkdAVAFsei9Bza8wkj6njjW2uuNU19Ix52dZIy4kTovKxu2Yzdc1Dz5INgk 6Pg8B0dxqUnQqAGPRddvXBDr04oxwsZgfgMfgJcU2jrpRxwEnlQEkRrI1EaXpZ/Sd3 J1R1AHdgpJEjig/ZCiDv6lRb6moY7coIH3tSLS9pooMmPjppzT+nQQhT/DWOAlRgqO qm0cc8RB1yphHkpFQoCij3s1dldJDU1nXnNLUsJgMOQ4HfK7QoHZuhf2AiVIoE2wS5 yFRQUoFek2mX0QhpEnHG0I8VwxyFZGYOyQDQfZMNp/sVEaoPdJET5/f6iAfGlVUfv5 tjTM9P6gnulFg== 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 14/14] xtensa: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Thu, 23 Mar 2023 11:21:56 +0200 Message-Id: <20230323092156.2545741-15-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?1761150275585561322?= X-GMAIL-MSGID: =?utf-8?q?1761150275585561322?= 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) Reviewed-by: Max Filippov --- arch/xtensa/Kconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig index 3eee334ba873..3c6e5471f025 100644 --- a/arch/xtensa/Kconfig +++ b/arch/xtensa/Kconfig @@ -772,15 +772,17 @@ config HIGHMEM If unsure, say Y. config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" + int "Order of maximal physically contiguous allocations" 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. + + Don't change if unsure. endmenu