From patchwork Fri Mar 24 05:22:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 74350 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp390087vqo; Thu, 23 Mar 2023 22:32:47 -0700 (PDT) X-Google-Smtp-Source: AKy350aY8wGNZfPYpI+bFMdwYq6QaqWLqdnbV7ZI8l7JzLMEGT8oXGEljN6WKnNHe2hsUR70QQTq X-Received: by 2002:a17:903:2803:b0:19e:73df:b0e9 with SMTP id kp3-20020a170903280300b0019e73dfb0e9mr1394266plb.21.1679635967069; Thu, 23 Mar 2023 22:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679635967; cv=none; d=google.com; s=arc-20160816; b=nPsVqBjW5m76Sfw27rfPgKV0X193Z4azOg3RwboaRNtLPPCORrtNlrl7vkwEitjm1/ 0unCTa6xrylgilHv+72HYfpArwJrOW50IU4n3HBPzKR3qiArnjBrRhLpmntA8MEgQTEO VIJZBP1/JBewmn8Yzef+kLaMLkE7lrDkXQBd47SOQoinzQFg5PiXrDebD2gAe1PgS2UY R7d8pfX+NvVs5F79bPe5nMC9DXV0lknWuo54t4pbsCQrw6PnGC/QtdthsSQiLZW//t5O DbI65xKIEkqGKOT7xjfm9EzfdvShG30tMWI75fFRxxcKHh1KcS/kvRam459//tRLZ0fV PgDA== 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=NQGnDlDuBcNOurmmiEdrgnfLyHxHctdMPNEQBPy+k0U=; b=XHRz/OH86tY+iubAdDuUXhx4w4mlvFsaJJLae92VAhm9GTbMVnkOQQJDpzDwP/qk2u 8CJcOn9sMlulU+MeSi+zeYNbXKcq+XjsxXQY5JUj4x0LWNj5v9UlaahMianN+p2BlY50 RIK06/LsapZq3yVxta2+H6xvpUaW2XBhFHi1hrwPVkSlHd4Vasn23jIPG5+v+7+LKDnb kqu3n6UcTIiiMfHcQok8Sqw8KZofcwC949tAec2bbwsn3O1FqVKVsVrtXwX/NwHl5OkT TcN6wWQhVTFZroSUJVv2GNrcuVr1ol4PtnccBEpzPkhw6et8hsKD67zB7GeTdb/7hcHe 3vQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MMLxM8SB; 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 g4-20020a17090a578400b0022c5524d76dsi3459857pji.24.2023.03.23.22.32.34; Thu, 23 Mar 2023 22:32:47 -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=MMLxM8SB; 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 S231488AbjCXFXN (ORCPT + 99 others); Fri, 24 Mar 2023 01:23:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231453AbjCXFXD (ORCPT ); Fri, 24 Mar 2023 01:23:03 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ECD21167C; Thu, 23 Mar 2023 22:23:01 -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 C94E3B822E6; Fri, 24 Mar 2023 05:22:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BAECBC433D2; Fri, 24 Mar 2023 05:22:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635378; bh=qIi0d905rrVxCnXjZ9vwyNe5X1lgBVvNa+6iMbheD+I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MMLxM8SBg2LnY33yzgRW64q0ygwSjALTMwxl1A165zPTLTDvPe0BAfBZHPRq5oIsn s1aH3PVmBDS7Ut+GuMVab3n8jniIXZKSGvDb8m0lR0aybVTLTI+od0D2CKutXGwxeb oxjLKC62aMYJEUCMI/wKA+ZSMH5fe0S3rkebKVerZyac6liS+2tnNLRMdqJcxzoKDL rVu88I6wSS9q8OxXzBVCM1+a67qjYj3ibJUlYmI6Sn1a/GmqT/tRik5Vc3hFV3UpAF wLyJjTkqrQbUN8D868PQT9yjfkykNDFbTy/SqmwTohdn6ePxVc1CPHuaZg30Ytfihe VFWpDS+brn3LQ== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH v2 01/14] arm: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Fri, 24 Mar 2023 08:22:20 +0300 Message-Id: <20230324052233.2654090-2-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-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?1761225964019611168?= X-GMAIL-MSGID: =?utf-8?q?1761225964019611168?= From: "Mike Rapoport (IBM)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Signed-off-by: Mike Rapoport (IBM) Acked-by: Kirill A. Shutemov --- arch/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 Fri Mar 24 05:22:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 74342 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp387630vqo; Thu, 23 Mar 2023 22:25:18 -0700 (PDT) X-Google-Smtp-Source: AKy350YVG1o0OHZN4/ANpwi8ivPDVt5Y2zXslbnUBxIBtLnn9UB9fBs7+HSZXdNSF8QLijcfbiwq X-Received: by 2002:aa7:c6c8:0:b0:4f9:deb4:b986 with SMTP id b8-20020aa7c6c8000000b004f9deb4b986mr1591360eds.7.1679635517805; Thu, 23 Mar 2023 22:25:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679635517; cv=none; d=google.com; s=arc-20160816; b=cSGrTGERi5dRuCYwhp43BQbZZCGwco7nzBDbgt47nY/MVYYOpVUiD+ZmqoWpX3LIi8 JNZGBAVqNXTvss7/8vJwxexVzQ4MPqQ9AzMbYXrwBlUOPkzLpVhbYcz9MhQPG+moG0Y1 hR4ILdhRSGGuivQAwP4ga4JukzzrBAAZZn5Dcc+nYX63Z6etCopZlxxoIevoqyIiy21l 5m5bzXjyHCsbv/Bf7TjtYb8YyY2hUqS28NXrZ28C8JqBBSFboVc1Gi3uoDLVaC4pVFMu XznafvBps+Hxlt1A+n2veuRh3/MoYTm3hZuXIDUSzyBeWZyHd9jmjpJdmBDGdrKskcf0 Hung== 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=8A86cDEE59UHJGK5L7okc0K9nvdFWbXcZiV5H/QWzUg=; b=TUmzHmnL03MA9dArfbpSlfAFjLSYFTj9AjclgO4heJ54IzZvJ+5SwYHmNgjFH4RPDt KlJ48QvKNAKUaIf60w9sBVNU2QASpvfM96Puy5KSNbnzkb0Xo5yRbFwgmuqzI9P7RAko 81WVVYfKT6EYIEaQABvEH96eJiC84ML6ORtzWDTrJgcaTYCA4dp8n6/pI8O1NvoVAO8r 6LpJOg5CfzFK45MEgJCp+MhUjFValARO+dSDzKq6aE4fwlt9HO/yrSJgGJbR9lFEfZbk 746nUThrJ5Lzl0Ws48yPdx6Vt7j/rxv4TlK/EX+JZHA5cjzmwcNpkySL1+5/wfx7bBSh fE4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="GbLy/9J0"; 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 b12-20020aa7df8c000000b00501e229b755si8993707edy.437.2023.03.23.22.24.53; Thu, 23 Mar 2023 22:25:17 -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="GbLy/9J0"; 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 S231527AbjCXFXY (ORCPT + 99 others); Fri, 24 Mar 2023 01:23:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231446AbjCXFXK (ORCPT ); Fri, 24 Mar 2023 01:23:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96E121A65E; Thu, 23 Mar 2023 22:23:08 -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 12B3FB822E2; Fri, 24 Mar 2023 05:23:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1394BC4339B; Fri, 24 Mar 2023 05:22:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635385; bh=9ATx9vtaxxZ78yfIvd/M2TJNWeGD41Uj539wCBrC8Ps=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GbLy/9J0iGr8pROsdzVEGDgszUavDtQ1QhgvcyzqJBfWTWlYAVh4pS+lkSRQI+yiF 2/8Fr6QPnWJMS0ILNRzNCn0eg32Xwj2hgzteehjPgUa6QOtZ9VUDMQSD4mOjShn24P dJVvEm5KIBhsd05g2eFR+KwAGSwBLYzu/vFe0mrSZn3j7VUxcXwIqtbe6X+6w95ff8 QtWIdUH1LnfbU1+deWp70VehsdMSkgTK8N7RkuYuYak8iKr7lfCLXhjJ18DyoiyuhU 9NmDjaUo5hDv9hr8fEuoYbS6U/bVOtaRlU22/AlwnH1UVeVdZUqBI73IlLfSmCEkN7 ZtEiKa7YaBYLQ== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH v2 02/14] arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER Date: Fri, 24 Mar 2023 08:22:21 +0300 Message-Id: <20230324052233.2654090-3-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-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?1761225492448633847?= X-GMAIL-MSGID: =?utf-8?q?1761225492448633847?= 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 and make its prompt visible only if EXPERT=y Signed-off-by: Mike Rapoport (IBM) --- arch/arm64/Kconfig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index e60baf7859d1..7324032af859 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1487,11 +1487,9 @@ 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 "Maximum zone order" if EXPERT && (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 Fri Mar 24 05:22:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 74343 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp387662vqo; Thu, 23 Mar 2023 22:25:23 -0700 (PDT) X-Google-Smtp-Source: AKy350ZOlwYbLUb8bybpMxmnbz/FUBlfztRPN2bnYB3S3J+lVVk/60e7je70yG4OOm/4nYIONS9t X-Received: by 2002:a05:6402:1044:b0:4fa:eccd:9849 with SMTP id e4-20020a056402104400b004faeccd9849mr1668870edu.9.1679635523326; Thu, 23 Mar 2023 22:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679635523; cv=none; d=google.com; s=arc-20160816; b=wGxRfdFRVPz3YXyOVnjO9hdfwLS+lDeJCXFUhUHi3EWVHWj83kniL3DkEeSkXpwp8G 1arpK1TcUPCGUr56FRJO2+Ssc8U8zkg53N1mOhTdaRQOTebFJTPe7sNJC+eAgubpgTmZ TGuJTEoJ9iv6A5cQpObRXErDIKn54iZZ+UHtMpU/We9rIn49oQtV2sxg116+ELg4IT80 8RQuOV8uqaMMBmkeXJnWDKzSZOn1F3CS+Z5oUZYMRH7zTmoo3tJBs01ZNYvkJ4TKbCCz 4d+UQBRVivS6QtfuGpfmCvTNn8e5dFBK0yYm52jmyughZEYV5aeaja+9HIXq3OgjlM10 PNAA== 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=h1fBzFR1C2otn/COmqLryUQJ1nrFXVn/BwszCvhylOw=; b=lsL5cHUZqoNp4ZtT8srmX1d29btriZQuNrnkBVFQYrpt4d1hD99usVVF5etcC3YOx2 uskxaPqwfTuUN6mJ473qgpcrU5WE5iO8Njb+JNycX+qqMce90pNXvSJfWZqepY6d1HUZ wgowyCqDEvWmKxF5QNMu63ShtUFxB+ESPZ6NgRPBGEl3NuZ5kMbbF9hYLYFbTi5xHFEg krR7gANVDY0v1+w7R51RLd2PdIx/AXQYAg7E0MdnZBpZvwMhd77ivSWjlyBmYKHulYox UKszCIYd9vw2BhuOVCDTnwaXMgOMbBYjjVHvMTOwtsoBsQJJ0yNkcNCYZ0MB6skVytPY oUHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QKsHTrvo; 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 d21-20020aa7d695000000b0049f1f3402f4si3748893edr.87.2023.03.23.22.25.00; Thu, 23 Mar 2023 22:25:23 -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=QKsHTrvo; 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 S231629AbjCXFXf (ORCPT + 99 others); Fri, 24 Mar 2023 01:23:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230476AbjCXFXV (ORCPT ); Fri, 24 Mar 2023 01:23:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A3291A940; Thu, 23 Mar 2023 22:23:14 -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 BAFB862956; Fri, 24 Mar 2023 05:23:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61994C433A1; Fri, 24 Mar 2023 05:23:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635393; bh=Zfj73O5QmHC9csclCsOEEXs0WRxczZbIru4eG1K3bF4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QKsHTrvoJDstuitb77BIdiwhIP8BnjIaN5EfRgntemImBAB2ZoJrnpLrEccFXRIFT cxArY2y6DiOiABJ3L/i7Xu8XFaoLsX7moofmhfeyBfVo34JiBXOm5jl7XaS0xnssVU 5blXXcAyhof9+c3M9s2cj1NYXPhn1FREYEnY6T8K5AzbNu1aI7sQTJqR78YpvVcUaI 0Rc6KE/ZMV9Ep1Z7hq1bseI4eJyOaUNDDEHJUuWotCorS+yiI8KgE33OzElWYTw94O eah6z/e12f41ZlVpKC9qfzCGl1BSz9jP0V0wGx62Q1Fhm/yf0ocImos9jX9ZryNokf l1gzvZ/IqwUeA== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH v2 03/14] arm64: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Fri, 24 Mar 2023 08:22:22 +0300 Message-Id: <20230324052233.2654090-4-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-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?1761225498406314927?= X-GMAIL-MSGID: =?utf-8?q?1761225498406314927?= From: "Mike Rapoport (IBM)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Signed-off-by: Mike Rapoport (IBM) Acked-by: Kirill A. Shutemov --- arch/arm64/Kconfig | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7324032af859..cdaf52ac4018 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 EXPERT && (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 From patchwork Fri Mar 24 05:22:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 74348 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp389762vqo; Thu, 23 Mar 2023 22:32:02 -0700 (PDT) X-Google-Smtp-Source: AK7set8avUwKAAf87eVNWnp2SK3wNfDm0jHgCHCjDayYjxCPB8j8k2lA2vnl1LwiR5sqLO4ANlH7 X-Received: by 2002:a05:6a20:bb16:b0:da:5084:2764 with SMTP id fc22-20020a056a20bb1600b000da50842764mr1836941pzb.24.1679635922491; Thu, 23 Mar 2023 22:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679635922; cv=none; d=google.com; s=arc-20160816; b=d3t/GI2JMnhc79jafYZUWchA0dhU3Oc7sJWgCdXF/ThyJu2ipXjFyyl8VoK0V8sdii wIWqPajutVX66IuVVvFOBF7hIWmSFoVltGy0kFiqrvO816nJbfhyfK9jNycIU6N0MSZc uDVqvpwZ5UhRLf5uU4oJFIAhV/TGjglz2chn5ZigW3dKuG0q4RAy0yxclkIB7G935JTM iMDE57+zI8iMdtjek8f7dyX7qT5JVAb4BjS29QeL1brquEf0aYyAlL/1dv2XqSBjBDbq 3S8erq6bYzAVVsI6Xg85zsZ69k+7QNw1ZCVXhazJMVbvOO5UdLEzBk9M449HBNSk545q UDeA== 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=rwivWt9KIyZ8h3RuJoCnzOJ8yZY7kGNftqDqpFeGGM0=; b=CoyHlm3NVXFtWp/VyL4Jl7s6xgzla8nR0viWV/cLmGXMnIjuCwXH+W4zFbFY/gLC0o udUY53a1RJBXB3fPyfhdSMOd2pajh3eCiRxgA192MHzrQ2knWUuoC4aB7O+tOyfF29o2 hXwnOA3WUnA52d1nJOZqJuko+Aam2QLPc1cA4OrST4baNkB1GEKvcgu26ctr2ZSjlTMU 7h6wIHj6/WkVRX6mYA9WPjIhemu5vi2pblybb8xIxeXlVa9+9lLcUHiOdbUnhHEzCCiF /0qScH5MUA4RLwqXn8Odn+Da1Hm8fGQNlvbvSVF9/Lbrp8SaD4LmBK7oUUY8wQ8eTKCG tkDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Mrbi/dJO"; 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 f13-20020a056a00228d00b00623d0b5b8c4si21204863pfe.115.2023.03.23.22.31.47; Thu, 23 Mar 2023 22:32: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="Mrbi/dJO"; 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 S229508AbjCXFXw (ORCPT + 99 others); Fri, 24 Mar 2023 01:23:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231569AbjCXFXd (ORCPT ); Fri, 24 Mar 2023 01:23:33 -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 B64281A65E; Thu, 23 Mar 2023 22:23:21 -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 17B346295B; Fri, 24 Mar 2023 05:23:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF65CC433EF; Fri, 24 Mar 2023 05:23:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635400; bh=LeuV23DH0esmotNA2QlUjum35xKgU+8zbcmhGeC5TeU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mrbi/dJOtzaHgUiVL6QgdFc+kWlVrRKxGkCrNKJ0d1YIPw/3/evFLS/HHQ3psMOAH g1W3YYeg3M8dZx/uIirKdmBNpJT/KKM40fWcK1ZgrnOjerfxRIfSD9MYqUVGMg99pT ZJLSaBF4mwowIdE+5Dax3W0pqpyOqiGomjRLmihUtgrfpg0guPJO4WOUpiTQBwKCDU a0AM0PtMtMYiyp6e298B4MR0/VCNihR56/I+CKVI7d3wK3rIuc8en7Uz8PegvCRN5d kwj//m/F+5wNDBtWdUtQuBkSPTMzlj5xAG91xj//nXn+uGHI2yM594pHZAftDp2s0N hyaYR2lpyMSgg== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH v2 04/14] csky: drop ARCH_FORCE_MAX_ORDER Date: Fri, 24 Mar 2023 08:22:23 +0300 Message-Id: <20230324052233.2654090-5-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-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?1761225917298093158?= X-GMAIL-MSGID: =?utf-8?q?1761225917298093158?= 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) Acked-by: Kirill A. Shutemov --- 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 Fri Mar 24 05:22:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 74345 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp389032vqo; Thu, 23 Mar 2023 22:29:45 -0700 (PDT) X-Google-Smtp-Source: AKy350aL3ZXzN1pQnSbJh1nAho5IkC3f6ijAZ19k1hydJ8WktiTUAByFJPRltc8cHPfINbxif3Vc X-Received: by 2002:a17:903:4d:b0:19c:f8c5:d504 with SMTP id l13-20020a170903004d00b0019cf8c5d504mr1120655pla.59.1679635785496; Thu, 23 Mar 2023 22:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679635785; cv=none; d=google.com; s=arc-20160816; b=cNBt42oGeqq7P2Pf0uxj/iPKIXEvdgZgP9YRvBdYEa8PFN8DA41rOd73R6EBVAEKxH B6Nnzt8Vz8sfm9jPByooR/dk4pvWVoIy409zes4/gHafbcZvacVZNzCgsN74O06dJAoe 6bd+1W+PUw8u2WkIFa96eNapSiLVwWxnUrgtUyenbT2a3MuxwheKTJOZ/2uPx1Lzu12v i578P8mX8qAYVOOFB6v7TvvFk2idnW80ldu1esufmdLoQg9k6joBX5Dzc9QN6LSKzK/e bJKU58lotV9voo03frQSflfOtSCrIcPIL81jzj6PaMIdEfoDcilc8V27r9eX82qaV6qi 3AgA== 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=LW99BB+YCG4TRjlJy8swGWViHBRVPw3O8ECjyH8zKPY=; b=jYLeuPOGgjhazA8rM0ug+0ck/czWH+jbTFlu0n6gUXiGo+mlrGR6jf+jMBtBeMkwt7 UswMZq9AsncJJVjxvIfkvl8K77Nnihn6Ad6/1LqmZvWAayYJgqMzkpuduTe66/eBOvfm 4nDP5KzwJVc1QqnMKpLpzh3BctkDgB7kD86Qne1oWrmpwOjtE/iO31s0yGp6kEdIemCd owkTLsmehFsceA4tMz+NvCQ1o3HMLNOaphX0GKt2kiSjGDiq5yD2Omgm23C7hxE7dDMf UNvm1Wf8qUKvFrxkb/BKiCiFH4+VcdtLuY2J3xG31RBWTrLp79ZweL8xeV64RoMZodQF XRUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BFdj3KWz; 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 jy3-20020a17090342c300b001a1cd4d4237si12865867plb.403.2023.03.23.22.29.32; Thu, 23 Mar 2023 22:29:45 -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=BFdj3KWz; 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 S231528AbjCXFYN (ORCPT + 99 others); Fri, 24 Mar 2023 01:24:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231489AbjCXFXs (ORCPT ); Fri, 24 Mar 2023 01:23:48 -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 75D4B1A4A8; Thu, 23 Mar 2023 22:23:30 -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 24D77B822EA; Fri, 24 Mar 2023 05:23:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08A2CC433A1; Fri, 24 Mar 2023 05:23:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635407; bh=gU9WeuZrKKhjWnkXo6iMK8oK3OAW8JY6v5zyZrx1gFQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BFdj3KWzf6zlwHRXi2kvBaCDK5IwWYveapciy+Fji7CcGbm732iPsb/YPjuvv9zIH 6i/jctZje1DXV7S3ZbrzoNueEf3rgMbP1vrj5lEVq/aRm4XrKWctECPRaTak7reTfU X3bPUKdu2HQPSs5HJYswtyCMeFb3EDxzWvEKXLYUCFm77id4DyAMfHYE60U/qRW8li 9bHSq1dQRA9au494Ssx/8QcgyTFdNnBwStfwCPJOzY34mgMs4Dqp2sK3UmVVoJH6ft QZQXJ6pXN41I6wxusj7EPI/Lgw6R8KopT9u+INsszNrq0btGsDgeht5cmNYtrImKK5 R+FtwuPNMfntA== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH v2 05/14] ia64: don't allow users to override ARCH_FORCE_MAX_ORDER Date: Fri, 24 Mar 2023 08:22:24 +0300 Message-Id: <20230324052233.2654090-6-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-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?1761225773616809950?= X-GMAIL-MSGID: =?utf-8?q?1761225773616809950?= 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) Acked-by: Kirill A. Shutemov --- 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 Fri Mar 24 05:22:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 74344 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp388480vqo; Thu, 23 Mar 2023 22:27:54 -0700 (PDT) X-Google-Smtp-Source: AKy350YOTmN0sCVn0plgc6Ehp2QuP12zvI2iR0Srsav/7Di0+pf6+doWkYFqFPodgSv+sn+cDw0p X-Received: by 2002:a05:6402:2032:b0:4ac:bd84:43d8 with SMTP id ay18-20020a056402203200b004acbd8443d8mr1666295edb.8.1679635674124; Thu, 23 Mar 2023 22:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679635674; cv=none; d=google.com; s=arc-20160816; b=eZL2lKKfjeT4GcsxfGTJcq/BCSBO+rmrI6HpNGZ4Ma5R0ZiP/apVL9KXf8FQW+aWgk VkqRDIMI6z91mMqiGEcg7IvP8wuF4+1zCTH024nKZkmLEiPxVDUivP3aCx7jsT/iwj8B /hXo8pRIDMFPAfMZ079Q/p7VEokpnSGMWIFxeCM0ycgzalqr/2dpqSSUhdYmkIrHqJ2m MJlNqbO0fVJFMYlZFrmEU2zIJS/E+sKv9NSrIA0n0LRTewLqhWRVriOncYy8CYuxI3ob CcavE3WqweD/Mwj4Govx+0inTQFV+OvF5VwsgYBarcsepxTJqzlMC1bAF5F9ZtD/kWEG oPDQ== 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=tkFB2BkYJdzGfahGGedeyiaw8J8E0nu7W/APF1YGx94=; b=QExGMeYo5Cm6Cd9/mfimyQIXJmvjV8j3ERC3qjI3PXptqrycvmxQMTOTojrht4+7HP WdVD8cZx0aVbpxyAQc+sn3VV26HfBiioLSTfuTJkWjTKFGlCMn+L0q85n6Uj9Z7Oot1R Bn7yZQ/U5tI0imJIsfWS5Fl6q83MvdH1/jbyqaUqC8cmf4uf3dmo4HxYhMATRuCpMKSh a0T9J2MR2VBKG7mnoVaHyVI6C8MsdFaXDP5zNqLC21I3cB5gy1NiZ6m0HDgsmE9IK8c7 WK1v83YHGbZl431UVOwM89+5v1yueJOxx2U9vLOAUaM9sQWoja9uMLTCmqYbJAWVIuD2 eWLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mcx5mi6z; 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 t5-20020aa7d705000000b004ad7c1f4d14si20187484edq.268.2023.03.23.22.27.29; Thu, 23 Mar 2023 22:27:54 -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=Mcx5mi6z; 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 S231571AbjCXFYh (ORCPT + 99 others); Fri, 24 Mar 2023 01:24:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231222AbjCXFYA (ORCPT ); Fri, 24 Mar 2023 01:24:00 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBC841CACA; Thu, 23 Mar 2023 22:23: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 ams.source.kernel.org (Postfix) with ESMTPS id 6D08DB822E6; Fri, 24 Mar 2023 05:23:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57431C4339E; Fri, 24 Mar 2023 05:23:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635415; bh=16JrwLfrtLxPuHCHFmRFq3Y1XDuzg93pFyw8IuF9Xqw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mcx5mi6zYMsZzfoU338NzBBcB1GnI+sBv5ceeoPKrKh+1fsy4+PTA/r3sP5Bom2yj 4luDbZzurEwLt8XL4O3etoO/FZps8DQcHsDcqapH8HMJedXStV3PwysdRxoO+wouMt epZFwyP+LawQXFLfRWthEWTuvHRkJfa7niNubZ3Q+nrrv+77f3/mb4EpmnnIWnuqZr JtJauVIg4UQYcSle5l6vt7qITgP28NrOveEliCMkdFcXeegKGJWd7/cR8s4fJ7V7dt GYK3Jedaxs+h6q2d0egoaUJX3Dqbgnf9KbHMXy6oehrvJU/VHVoJS+22JmbMVEbb/d 6gyRBPAs7d7NQ== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH v2 06/14] m68k: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Fri, 24 Mar 2023 08:22:25 +0300 Message-Id: <20230324052233.2654090-7-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-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?1761225656304839100?= X-GMAIL-MSGID: =?utf-8?q?1761225656304839100?= From: "Mike Rapoport (IBM)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Signed-off-by: Mike Rapoport (IBM) Acked-by: Kirill A. Shutemov 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 Fri Mar 24 05:22:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 74349 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp389856vqo; Thu, 23 Mar 2023 22:32:17 -0700 (PDT) X-Google-Smtp-Source: AKy350bnsFhfxYdq6ASbAYIArdqQSwBrxB5l6YYJeSX3HyQ+IovPRziqUil5rXRTDif99tEpcR0V X-Received: by 2002:a17:902:c70a:b0:1a2:1c7:1c26 with SMTP id p10-20020a170902c70a00b001a201c71c26mr1140836plp.0.1679635937261; Thu, 23 Mar 2023 22:32:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679635937; cv=none; d=google.com; s=arc-20160816; b=eTVIDD0lEUC/5Vd9t06f9FU+H37YK1ezEsVoBON5vozQs1Wzy9NAqyvQ2+KAjYgfE6 /61KVr29t/9F4nz3W14wBrLzGJBIePc1/eyZDDFFpstuJ1nWIbLBUZ5QUr7DOdi1AtAE 60XTuBYwev4IoPKmKUqg5Y1lS2beoxpgJGKW/vN9K6p5RK5Scroquh6RBsx1RYvbTY4i PPK+KbIkjZFi6w5mE9/EfTtCuSL5a7usCMBfL4pZWUhmsjWyoF9QewMVAHOEF5XgkLad tXYRGXfxLc2L+yAVotEhILXjfSs0x7U3eAKc45ZWn3TfEehrALRbXyg75vCsCfoo9X8v +6rw== 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=wsqxMiPUvamwycmQGMj3tKnN9sQooc1eKgxUwhNaAn4=; b=wcu8bDeps7XqBVkr8U/pvjIwVeS+0+Bcamle/5oN3zNC35MwwUPjHp5dAFbHCJwSqy ZdmB3yqQG63WWAS9eqBB01S/ql3xykDbAwWKqR9pu6jSdt13TbD+/vZyvEDO8JN23KiA LUkPYtJvZJdXImcbRYvqb4JWVjioHV5axgGtIOjZbEaMHRc1QrWpT8g3FqewOVz4sc2W TyDvRmN4z0SO86KqxhhDh6RiOL2n4hxOXcdA7XpYWkGGn19Zd7HjsPaybNF7cx45c49l B4kg5OoRzrGezouqe7FfvbRg8vJGjyuCMoUFRK0eX+ZhTJg4pDTROmyLth5Z2niSXyBT yhbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dg5ZEoi0; 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 g12-20020a170902934c00b001a0644d226asi19867437plp.8.2023.03.23.22.32.04; Thu, 23 Mar 2023 22:32:17 -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=dg5ZEoi0; 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 S231503AbjCXFYw (ORCPT + 99 others); Fri, 24 Mar 2023 01:24:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231466AbjCXFYG (ORCPT ); Fri, 24 Mar 2023 01:24:06 -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 F21E81CAEF; Thu, 23 Mar 2023 22:23:44 -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 A078FB822E5; Fri, 24 Mar 2023 05:23:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4E0FC433D2; Fri, 24 Mar 2023 05:23:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635422; bh=3o/oiJZNYjmbb0ve77O2iog/Wu3nxAaOqmae3RvqrTo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dg5ZEoi0t9FSUKA5Vf5WUTAMdkq5awtSVdVqTOfIj6XF/R0HIUiOqn5EjYWKEz12V mTiqvQ2kfY3LquWcC2iqXwvlnBvX9/gBDI+A52wL4tt/aj00N9ywZaaqf96CKRHrdg qFBvKiDudjh/e2ioZMdjcnNvV+v7Jj4HcmJc6NXZgEqeQbMymxkNwAwEFw00iaGNuK 7UP27ur+wlUIMVPyOv7Zhkn9isMmE1l/OgwziL1VRcDuu/CsmBtAwjxvHl+OdhLaDT 3sECoai8/JExuUNHYkVBL0kVVhiBVVxbZFej68r9c4/Oz8b80d2RcxxKR0dCEDd85u 6UbAoIfK9A7Bw== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH v2 07/14] nios2: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Fri, 24 Mar 2023 08:22:26 +0300 Message-Id: <20230324052233.2654090-8-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-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?1761225932113949276?= X-GMAIL-MSGID: =?utf-8?q?1761225932113949276?= From: "Mike Rapoport (IBM)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Signed-off-by: Mike Rapoport (IBM) Acked-by: Kirill A. Shutemov --- arch/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 Fri Mar 24 05:22:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 74354 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp397167vqo; Thu, 23 Mar 2023 22:54:25 -0700 (PDT) X-Google-Smtp-Source: AKy350Yx85nwGzGke7nU+G9UH2u3kefo0gldUQF3IU39MAte/Xev0H4tnnLjocsXw+GKTw0mZw07 X-Received: by 2002:a17:90a:193:b0:23b:89df:4cf4 with SMTP id 19-20020a17090a019300b0023b89df4cf4mr1542571pjc.42.1679637265043; Thu, 23 Mar 2023 22:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679637265; cv=none; d=google.com; s=arc-20160816; b=h1/Ta/P51i9cISZJiunFKt7AQqRvKo9xsqJ9oSZPcHAaABpkKkHsQVORh4wpNM8IJT T5W+ppBw4BmfcooLs0d/2qO3bg3dwHKSMW+ilMKpyEZTPOVYX0BSl6I1ITZ+7BqjE1Xb lYQGjhB1eKuIOmKQ5AxDCiJv3/wkpZw0QxMJOuRFyXwlIi3oGhy7ucbk+e+wyo3OLJFT fzZ6wBA4ESrfFMPcd4/RQB7fFOJbKBphXxCj8F/jjghGayGOe9QDW4tM1gYd+s7QV8pT N+xKwaXbu0Rmm1CCBHh+kLAsu+SiI5pUSwJ7VXHx4OgVxV6wAwesX6p84Beh1Owlt7NT +uIg== 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=8CNmBPjU05YNrXS24xFzgPNX+0YBBxkwOVxqBUijiFs=; b=lJV83KFU/Slc3ylPoVp9y9yKE5zbv6vZa3WcKUQrZ8hIXKwTgZyf9QRqEDsgOoeoEy 1XsWC4W+be2//6vlwK7gs8SbZq5SmEwvafLlajnWz6YFq5Uzn2m5J2t9CUHGjprsb2+y LbbASGYuNz1mfR3p0Tnnsk+8BtfToncxnUPhidyQ+R6hhtdbYKcFph7xLyonH2WiCiEi 7nC/4M0+TnOjTkf6D/AmYUJQrZ0ro68V9qoq3XXlqvwNKnYFkhctjskyoZc71JE9R6g5 L95zhtGTsucxdwP/+4x1I8S3EL5TpLW+ynPeAhw5KCnkyS7fB+eSeZIbRSjysAjdP7ut 5E1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bXkqlfAL; 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 d10-20020a170902aa8a00b00194dd9cb062si19752513plr.396.2023.03.23.22.54.11; Thu, 23 Mar 2023 22:54:25 -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=bXkqlfAL; 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 S231513AbjCXFZG (ORCPT + 99 others); Fri, 24 Mar 2023 01:25:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231444AbjCXFYT (ORCPT ); Fri, 24 Mar 2023 01:24:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6BF11C581; Thu, 23 Mar 2023 22:23:50 -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 5570362955; Fri, 24 Mar 2023 05:23:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2B5DC4339B; Fri, 24 Mar 2023 05:23:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635429; bh=1TQi32EW4sMhSHFZM1vNQKjc7vRrEzXRk2muGQZIa7A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bXkqlfALVhBouegCaSp8/0Lh0ebMNMQK+EN3+kSWo+/ioLU0Xhq68MKOmn3+u6eMn xwmJtEaTVqFDLZ79xkFPhNTEd1CChjidO7lxM9kiCA9ZNNahfo643VGNz1FawDVKvf CsX/uKLfLXq0kdOcQBYeFKHX3YNJvb5SG9p9M4SJ7TY4FHoP73Am3kVVaEpGj0kqYq 5IrJaV9xspjTKX6qcUgkMKb8ssBuSyzK3JKC6zYMoskHDivZL7igAow2ZMNQpYZRcc O+0GTQ9spmrkyZu82oQixOU4G0fmOBMVRpzyorDvoe1Jn7DwTrTEitolX6vwLAz2Ur 4hgZBRH6M0UBA== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH v2 08/14] nios2: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Fri, 24 Mar 2023 08:22:27 +0300 Message-Id: <20230324052233.2654090-9-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-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?1761227324976768265?= X-GMAIL-MSGID: =?utf-8?q?1761227324976768265?= 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) Acked-by: Kirill A. Shutemov --- 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 Fri Mar 24 05:22:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 74353 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp394796vqo; Thu, 23 Mar 2023 22:46:59 -0700 (PDT) X-Google-Smtp-Source: AK7set8xX+R2H5xPg4fz76suoynwvPZWz9DSTix9mAy/OXsjy4ggUAAHFuLbkgtFNcN63cQ9VP2h X-Received: by 2002:a05:6402:c17:b0:4ac:d90e:92b with SMTP id co23-20020a0564020c1700b004acd90e092bmr8701108edb.10.1679636819344; Thu, 23 Mar 2023 22:46:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679636819; cv=none; d=google.com; s=arc-20160816; b=xOqMXqQzoh2kPRce7CMm0Me/FRtWaMDsA87kVepFwhnpNPUa6vg0WvWcMK1DcL+9/x F2reXg4FZ1ngUt5Nns6uTar2I1rpI5/LxaI9aRkOBFuH/xVbXw2yejCNR178LGlfifum VD+M5JQnRP82tLLPRpsvEgNLbohadjjAa08/laHeV21viZ/GQjtTMKHpNkfGnWeD9yA0 ECg7xmgMoOsrT101wOMcX6owEQVV+75ZuxIp0BttCg2teURU8UZPUHLQfsg5Z8/fPf1O h7c8hSFvePNqWVv8SBwwndo1QkYven3/LFdJEK+zbHB0fG7HKvBsRh778QUutNsq8dNN TYcA== 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=doB+A+//ZGYqd5r6xoksR3G0zdrIxGuJAmwL+F+Umqg=; b=mQiyoMgkSsJ4wdDZFl+dgaQb0HUaef2LbxxXQDlcbKZTupVMZmhiofSqLSC3F7Ddsg Qwu/gpXNAb+Vu783IkJH+OHMF6KWgAiTGatBckjfge9X0fa1sEyA4EMw/EXt5EuWnqAG h8+zKE/dG9CwDMftPsea9OC3/0ghEgMybq8z03TvyrTsLIeJ49o/MkD9mYygbypHvKwe t+3YX37ADSrwss9YKbbcIRPAYynDFdjp8z5EJ2D8dmbCLS2iYEDf7Ap0Ic+J8/XVfGMA CN/KgegxIKoyZu+BhszbXdgdQ6y0lXGPQW1khiEoTzMUHBE3zCohT1yya8FeaUMuLqNH eHdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fqCbMYSM; 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 z21-20020aa7cf95000000b005002d86f446si21083416edx.128.2023.03.23.22.46.34; Thu, 23 Mar 2023 22:46: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=fqCbMYSM; 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 S231651AbjCXFZY (ORCPT + 99 others); Fri, 24 Mar 2023 01:25:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230456AbjCXFYf (ORCPT ); Fri, 24 Mar 2023 01:24:35 -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 28AB11A678; Thu, 23 Mar 2023 22:23:58 -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 A34E76295E; Fri, 24 Mar 2023 05:23:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BFCFC4339C; Fri, 24 Mar 2023 05:23:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635437; bh=UVsispKOXrBQIEvWETypgEvjsfcHzjlmC/4ErOkgTNY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fqCbMYSMHRA8KSzswP21kxD34OBvPg5Oroes5iFhMPJ9Jc9lUvLPdfZusBSVzxRjD ZlU6JqXwo7gqufTHgsi7V2KYkqvPdhXWJniY546kA+HW//VjjbzDJ5M21/A8oWT0Lc cETKEhPNKLa2fOzp+XVPD0qVEl0P7kiVmNLagl9k1laXXohAb6JbmnGiNxTwWDsuS0 h8cxMHFbqttSNXkLPI/vicrjWlcEAN1g8TI7yesPlErb1aBdTV3L7Hi1bMNc6+Bt0l 23BSyQJZuTuaAN09/B8wSFzbZ3vkeBkT2OBZEGsqb1Gwi8JLs1MyWMHpy7vS3iIw6J HLZTIgog+NgUA== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH v2 09/14] powerpc: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Fri, 24 Mar 2023 08:22:28 +0300 Message-Id: <20230324052233.2654090-10-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-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?1761226857081703341?= X-GMAIL-MSGID: =?utf-8?q?1761226857081703341?= From: "Mike Rapoport (IBM)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Signed-off-by: Mike Rapoport (IBM) Acked-by: Kirill A. Shutemov --- arch/powerpc/Kconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 24d56536b269..c0095bf795ca 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -896,7 +896,7 @@ config DATA_SHIFT 8M pages will be pinned. config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" + int "Order of maximal physically contiguous allocations" range 7 8 if PPC64 && PPC_64K_PAGES default "8" if PPC64 && PPC_64K_PAGES range 12 12 if PPC64 && !PPC_64K_PAGES @@ -910,17 +910,19 @@ config ARCH_FORCE_MAX_ORDER range 10 63 default "10" help - The kernel memory allocator divides physically contiguous memory - blocks into "zones", where each zone is a power of two number of - pages. This option selects the largest power of two that the kernel - keeps in the memory allocator. If you need to allocate very large - blocks of physically contiguous memory, then you may need to - increase this value. + The kernel page allocator limits the size of maximal physically + contiguous allocations. The limit is called MAX_ORDER and it + defines the maximal power of two of number of pages that can be + allocated as a single contiguous block. This option allows + overriding the default setting when ability to allocate very + large blocks of physically contiguous memory is required. The page size is not necessarily 4KB. For example, on 64-bit systems, 64KB pages can be enabled via CONFIG_PPC_64K_PAGES. Keep this in mind when choosing a value for this option. + Don't change if unsure. + config PPC_SUBPAGE_PROT bool "Support setting protections for 4k subpages (subpage_prot syscall)" default n From patchwork Fri Mar 24 05:22:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 74358 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp404921vqo; Thu, 23 Mar 2023 23:12:00 -0700 (PDT) X-Google-Smtp-Source: AKy350aXlTtkqdSm7MsuvHWL8wmYYzYsr9UjYW6NdREKokVfIwiw+qQ3GgnzG4NJ5rGFg6fKBPVY X-Received: by 2002:a17:906:f1c7:b0:933:c474:420b with SMTP id gx7-20020a170906f1c700b00933c474420bmr1903033ejb.19.1679638320747; Thu, 23 Mar 2023 23:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679638320; cv=none; d=google.com; s=arc-20160816; b=DJ8AkQgGqzEqBWdbBRIARjPpMb6tddF/1mrBj8PdSLSgEXKYvgEc9bsYR5Y89UZjE5 61gAonKhW+F38nFwKYPPnEgkjV2fhU60hGvccglp9VIlZs/e81rt1wEt9PI0KbX70lfS qqvBk5eM4cLQFE6JF+wuLZpSQRgJPV5lT0W+xvuPwnrBbojxpO+tCVzgtOhLihVnpOGW FoFbrut98hzKLeZcuGTj8IJVf5DECykJQAWic0BgPbI2ppc0H4BAWvBwjz+NDAmNU2LS 9ZlcBmCDScwFHLI7zhdu+Hv5ax6C0jiLR24+quOceoyo3tEC4BmtJAbigdPnJTbqYHFE lmcA== 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=AkqRx+KrP30aLols0GHlrVzO35qmEZhWmHhuQw/AW/c=; b=zsL57sy1VAJmE3DA0BrzQe9FruGRNZctZVKnC34lR6P/VEx87t9Ql1DPX//+YRyGHk YmrtN1N3pGG0n8hWfJxPTWlwjqXEbJTJF0QnC0lSvGJPh0DxK902OjLzQR1qBB22jdM8 uoC+0pu0SzPjE0GXVBAPJtjr/DOI7X67KX2mfcThl4ioy6R7zc2LEXTiaRKrpLtp+UXY w7h1ti7TTs84GWQ+6WDleN/d93KJ3SVHdiMvDeDPEdAS8RALOMZINmB8WKW4b+hIc6eN s730CpHr5sPqU+oQARYSnzx0LxNH4BqRqCXTwrJGGmkdAZgciBNTI0uNpjohkab2Le6I GSeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fOPPdB7W; 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 hk10-20020a170906c9ca00b0093183fdc438si19167306ejb.104.2023.03.23.23.11.37; Thu, 23 Mar 2023 23:12:00 -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=fOPPdB7W; 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 S231470AbjCXFZe (ORCPT + 99 others); Fri, 24 Mar 2023 01:25:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231446AbjCXFY7 (ORCPT ); Fri, 24 Mar 2023 01:24:59 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E57411B2C3; Thu, 23 Mar 2023 22:24:06 -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 A118CB822E5; Fri, 24 Mar 2023 05:24:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98C4AC433D2; Fri, 24 Mar 2023 05:23:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635444; bh=jWYXVkiblTjjX8pMnu9azKaVJNWEX1KdDh7PEDhc8xo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fOPPdB7WVSI/TJGLz08BWyCbM3MPNDHSvvdLc07CiNFcEQtOpXfXnBJgp9g5Gqjkm 8F28pUwOJVrpod9gGe4iU1+nISFMRtrxQVHQVzzpCWKofvm802AcpHCtcXzGu2nRbh WekXd8orI5sXakmn9+0khvrkxIc1ECZE4pJcrQy4AVYMnxz849asTs+cAQX/ECJqyG kixmr05LTFO3OLPYoS8eJ4iSptjqr21w5F2EXJvzajbcFR+zkrDRfyF33hpCX9+Obx Q9Ca3qPSjTs2zx0ITQke4VnH4LI60668Uqic9f7AjDoR/MGV3S4iEYY/Jha/VGMTsv FiBwJdDbB80IQ== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH v2 10/14] powerpc: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Fri, 24 Mar 2023 08:22:29 +0300 Message-Id: <20230324052233.2654090-11-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-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?1761228432169942101?= X-GMAIL-MSGID: =?utf-8?q?1761228432169942101?= 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) Acked-by: Kirill A. Shutemov --- 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 Fri Mar 24 05:22:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 74352 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp392628vqo; Thu, 23 Mar 2023 22:40:22 -0700 (PDT) X-Google-Smtp-Source: AK7set/FsMkhQCXTETarvt8lQg+uHzPyMilgf+3r91ij5TcsYEiU+2/6ORiargzoIJd64seBCn8h X-Received: by 2002:a05:6a00:2787:b0:5ee:7c9e:9afa with SMTP id bd7-20020a056a00278700b005ee7c9e9afamr7885697pfb.0.1679636422123; Thu, 23 Mar 2023 22:40:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679636422; cv=none; d=google.com; s=arc-20160816; b=lJzuecqVpQ8JZtCiIBujA2CqCMjKTOrW+JGKBlRWCGsw5hFqXQMVcXIt3WXhEwvnHY nHck5OxpCUx/Rfd9gO9eSEbpGB0iJa2pRYZnURoLO/G3u1TwRuNQtBwNPUCV5I+NHHD5 XjNo8DlXy8B0JTMU2BfUCg6y4GTZwBH+H+af2rMaGvVTa24TPiSC1VnMgT3Oh2r8rU0T G17Zrcu4x6lQUfFyaxtjBrJ4TN7aWGdNi2YPlDzAvCKASj6POaAqWxTbhN4y1R8S/EUP mu80LO5d1U/Jla4yKBPRiac/pDU8qX4cQF+7WjcexVfFbtpRuBuxnkABivBGuPyttny4 ekcg== 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=QziR+8VPVg59yWRayV6kTptJb8KdZWHPy6qfnrGFL0w=; b=BuBqICTdWY/UwihTSUfybdWcEnlT868qGF5x4sL35Xr69DxJskeRcvZ50FFHl7jxO/ Cuz0CilwkkFrV5tu0AGitFQM1cgBiwk7y48SvVk04usIduVKGqIWDBxv7DM4NQk/KDBt TSqoKNm7yjpLrlylqDDFuhiC+jm1chRhrWnhY3tObIm4d3ecL7UdW7GzxvwnEhgCk6yQ tbKamRpgkx62CnvHFHlmMwMqcpNiUd5aVOmTCzXFUnouzRdWsvOIjZYW1P3FCqoHc1dH XhBDjvwZ/iPLWylRDsSH3qf21L1q3DNf2+bcF29LAyDsTnZ/x1G4NhvZ/YFBcbZfSBE6 ntHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lQYVNtyW; 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 12-20020a63050c000000b004fbba866a59si20410868pgf.503.2023.03.23.22.40.10; Thu, 23 Mar 2023 22:40:22 -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=lQYVNtyW; 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 S231596AbjCXFZw (ORCPT + 99 others); Fri, 24 Mar 2023 01:25:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231604AbjCXFZD (ORCPT ); Fri, 24 Mar 2023 01:25:03 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4194D1B548; Thu, 23 Mar 2023 22:24:14 -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 E9638B822EC; Fri, 24 Mar 2023 05:24:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7CB7C433A8; Fri, 24 Mar 2023 05:24:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635451; bh=48PfBQrOo+QXja0Ye9RmxtH0qozaHFJkPGyXBVJ0K/k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lQYVNtyW8kXyKp3WvuD38oW21w+WkkH215Y0MiUI49Y8eunz18neW0TYGpXTyqIwC XqFLx8+8KVgwS7YuprL35tsEcnIzjccalORzzxRDu0xqNm8Lg6qUpMBSV+wnqYH+BG 7fVis7yLRCfwYfIGELFjWraVoK1URjTvD6qYpEyDURrJzHfXGxQSmFtgV6lkeLJQj3 r9Q4srnlhyk6xgE8ueeU8JMnkcJholgdIrCRj7ZIMGsnzofOtELVm5WufcrZRRjtXC oymkdt48Gt4cjk9V6imqujHbS0ITqoYxY+5mFS1SktxcncGLDgZMXlKBtZAgEYnZ0y p4y+AlGsBG2aw== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH v2 11/14] sh: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Fri, 24 Mar 2023 08:22:30 +0300 Message-Id: <20230324052233.2654090-12-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-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?1761226440895996406?= X-GMAIL-MSGID: =?utf-8?q?1761226440895996406?= From: "Mike Rapoport (IBM)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Signed-off-by: Mike Rapoport (IBM) Acked-by: Kirill A. Shutemov --- arch/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 Fri Mar 24 05:22:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 74346 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp389097vqo; Thu, 23 Mar 2023 22:30:00 -0700 (PDT) X-Google-Smtp-Source: AKy350Zk2FxdvIqJL2Q2QrN5gEqHuQ+gB14z3d/xoj0gQIVGDRuvsP799nCCgy4CzefSmGkLWhsa X-Received: by 2002:a62:7988:0:b0:625:e8ec:4f5b with SMTP id u130-20020a627988000000b00625e8ec4f5bmr1847964pfc.6.1679635799738; Thu, 23 Mar 2023 22:29:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679635799; cv=none; d=google.com; s=arc-20160816; b=JHbpyjXn8GhZ0vY7DnkYeeTUPf7gxwiowDw2UhqZSJGiyPsO6qebGnM90hyJFHve5b 0WtJMhBsH2yiIlvUMIBofpv6MzeKyd7QQ+ul12ba3tXHHuOUhP5Hv/vckrze8ru41IJA Vf6Kt8sFtAuxUAf7f5i5OC8p1/O4ULBmVGH9P9gfGoOS61FrdbcOiOOTpUuyJ8zY9M2h a2RgP2U96jieSZiAYBzKOU8ggVwfFKVw141zfqPS/tPR9zRJ11txgSpUHkrAaE62eWs1 Gx6PT5Hk0e9UfVpI/hiHiup+yF7C5qYMjuRfNEs+PFLw6uewtxhAHnTdWY+z5oY+2b/D UEJw== 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=AztSsaZ92VAuFSJuok08H3cWD/CdNCVrzP3sxf84q4g=; b=kQsre2Q148zJXpPyZyTh2gbE0/fkVEVZzq1vq/cSadyOELssZC8BaL9VSKytOEkYHq EOor727NemCahQKfY46/u293I70rb2FmtGuf20rGoP6T8+I3iAUO5DLg/cyDRID5CBmx aXxBOVp3P4iigMAGVDt258ae4gGBoAZrCrEjjY4TbxEFsRAiMWHX/TmsSTm8mpO9sZo5 ieDcCyWh44L0YUpJPe6BSY7Qz6ACBjNKDIAvRTX83SG1EMWvhxfN72Aq9bxeZ0eseT4S xOXvbf02sXabd1bch+4+AB5z6Q2jPpfouppPbB+seaPWMKj2xA+eTWIgieg9zUYyOSzz O52Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dceuPNgI; 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 4-20020a056a00072400b006254c97a3dasi19371985pfm.301.2023.03.23.22.29.47; Thu, 23 Mar 2023 22:29: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=dceuPNgI; 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 S231235AbjCXF0D (ORCPT + 99 others); Fri, 24 Mar 2023 01:26:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231494AbjCXFZI (ORCPT ); Fri, 24 Mar 2023 01:25:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AA282A147; Thu, 23 Mar 2023 22:24:20 -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 984CD6295A; Fri, 24 Mar 2023 05:24:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4089AC4339B; Fri, 24 Mar 2023 05:24:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635459; bh=2lIjtXQSdcPY0DUqT1XLAyw0+E/MCp0PQPELkL71E0U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dceuPNgI5Lc/LCXyRzwFY4/npUh6dlu9Jhf/5eDd/XyaVsIGMLoMPrdYjI7XK6uZP coyLCsgXODg4jj7S1jXh408wnk/zgT4xAXB/dWAmdQO+aAm+79EYo2sOWU+OoAImta YL9EHR6dA8Kps/hg6PME7zMMXHGMFvB211a7o0e9LKIsz2bmyJpqJlzRUmqW1C6AvN V0P40bGmPoQIFcGl1LmDV3EfEVUC6+2aZqfM/MmSE6mZwkTOkRpuvfsW9eC/SB5z17 V0rtSxp2kFu3NwplK2cfNnLH3uUv2ccoj+Hr7KlRYWOO9SL3Gps/yrFwdY+lQTcWhX pzQoZjFHXTMgw== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH v2 12/14] sh: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Fri, 24 Mar 2023 08:22:31 +0300 Message-Id: <20230324052233.2654090-13-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-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?1761225788350973229?= X-GMAIL-MSGID: =?utf-8?q?1761225788350973229?= 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) Acked-by: Kirill A. Shutemov --- 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 Fri Mar 24 05:22:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 74347 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp389101vqo; Thu, 23 Mar 2023 22:30:01 -0700 (PDT) X-Google-Smtp-Source: AKy350bfmiv0RgBwMPwl4bK6YvJWBjLwuXZvVrPB/+DnMlXruQTkLZi8bbki+vrR4JtjnCs4hZUh X-Received: by 2002:a17:903:228b:b0:19e:6cb9:4c8f with SMTP id b11-20020a170903228b00b0019e6cb94c8fmr1655159plh.41.1679635800781; Thu, 23 Mar 2023 22:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679635800; cv=none; d=google.com; s=arc-20160816; b=iWZmdinjUAtGP+MAbIuruxWbfgxNCKnzrJ80EjT1W4YKifMXgvAfKL4gfBh8N9m/9R EMugV3HLK47sbB87OWfBVoexEP34bzoOPjL3Irk4MAnGUxHBzEQwhqiMT8LpDw9cqM6D fd9sJxlFUd+zxcpOKERhg/OhlZvHRJrUEzlp3pmLzd4FIUhztRV2BbMKK711POR+ghvZ 1GwpiV7Cl2Thkcl5Cnw+q2XFcY0cBCJv3qIwJ83Kp590enLAVe+tV1WwvyBazd24HclK Jqz4NjIewyTF8ypkbYZsbTfZgLQw+c8ZMZYzAji417qFMuk4BHoTy+Pdc5lh8j6ZpIb2 m/fw== 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=as8XGGRYoRm9u5Jes2AlrzCLNt4/BlAu0a9TDmoK8bw=; b=qH2cvYOG2ggYl7hBJSRfxLf50PheNH8gSGjLNfec8lETb0KpOYTzxf5q/JTK4fM0Uo mSjwNrBLkjnK7oEnhT3gWCjeATgbSiRyF0LN2h2WkepcehtNa/m927tzUiGkFTQmkj3o uQkIbKebUVkUO/eY0LeWZEtcS/djZ6BfVYBLlGSttQ9o5DZbOnrXDB4lfQF33k5qmIUY gLJnKocP5FB0+1ugJ/kcwrUt0sNx6encN+K/Ccb1+uL2cXsXKv7nELSxBDBX8akd1Ewo KTvUlGBzTy4VvPm3KYKdObWBmT/J2Efy2tfL50A38PNb4Kni9QA89uZeT873GIwU0ZDU /Aww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OaMe0O8Y; 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 q24-20020a170902789800b00194a1f665b5si18945908pll.570.2023.03.23.22.29.48; Thu, 23 Mar 2023 22:30:00 -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=OaMe0O8Y; 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 S229945AbjCXF0R (ORCPT + 99 others); Fri, 24 Mar 2023 01:26:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231669AbjCXFZa (ORCPT ); Fri, 24 Mar 2023 01:25:30 -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 E02582A9AE; Thu, 23 Mar 2023 22:24:28 -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 98EFCB8227A; Fri, 24 Mar 2023 05:24:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DE6FC433EF; Fri, 24 Mar 2023 05:24:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635466; bh=1zRPyaaLaKChlaF3HiLNG8L4a1+H9YMBeM142XTaxBY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OaMe0O8Y/VqFyvv8P3AJ1JWfaNX6fUglLOJcj3uiMUNqxbjm8gr3zQzueLpQbru3k epbhwOHrXR1omZCGUJ46MWgrzi5JVVVUMbEvFwbZBHTNJoP1R3O3Rt357nnca+/Y50 MazCC6m/TE6Wk5itsz2kNTymFFE6Ee7czzfdznGtRIDbRXKkKdT8k8Q69UUznV4zMY kNNQO5IhLe22jyNOezzwMTCICskwDUKeXENIxmLxZ4yPWLQaCW5OKBlzmo+od0rKRh WosyWZZ35ErgkBKSd9iQE6LbvHpmmzi5D05v0zIQAi4gdnhM3ArvsglzNbBv6+vb9z 9Y8re2b10Yv7w== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH v2 13/14] sparc: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Fri, 24 Mar 2023 08:22:32 +0300 Message-Id: <20230324052233.2654090-14-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-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?1761225789470626350?= X-GMAIL-MSGID: =?utf-8?q?1761225789470626350?= From: "Mike Rapoport (IBM)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Signed-off-by: Mike Rapoport (IBM) Acked-by: Kirill A. Shutemov --- arch/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 Fri Mar 24 05:22:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 74355 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp397798vqo; Thu, 23 Mar 2023 22:56:30 -0700 (PDT) X-Google-Smtp-Source: AK7set83/mZf21BsbKDgdF6PTsOpmqRI4UBqKeKB3GoJwgkNz0uzQQ+6s/xl16yGXQ4THxPMmayC X-Received: by 2002:a05:6a20:bc9e:b0:dd:7661:fb34 with SMTP id fx30-20020a056a20bc9e00b000dd7661fb34mr1725228pzb.51.1679637389827; Thu, 23 Mar 2023 22:56:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679637389; cv=none; d=google.com; s=arc-20160816; b=GNhjxAbExSrc6qWbtrLCkxjSaqlC7InfYxhkVwT/UnEHxTT7OPR6bJqs7uZpv+9Vmc kRHbwVgVSzWu91pLLMWqHKjXy1ALnhz/WWEqudLuxN77kUmP59ct+5hcHMewlGbCytpO gRcsycY7PkMIo1bYsN8bAvcAn9AQQYuTVxijP94QgvmaX5ROiqT66LUzyGe8FbvKviXS 3Y2iGbhUQrlhQx0c0BBknqcyJRa597vL3wJpbUwxJCnfW8v5ue4Tme4+bZYpupk5c1QM JD4wZywyH4nwsyJULjvUSTIvl8YMRBGLuDlKTLKq/cPcrQDLkBUOdgt5wAvUi49Mfwoe NPBw== 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=ZDzK/Zdv6IFeoz9l6J6Zb5q4V+KZra5cHP95Yld42ek=; b=IxItyqB9WYHZaBkpoqXnDVlWUH8OHKznj75zhFMXjgbt7V6G+3xgLNDn5TIsEQUFQd O9S/nUjsjXW8jKeXB1K/ZCUuXp4aEtz8PJg2N1qbTnl47Hnrg2PHx1E559P1SNyPAPf2 mx9umMiJaOnnyiTzaVcHtNvLIrq/GtpsFzs0cVHWgiGPDYTQRPazeZZjmT9Rs7D07r0O QoRge7HBvArwbOCFKHGKTLG1jisuuWeTcdUciIYN2gxdG/3G1MyOReEhLUiiox4/Saah DuZ3mjCTqowmBo3WfCGWDN+Wt5LKH83CksgOu+ifiov4Z5G4Sxx3GaaTnruTrIuR2tVx izQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A3CqxCMw; 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 e3-20020a056a00162300b00627f6643c07si12794016pfc.185.2023.03.23.22.56.16; Thu, 23 Mar 2023 22:56:29 -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=A3CqxCMw; 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 S231682AbjCXF0d (ORCPT + 99 others); Fri, 24 Mar 2023 01:26:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231231AbjCXFZd (ORCPT ); Fri, 24 Mar 2023 01:25:33 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36F6A1A949; Thu, 23 Mar 2023 22:24:36 -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 DEA94B822EF; Fri, 24 Mar 2023 05:24:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD2BAC4339B; Fri, 24 Mar 2023 05:24:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635473; bh=nw8UNJG7nUuciviQays7D2+1DNRt50wOuGp0YNt2kts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A3CqxCMwJfZzwcOy2cHw6Hy5i4tjtq0LLAqlPpMCz7gceY63zG9+sMCnohgsmNBDp BJhwe+zNosK9oTtSQJ6sMo8h6vZQi3bv8P4VussUYnMpuK3aiMI/SN4BS8qQdBSpx1 N4o7L4cp676/LUwaSYP8a8XIhiZKbu5cpIY6aX1ykFXPd7EcB0LPOc/C0J/4Xdezpm 9EkSoLPcIlsQkrS8IVNKy0jHHPFeCeWECsgynPY3be9ACBDzng19Lmp+cOjgPEHoQ5 w6mtefVg74Z8gmKTE2K06WnOiAV3JoECw5bbt0ivWjt7dfAgLQyScbiZeeTkqm48hH er1kCT3TasZWQ== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH v2 14/14] xtensa: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Fri, 24 Mar 2023 08:22:33 +0300 Message-Id: <20230324052233.2654090-15-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-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?1761227455206949529?= X-GMAIL-MSGID: =?utf-8?q?1761227455206949529?= 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 Acked-by: Kirill A. Shutemov --- 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