From patchwork Sat Mar 25 06:08:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13187578 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C94EC6FD1C for ; Sat, 25 Mar 2023 06:08:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D0201900002; Sat, 25 Mar 2023 02:08:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CB15C6B007B; Sat, 25 Mar 2023 02:08:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B79C4900002; Sat, 25 Mar 2023 02:08:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id AA7DB6B0078 for ; Sat, 25 Mar 2023 02:08:57 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 74884140B89 for ; Sat, 25 Mar 2023 06:08:57 +0000 (UTC) X-FDA: 80606392314.26.779DDA3 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf04.hostedemail.com (Postfix) with ESMTP id 9D49F4000D for ; Sat, 25 Mar 2023 06:08:55 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=aYeiwpTr; spf=pass (imf04.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679724535; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=z/MzQvCHeq5bvjAN4jZVQinnaTQp3FGX3c1yGOwCCiQ=; b=uSHGheXgD7pCg34amz3VB4/fRC+y2S+7m2joPu6robVPP+JPqou8GibLAIVQryvMHV9oqY IBqFbuBN4e5fVzNOnzcXk/8EbWQ4QNr4bhYGaSwISmEtzilmCr/ZM6FJZ8ay/TNGCeyvoX kpasaqzjzpqFH7ObEtweIjWDzSGJ8KA= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=aYeiwpTr; spf=pass (imf04.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679724535; a=rsa-sha256; cv=none; b=JJeNo0CIWlhUowFKT8+7VgLC79yu7YMmxR1AH8AQ2Z0hgrkjKLw09TAiLdJUgf5y/29JYv 6BBJ/djYLqy5pVOKkTUOFwCm2NB/TNw54GD/sDO8K44jBEdoHVoJudRS1kU1jLdf0L5VhN yamJERM1G20jozjiYGD1zFYaWB+9llk= 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 3EA53B826F3; Sat, 25 Mar 2023 06:08:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57BBCC433A1; Sat, 25 Mar 2023 06:08:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679724532; bh=q7weBGPKvdBN57QUvQqtX5qaYPsIxnfEd8OnKmhnqdA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aYeiwpTrkkJSoEHTClUYXh4nHZxJy302IUQShQ1+6oY9htGMebu05MOB8El++8aFl 9kCWkyoZ/NML2PAjmMmc4A5JpN38TO8oYGUYnvDm1H6fl9IpQDJ+NIcfkLm0XwFidr 80fb1ox0I0Yo50ZNJuGe5yWch+qD5lyfJ2xzsL/vbY+y99KvrhTR/W9Poz/7bbebnv PXunooBfRF/+I8gx0SdK9ETB18c8PAoKpngxhYzuLdXTD4xHXE6Gshk98q/uM5eTfF 8ncadKj3TNKIfpB9PowlEDog5VRxNH3tb+JxbTmnfv5hOhsDVZT7BkwYOua/02Zyo6 Mh7TJGdi+dn8w== 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 v3 01/14] arm: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Sat, 25 Mar 2023 09:08:15 +0300 Message-Id: <20230325060828.2662773-2-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230325060828.2662773-1-rppt@kernel.org> References: <20230325060828.2662773-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 9D49F4000D X-Stat-Signature: xw7adwg31gwfgfcpnotibmfbyzzjprqk X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1679724535-33786 X-HE-Meta: U2FsdGVkX1+bXBlsFmNpt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Qj6j+eosEKCSdg6/AJhgOVGgKKZAeGe8tLVaDJGeA6DQJWnPnoVWAQ3wt9e2iZ+DmdvBADQopL9oS9KFAkhMaBAOKQnSN2Bh0j7b+15oKwtYOdou0dfY2P/Hje3XipI6DdlIRAidLnandCsAv3X77euBawm+XPByPLTdrMqRLfzHLx05UG5kytKiijpKvbLY9VsumucqB8QBKxPgKhvj6gMM X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Mike Rapoport (IBM)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Acked-by: Kirill A. Shutemov Reviewed-by: Zi Yan Signed-off-by: Mike Rapoport (IBM) --- arch/arm/Kconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 929e646e84b9..0b15384c62e6 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1354,17 +1354,19 @@ config ARM_MODULE_PLTS configurations. If unsure, say y. config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" + int "Order of maximal physically contiguous allocations" default "11" if SOC_AM33XX default "8" if SA1111 default "10" help - The kernel memory allocator divides physically contiguous memory - blocks into "zones", where each zone is a power of two number of - pages. This option selects the largest power of two that the kernel - keeps in the memory allocator. If you need to allocate very large - blocks of physically contiguous memory, then you may need to - increase this value. + The kernel page allocator limits the size of maximal physically + contiguous allocations. The limit is called MAX_ORDER and it + defines the maximal power of two of number of pages that can be + allocated as a single contiguous block. This option allows + overriding the default setting when ability to allocate very + large blocks of physically contiguous memory is required. + + Don't change if unsure. config ALIGNMENT_TRAP def_bool CPU_CP15_MMU From patchwork Sat Mar 25 06:08:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13187579 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27D5AC6FD1C for ; Sat, 25 Mar 2023 06:09:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A9082900003; Sat, 25 Mar 2023 02:09:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A40936B007B; Sat, 25 Mar 2023 02:09:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 90944900003; Sat, 25 Mar 2023 02:09:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 8241C6B0078 for ; Sat, 25 Mar 2023 02:09:04 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 41A1A40B5E for ; Sat, 25 Mar 2023 06:09:04 +0000 (UTC) X-FDA: 80606392608.14.B40DA94 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf15.hostedemail.com (Postfix) with ESMTP id 95926A000E for ; Sat, 25 Mar 2023 06:09:02 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="frI6wY/7"; spf=pass (imf15.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679724542; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=DZV4Qv1GF0HfhldDScHuyLR2hmV0139ZNHNue7Ojjj8=; b=M/ME9h3oFywiOlHm73acUoGTUCY0y0gvpxHWspBV8vejC6iZ8b3MsDP0ew0QUM6ObyHWQw /YgMKtIPHp5/CfPCwwfSGrXcx7rfSnEKry7wkYFY7QoSlO8NnZLUWkKlyRXpz1c7SjgQmk pC2kuS0NtJ0DLva5g+uO3TUo7zfM7P8= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="frI6wY/7"; spf=pass (imf15.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679724542; a=rsa-sha256; cv=none; b=Q6SbclYQwxhLdQzRQXxvXkyccr1/OGN6j1koNC/1X6KRx71i7CvUGoLiHYGJ1WwTeFeWum dnQpzhB2WZTjsR6aQLjARD0pY5BHl1W27gNeXC7moQ97bJJwgstc4IQXaMkcXSUSa4jUOr lr0BqMd2+xsn/nrrGj8NZ/i74jAQIDE= 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 50FA2B826FB; Sat, 25 Mar 2023 06:09:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F625C4339B; Sat, 25 Mar 2023 06:08:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679724540; bh=AZxdkgPPk5uvF+BQxbM9LjXE7h2xyoTV5CHwXU/8HBE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=frI6wY/7y9Ugq/kDdNPQDTAIrUL1Ibp1tX6t7Wkvuc4peDLOUS0FLn14dUsWo/UVP KtNbpypjIDQfLX5Sa2evDMHXVx61HvtQHFOB9PKZEAXW6tzkIYZ7paJcUl7b6QDkDd XhemG7a6NpMMwzsAA5r8YA40P6xhw2fdg7YT8O/KlzdC1TBydkuv+gJo7kkTOrB7+s enMaqi5rZNqjbwsUTqTpvzzTnA0aG8BdvkEhvLbQnSOQX291OOqIQDs7NKNHFmtArR Nv401z48Zg8rkh8YIDSIShaFEhib6B5rPElKdicGjHXH6RCXcm7FcU+nr/k4vFBvHI +2xif/sknb2gQ== 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 v3 02/14] arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER Date: Sat, 25 Mar 2023 09:08:16 +0300 Message-Id: <20230325060828.2662773-3-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230325060828.2662773-1-rppt@kernel.org> References: <20230325060828.2662773-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 95926A000E X-Stat-Signature: hzyr5bredgh4mjd6uy9u5ow6ok3ogw5m X-HE-Tag: 1679724542-897156 X-HE-Meta: U2FsdGVkX1/dzoQTzVlxuGexL5++N7KjNj0LNZHY9UgX4mSPocHwHpD3+wiUfvGDgWj3EKaukp+kUMh2nR3wBRFkqo5neilvHVaRIa0Fxvy+MSYlMGyqdebCSTgvJS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TeEjf8Moqx/f8sCJzQdrrhb82X9w1UL9DeWH88DnQbtlpNHgFm3IEkIlrXK5RJhH3ieV5PECo4a2/mpIDZL6R2YVEjdYz9h1jjttVvBiHCthA6zua3gtREIQ3zx X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Mike Rapoport (IBM)" 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 Acked-by: Kirill A. Shutemov Reviewed-by: Zi Yan Signed-off-by: Mike Rapoport (IBM) Reviewed-by: Kefeng Wang --- 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 Sat Mar 25 06:08:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13187580 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F675C6FD1F for ; Sat, 25 Mar 2023 06:09:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A9055900004; Sat, 25 Mar 2023 02:09:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A40F96B007B; Sat, 25 Mar 2023 02:09:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8E3B2900004; Sat, 25 Mar 2023 02:09:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 806816B0078 for ; Sat, 25 Mar 2023 02:09:11 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 485A2ABA5D for ; Sat, 25 Mar 2023 06:09:11 +0000 (UTC) X-FDA: 80606392902.08.D9E3F06 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf11.hostedemail.com (Postfix) with ESMTP id 9162640005 for ; Sat, 25 Mar 2023 06:09:08 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=rirI1LE3; spf=pass (imf11.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679724548; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=KW48lK+Odi8lNLdO9i4CcQLu8IJkR09hmjUFRhSWTFU=; b=3GGOLWszYLerpaQCnxj76gO9/Tbv0vZ2r6b1Sl8ngy4PZwX54rbFEe+sUdcaP31QwMk+ff zPaj9EONHDHjcHp/BykuCxwSmm49wbNiJ+M9vsQ6pm7N/Fi4Bbaqezy4XfMJpFp/nI9E6O NdinbxuihQabB5kZaJQUqa2taNPAm2g= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=rirI1LE3; spf=pass (imf11.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679724548; a=rsa-sha256; cv=none; b=l9YjheprHHNGJtW/+LUVZyyMulZKOVa3WRgy2YWndOs9tA3RFfjLC86ict79eMAymsf9iX 6/EhbK6ZfuDu8SHGS3FGaPuCtYimVdJMPSrfY7JST3yF8Ca00sfmPwt+57maEBTKcO9boY B2R6b7Cq8P5bymuysbcjVagdlLtIfkM= 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 54EA260A08; Sat, 25 Mar 2023 06:09:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 870B1C433D2; Sat, 25 Mar 2023 06:09:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679724547; bh=qNh6nhkYIBdXaRuLL5GYGOpZBsiUYM9+UhineGTjJPU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rirI1LE3IL192S0yKzg6Y9hCPNuKuJBa8/FnRMwHG+5iLbDwTy50fX949R6Y63xTF UXgqPugUFhJmfiXPsf80n0rIx2hpYxXgF013LBy9/cuaPPknS52iQCHlE9I/eNqysy YA5VqoQdNZbXputm2MtEunhOqdux1Kh0R1JI/PpfdvIMBpHcnD+7de9og02ue3WXm9 0M/AXHZ0+Vav4cfU8cZirL/pvPdBPSCqFqtvhnml0w4rkC9tX34dsfUjcp9G6nULZG oBPlI/jXvQ4LSznp1Wy4B+lgG4MPAphGjzPzbxy93VbPRvoljM+BMe3yd5jHEvzR4E ThQp2TwEZDftA== 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 v3 03/14] arm64: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Sat, 25 Mar 2023 09:08:17 +0300 Message-Id: <20230325060828.2662773-4-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230325060828.2662773-1-rppt@kernel.org> References: <20230325060828.2662773-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 9162640005 X-Stat-Signature: i16brq837zq3mndx4switqu88qcg67q4 X-Rspam-User: X-HE-Tag: 1679724548-123382 X-HE-Meta: U2FsdGVkX18tzTRjJUcS52yvFKcKVY+MGJC9hUspmNi9S472PlCr9Ge52ogn+0rtehAlhZazJliFpdx4fQPp7gIHSPDOCQ0bvFw+k+dcJunyiyyQzj2RD+ryyWBXpM7+zBMDbxnqqxjH8zY6Dlu1BFRGzz9LwGKOV6WAzVmGMB+SRUDP4YHhN6dSGtWAjJbaVOWUna1V4yETn4NzpSsfHANqbve1NRvnNO8/QYUz3R99hd+5ng0BLmbtJOsDPQQtnouwkTDtai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7+pbfTeHORrCpOtzPieUuA4qOERvo8nCeJ+OUtLyd57Mv57/qH2PPSCFi8K7LbWkSacoVWUyu4cmzSjxBktbKNRYnkUA/HayDQTzwArZcpOpKdLzOdNLA= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Mike Rapoport (IBM)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Acked-by: Kirill A. Shutemov Reviewed-by: Zi Yan Signed-off-by: Mike Rapoport (IBM) Reviewed-by: Kefeng Wang --- arch/arm64/Kconfig | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7324032af859..cc11cdcf5a00 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 EXPERT && (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 Sat Mar 25 06:08:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13187581 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 049EAC6FD1C for ; Sat, 25 Mar 2023 06:09:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 97FDC6B0078; Sat, 25 Mar 2023 02:09:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 92F416B007B; Sat, 25 Mar 2023 02:09:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7F811900005; Sat, 25 Mar 2023 02:09:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 71B2B6B0078 for ; Sat, 25 Mar 2023 02:09:17 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 47D1940B91 for ; Sat, 25 Mar 2023 06:09:17 +0000 (UTC) X-FDA: 80606393154.03.11645FA Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf01.hostedemail.com (Postfix) with ESMTP id B4DE140005 for ; Sat, 25 Mar 2023 06:09:15 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=VPc8dNXM; spf=pass (imf01.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679724555; a=rsa-sha256; cv=none; b=3r9c/3yyea5V//kV+NyEsfO+FEWPn7o7bzlG5gQQMpzLCXTj1XgH4zcbEZX9z6edF1JxQ0 U0AXbaFmC6xkLX/ALTETnFPnICHAGORIfkFfoZlBEbzO8R2yjK+9YQh/gngIozGkDjaRfC 2pMoqWmtrW+sFYrkbrDHaUPxkjKcR/U= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=VPc8dNXM; spf=pass (imf01.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679724555; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=26FO0SsFYESsmSuSYFsMlcCRpKtIKmzdCyqbsXbSw4c=; b=VRbZCxeqxV/V2RFsnsREIVTeiaJPJQ9G8ezzzbHXhndVLSuDRIxMHKTXIk4Od4y1mGaHn8 lVlJ7v340KZr6jvUr4cxpmd9c599AVLH5NtyErCwyptaem+Sy+09r4mSEFnibteTr80QuS vQNSjDw1Z85xBeRE6DOv2gBsfr0kubQ= 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 DC28D609FA; Sat, 25 Mar 2023 06:09:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA6EFC433A1; Sat, 25 Mar 2023 06:09:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679724554; bh=rsWO9Gu3cLJfEZ6HGq7Yirp+4MPMX9dfat2W6BJq/Fk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VPc8dNXMBWIXJyN6sfN6LeTLRDC59T4bZLZBWq7JN53840Dl1l7ym8J18YFdxatIp 9DQpdhF4tu+AKAw0OjKnedcpW41C5WMuw9ucVi77g7PTxRglrMTBT3fovrTuqL36/2 Q3nBPLN01a2DhO70v9RrrtK15qCftbBFZGWwfhsPjuErp5vRGnR422qF2c+POTGGZo YXcGQua+Kxj2QNTUxj+Ci8zoUOnJX4+qLLchS0FzJJ6eMnaOvqBEiB4VZr+a7f6noP ypmyXJqvhzzN13BhkuTUs9QpJCd+dYk22bWNDDlH29JNUEDYaWLGwdmQk0iLZHu63b RV9GjrGP5l0RA== 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 v3 04/14] csky: drop ARCH_FORCE_MAX_ORDER Date: Sat, 25 Mar 2023 09:08:18 +0300 Message-Id: <20230325060828.2662773-5-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230325060828.2662773-1-rppt@kernel.org> References: <20230325060828.2662773-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: B4DE140005 X-Rspamd-Server: rspam01 X-Stat-Signature: 77ihkiwmstgx56jphpzgdp3pbygmgedo X-HE-Tag: 1679724555-494527 X-HE-Meta: U2FsdGVkX18oS6H321WOMSxjV7kilZMEeCixFIiL8OfnaIifLNH0tXP3EjOK70l0nkpJy/hQ/sOfeuuuR4tXeP3jsoSU9dH4jF0Gl1g3vhNv5H+L1iBPYCDwaI1Q4qi+EvxlH4yfeT79/dLcvrCBzpz0M9GBm2sep6ub5yitom558vT4+kaFKKilpGiBOIgbdBTViPpHsdY89t2QrbSTU83YUW0EvTbYQdnB+jjVN8Y38gweap/cX14SWK7+5Dw/qPEAbp/Sn+Lkl18MpKniOJ8vcuA5PkBYcJ7N1mpB2oyzytRB8mBBhhgSdk5fSxoxJC/C4lItDMR1+NrxygIMPMz6+O6muV+pcAYRx0QDVl3S7U56YZOilKoPB4NtkRmHAkjE+XP+bsWJRWmpi/iGY0wApe0lCAQAhBGBeIPTNeQuz1CSPZ4PgpmQsPcdOLtlcmF60jFDCglPvXlABFtUerJVUkduvcnF09H+u3Z/oOjL1AuVoRp7HZgCcSY7tWbhnS0EwtGu7W2BhaSVL0/ZcW7057ykcjS4r0wI/peuJOZPiry1tSGzphPEtpkdROgsZf6DBJumnFaBnXR32QJDwzrOfHOJeh7+ZXL1DjTsUDaNuvNXridu8a3Z3yBTf/gQZFplANjQk0jaWiJO7braEcOrTEvAg+AkQmXg1WkFJUFbPT+/udXvHNj7xE5GDjcP0WnwVMu4GvCTqAzGMDLxVYow9W4p6egHQAFnKx+6zUoapZbxpPy1E5KqKxuk/85I231dlTh+1KVlm+93yGWD91/SHFZ3jp3O0KaTfH+Gl9YCTWHiqvGPXjzUD5CGnIPXtsvXeYqh6opB5+1TYBP20B9WW4ObZyX4ccCh+2+M2OrYJL7mAWVO21BQgm4dGXT1qb5oSEFhdsJFRViplaRl/AKljF4Jjt3O+2DTPATwHh7x8MT9d2oltTa/SP0tdi629/1iLzxnzIf1z7xiCrY kh2H+Ie5 BiHVdJi4WMSQyegeQtSAumHqCfI4FD44sP8Mtu3HtpXaeGEj6TxtKtzv1Mw1dcIZkUK454q3Goyh5yvibaFNT7XnjykJVpgcGSHViXNGV8C0gSumONXpyWCHDDSseRhIqJYa9m4B3/9uGJSC0SplLXKqRgeOdA5irDuWAJ9mpnRpTg5Hv3AgJ/JKMeTsbmOFTUVO6V547Je/xwglUQ7ZfJ+DB++SQYYiG1S1FftIyBWrocq5yz494GIhpMMI40u6tFOs86TVWaowB447ZVFD2Li7bqxs1YnZgYHqS60PYI2CqBdHt9eh4wa80oGp5te1mkRkUJw3PqzlecAsG/Q5ENibJXPuMZZUcXGDxIuZdBSBUy2gS7RaJ/CSg1clLxVHEc/IF2/WZ0HYhUxGATk59pSwUtC+jImyp5CrjlYUeIl6nQMlmHUFyZxAeXKQLiKgiWZs4sNQe3lZl+oi/cPDPZc7CRs5OXKGfz5eZg5L+eJm13uI= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Mike Rapoport (IBM)" The 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. Acked-by: Kirill A. Shutemov Reviewed-by: Zi Yan Signed-off-by: Mike Rapoport (IBM) --- arch/csky/Kconfig | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/csky/Kconfig b/arch/csky/Kconfig index c694fac43bed..00379a843c37 100644 --- a/arch/csky/Kconfig +++ b/arch/csky/Kconfig @@ -332,10 +332,6 @@ config HIGHMEM select KMAP_LOCAL default y -config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" - default "10" - config DRAM_BASE hex "DRAM start addr (the same with memory-section in dts)" default 0x0 From patchwork Sat Mar 25 06:08:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13187582 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D353BC6FD1F for ; Sat, 25 Mar 2023 06:09:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7A9EF6B007D; Sat, 25 Mar 2023 02:09:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 75ABE6B007E; Sat, 25 Mar 2023 02:09:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 622A0900005; Sat, 25 Mar 2023 02:09:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 50A396B007D for ; Sat, 25 Mar 2023 02:09:25 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 99683A0B86 for ; Sat, 25 Mar 2023 06:09:24 +0000 (UTC) X-FDA: 80606393448.05.2F97073 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf15.hostedemail.com (Postfix) with ESMTP id E7444A0015 for ; Sat, 25 Mar 2023 06:09:22 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=MMKlT72m; spf=pass (imf15.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679724563; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=8mePnRwSMPrZxyAe7aqCz3JdR1Ep5rNsHIMhrM68YZ4=; b=J8mDo6jaIhzxDl8DafyiIlztFoZWpv4fY5G+loz4I1xokXb+Y1aLaXzd/iGWQZW4ga2Dg6 JoHDlQEqG9F6cuHaEq0rNOvozm/hj01+wjrvyaEl5jNMUZ0Mg2HWhCct90vuSph6eYTUTo TAb4Z6aWvkVyAEnG3z3frYgbfEjZoQs= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=MMKlT72m; spf=pass (imf15.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679724563; a=rsa-sha256; cv=none; b=yIc5l6dM2tWkPlkdiILkcx2202fW7t9wsopAa00e3Mp2WlR+ImXsUMh5akIaIGNMdxLsb1 ZKJ3VJsxUDhnhiq0QfjSkcizgPv4Ye6RIs3ZySj7IBw5pbJrq8ZbrMQ6z0PABaexD40Yni mOUDEsx8GQ3j4nDsKNf0Wesw0MlbZxk= 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 1821F609FF; Sat, 25 Mar 2023 06:09:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D33E5C4339B; Sat, 25 Mar 2023 06:09:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679724561; bh=i1yTqNQJAv9j+hn+e6Je6fypgZ2V4l+VQdL1xKFdNt8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MMKlT72mhQ2PYx2QKkpW7HIAd5YEdN2UUzXyp5OPY+RVH81GJReBKAnOuYcH/8N4l WOHExhClj+i4GsKcl4zdXGJ/CprKpWL0bI5GpGBCxZyea7sKd2OIYtrtZiy90mx7iP 0qHiAZsnOgHMoi72FY7hEINbeJBOh3/EeS8V3nvmVCzKqUV6n6DBCHHXTLE1AWz3Dq 4GoZvWhAYCKBEXH9aJN/k8T3WtR2fD7HwWoTTYdoUdw7nbJQTNAsVr3z/1/BqnLANs D6+61HAH1iAjlONcqOhnWOyQ0JjCv+vYxkn4cq7lC62id+2QwXz/RT+SPOr7yLWLT2 2GhWUJOebp2pw== 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 v3 05/14] ia64: don't allow users to override ARCH_FORCE_MAX_ORDER Date: Sat, 25 Mar 2023 09:08:19 +0300 Message-Id: <20230325060828.2662773-6-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230325060828.2662773-1-rppt@kernel.org> References: <20230325060828.2662773-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: E7444A0015 X-Stat-Signature: wdz794wrpzhx6fug6x1jcr1w6sibbgsj X-Rspam-User: X-HE-Tag: 1679724562-225774 X-HE-Meta: U2FsdGVkX190GPFVVTYuO6MspFUPiJPvQxy6uSlGg4mrilZH6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Z9RYBbgoBr9rahI2h4VWPBgtmET9IwkiGzTSPuKMAZInimkLRP9k6R8gPFC72E628JSaRxhfOu7e6vdWOKC+jZuxOjydPse9iEmmnwbjIVyTMEzDF4pzLMHlvc48YvSVTT+3xLzuRTjPCUTT1TIpUGuTxpD/MK87jwi921tpidd0CYBn/QHIW8wQ2VUntMJgVq6CLNB+YpUSnDrw+H/5aVCl9+NjvzYdRT2B877m3+BKH09U/jU6rss5AkWh3qS83YJRarDEeXOXCYzY9oPDl9IFl8kVW3yh8GNd24q4F8mCVaY/5NrQXSi2sQpEo+5OZ6QffdCBSjjOsKq5olxyFqbOuIeT2xkaas+0/4Y= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Mike Rapoport (IBM)" 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. Acked-by: Kirill A. Shutemov Reviewed-by: Zi Yan Signed-off-by: Mike Rapoport (IBM) --- arch/ia64/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig index 0d2f41fa56ee..b61437cae162 100644 --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig @@ -202,8 +202,7 @@ config IA64_CYCLONE If you're unsure, answer N. config ARCH_FORCE_MAX_ORDER - int "MAX_ORDER (10 - 16)" if !HUGETLB_PAGE - range 10 16 if !HUGETLB_PAGE + int default "16" if HUGETLB_PAGE default "10" From patchwork Sat Mar 25 06:08: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: 13187583 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78A6FC6FD1F for ; Sat, 25 Mar 2023 06:09:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1927E6B007E; Sat, 25 Mar 2023 02:09:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1679D280001; Sat, 25 Mar 2023 02:09:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0563B900005; Sat, 25 Mar 2023 02:09:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id EC9EF6B007E for ; Sat, 25 Mar 2023 02:09:31 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id B71E4160BDE for ; Sat, 25 Mar 2023 06:09:31 +0000 (UTC) X-FDA: 80606393742.05.678501D Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf20.hostedemail.com (Postfix) with ESMTP id 1C5871C000D for ; Sat, 25 Mar 2023 06:09:29 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=SXe80G8K; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf20.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679724570; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=yB1dU/Q/zVPPgkQmDtkDaMAtKReC2RuNb8sZXm1KY2A=; b=VhL1mH1R+RjQGssxnzYZsVOqrz64REfQRq3syO/3kioyaKPKnhq8mXKKJUtpi/LX+CH/qQ sd2+6R7g33xNJazPk31o/kIoDSN7SfMIyJhT+3pURbxvHBhoC9AKPMa2wWKftmGEJ0ukdO A3IU9MdnGxIz4Lxi7lF1rUWsj3KEKC8= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=SXe80G8K; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf20.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679724570; a=rsa-sha256; cv=none; b=NdyrTeCElCzHmrQcmtsIhZsIl6JYHR10ZImQKn99w2FZaS1yA5Xa7djn31N4+lrjZsWx4A BovQYfz8laNx22LCf9+6zpfgKrjc/+z/zjI/GBsZ2C8MWvPATutXwOzpDzOfNw79uF+q1u 8+VnI8f/0kBWXpAmT+Ec7QhJZ/lIEKc= 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 4066260A05; Sat, 25 Mar 2023 06:09:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09077C433EF; Sat, 25 Mar 2023 06:09:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679724568; bh=hj7vE83HssbFqh7ceXf4d8PDT2ibdeflIODgz+GdCho=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SXe80G8K5kFrxjG4CHAB7R5j4HsXAkKtMPBiJa2K7KINUPXIi2Ttz6jVYYud+uQQu Sqk9QUfeacGt5ZgjN99doqzQVrC50C3YuLYQNcpirr0Ia10vnSKBcxUodmHH52wRjn YgaNoaLS/WzDEARfuG9phgmsGvIt528St1Sl/tGvK/A5j/ONumaKl9G/hpq8SZMPd4 tM55ZAcYgEJKLtK8ZxDvTirG9+OhUOJ2sGiPwsl3qPQhNSxborInoPqSn1guhYdrVl uogAfsplBhSxkmeDSpnuy73jioEoJrClCNpR9seAZETVm5kYNiqhYCXq7K8iz0f3D9 rJ2AfmxVuTIig== 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 v3 06/14] m68k: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Sat, 25 Mar 2023 09:08:20 +0300 Message-Id: <20230325060828.2662773-7-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230325060828.2662773-1-rppt@kernel.org> References: <20230325060828.2662773-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 1C5871C000D X-Stat-Signature: cmay4ci7b55pergqrtajxs4zxnx8s4rn X-HE-Tag: 1679724569-121320 X-HE-Meta: U2FsdGVkX195fcdFhLffiy7ttd/7U2y+kbxcCH7O3/AOBF8Ql4eOLKFQ8s1sSkTz+hplRAgVUIPip2JnQyWx4aLH30Brnp8pXeUirYUExoaCZUdCRmaWqz0rAdp4jb/VwslLFBRlGTdLezbh66mIGkWqTvLXn7pxzBuxmC4ZYCJfv/bLMdWZ5lPWnDiV89N63j+x/rnTFrQqKdveIQLMNGuFH/49mOCMixqqtwCNt+Lrmrw9C/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IiDfxA5ds37H62CzJ636uucEYnfaDoZHZc7ozgbJOQdJC4b5mGzosyiMELrtoh0q8BbSlcZurW3cfVFcDo7MEkChVynSdJykJAeacOgeoaH7qEoPHTiJm64saKByPOsohKcDQt4ksiKUzr5MzCAq9TA1EdJ/sBoFJcP0pQ2iaqn9haPMxvsKCxyCBCW2hNJAd7+V20UKaG0VG3kE0uuOhLd+yvveVh0E4B3kpU= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Mike Rapoport (IBM)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Acked-by: Kirill A. Shutemov Acked-by: Geert Uytterhoeven Reviewed-by: Zi Yan Signed-off-by: Mike Rapoport (IBM) --- 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 Sat Mar 25 06:08: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: 13187584 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E74DC6FD1F for ; Sat, 25 Mar 2023 06:09:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BF07D900005; Sat, 25 Mar 2023 02:09:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B9F9E6B0081; Sat, 25 Mar 2023 02:09:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A8F3A900005; Sat, 25 Mar 2023 02:09:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 9A3F66B0080 for ; Sat, 25 Mar 2023 02:09:38 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 6D11C140B82 for ; Sat, 25 Mar 2023 06:09:38 +0000 (UTC) X-FDA: 80606394036.03.0A1E7DE Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf01.hostedemail.com (Postfix) with ESMTP id BD21D40003 for ; Sat, 25 Mar 2023 06:09:36 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=LxmVn1HC; spf=pass (imf01.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679724576; a=rsa-sha256; cv=none; b=TG1tExdHaUEW2slbTUJzCCDc+qVNAAee1k5/DSjKhjXhjB2LbYD3PwQywToxuWkLA0hzMl cJXYFhW6aCAPfNuUCv7uhktS7ygYsmdjJvw40Fn7huMX/yEuKtx2LzubRBGOzuWbS26ofj fq9NulgENcduCl3jRbySna7Kg43gUtk= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=LxmVn1HC; spf=pass (imf01.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679724576; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=zDN4iHs5J7i/crsLgJSV34hFNkgU9D1rb1TAKCaS58M=; b=C1rP7W/qRxGxh6Uu576cMlaEU685ke7E1h5XetilmvdWSiIjkVAZDgC8Y+JueLw5OhmfqT lzo4ZeBRGXDNlWu+CrJsHoULTkHUqiZWxxXgvSI9+JW1QvhtBAdUXbbBaXp0qYAvNCMy8t F0dIA/P/qEt1O+M7GUtXOe444676LGw= 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 0397660A24; Sat, 25 Mar 2023 06:09:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30800C4339B; Sat, 25 Mar 2023 06:09:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679724575; bh=yR6IAiapT38a9pKwWm/3BXD9YgZHr7AJtUsHQMRkuU4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LxmVn1HCJEbXvrAnkY6ryWzYzrhalHzch1XCuulOtrmDilKsVPW4ImuBrxQjqcb+j 98d8o4/uRpSRqxoGXEVd9lOkIkDS/B3keMXiryl2Sl4JCLcZzigQGgbk25kxS0upSr y1W1ve+zypvHyHIJxcqtlQKjdvvB9zhgnUsOH0yRmAKb2fBehdJcPrNcKECa5bVMNq FqAWY5u5WRAcmvtZtWqW3+53g2BN25XHuv5kzd4OcEwYht6Is1FS9q8qywdIQWaoP1 F5tLdbGIEVipeBUA5HFWnqaZLGL9cElwm2srP+S2ZQ8NKYKk3MxoRfD5l6AErrX71B Bv6bijGbPOvKw== 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 v3 07/14] nios2: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Sat, 25 Mar 2023 09:08:21 +0300 Message-Id: <20230325060828.2662773-8-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230325060828.2662773-1-rppt@kernel.org> References: <20230325060828.2662773-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: BD21D40003 X-Rspamd-Server: rspam01 X-Stat-Signature: yy6bpx7rth8bgxxfgguc9w7xqaax1mto X-HE-Tag: 1679724576-302948 X-HE-Meta: U2FsdG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EbBCQclfoGAtvo/i3r/cPNc7nSlQg1n4aeNUXH1nFmZ3o7nvgWYH/bV2lwZMoOg2dWF6PomVqeA1T/0D8h1TRECwy0AGG0oahkBRiVN6SItORBlzRMp28vrS2pp9qEq1Bhq/6ma1yBvmND8O2gdlsJHpYl0sl3d7Y2htWtl00tDA/xbPNYLqJ6RYsmnEyJulUSvkoRRxOxDz1Q+N+DJyBYbooyGub0ZUDJ7zDJXLglGE8X/Kd8aWLBOUeTgFE0OXhrSdEjOfV4eV07miPd1GMdRSIyMzsMXsA+0nbqNYCQogzSjxTKLe0PJHZlr0VvQNz61ZmXXiu0ttrrm5qRXMjRdZXP9QQDPiDpxcL/ALKHS0oa6j8YK5VvI0YXX6zVYL1pkJZVPbJgUfbi3bTJ64= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Mike Rapoport (IBM)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Acked-by: Kirill A. Shutemov Reviewed-by: Zi Yan Signed-off-by: Mike Rapoport (IBM) --- arch/nios2/Kconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig index 89708b95978c..fcaa6bbda3fc 100644 --- a/arch/nios2/Kconfig +++ b/arch/nios2/Kconfig @@ -45,16 +45,18 @@ menu "Kernel features" source "kernel/Kconfig.hz" config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" + int "Order of maximal physically contiguous allocations" range 8 19 default "10" help - The kernel memory allocator divides physically contiguous memory - blocks into "zones", where each zone is a power of two number of - pages. This option selects the largest power of two that the kernel - keeps in the memory allocator. If you need to allocate very large - blocks of physically contiguous memory, then you may need to - increase this value. + The kernel page allocator limits the size of maximal physically + contiguous allocations. The limit is called MAX_ORDER and it + defines the maximal power of two of number of pages that can be + allocated as a single contiguous block. This option allows + overriding the default setting when ability to allocate very + large blocks of physically contiguous memory is required. + + Don't change if unsure. endmenu From patchwork Sat Mar 25 06:08: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: 13187585 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8BC0FC7619A for ; Sat, 25 Mar 2023 06:09:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0F2E36B0080; Sat, 25 Mar 2023 02:09:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0A38F6B0081; Sat, 25 Mar 2023 02:09:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EAD866B0082; Sat, 25 Mar 2023 02:09:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id DDBA26B0080 for ; Sat, 25 Mar 2023 02:09:47 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id A4F6F80412 for ; Sat, 25 Mar 2023 06:09:47 +0000 (UTC) X-FDA: 80606394414.23.C98C6D1 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf21.hostedemail.com (Postfix) with ESMTP id D35931C0013 for ; Sat, 25 Mar 2023 06:09:45 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=MD4Y3Lr7; spf=pass (imf21.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679724586; a=rsa-sha256; cv=none; b=AIssTWue0+xqlAF9Smw1VDZuWtGnMOg8nGRu+f39WtlZOxg4v6bl1iTXSjfAHMa0qDF14N ZaZiE+EmMLu2J+Q5SjCSPwVf+i/Fkw80bg3Gr+8l7scLzC+EXNyWevdNYo6pX/re9Zq7Iy oxT+F9+ErvmRqkQI8//xD0GMMOVriQY= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=MD4Y3Lr7; spf=pass (imf21.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679724586; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=43khqRcMS+NeYsT+qFGJbM92i1vYSFe48o0ga8eakjY=; b=XRawutmUsPyrsoabRTq6Oc5cL7SOGsEA5lKNuRCPH9Fc68SdLMGa3gmDeq7HP2ibVs7koO AbdYhLIZN6a+Py7ZdxOZ06a+P6kwksrNxEfnvExQZHkggoaqykzfugk+yU3nmdsLRTfa3z HVGrdi5iYkkPLc2XepTDPJW8GNviEuE= 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 5FBB7B82700; Sat, 25 Mar 2023 06:09:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59301C4339E; Sat, 25 Mar 2023 06:09:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679724583; bh=6bSLgS5oWLO2ugXNNWLZtVgkIZ/dfclb6HuVi9dltgc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MD4Y3Lr7O5i8W0DL1L83CZ+dmHRSmxfBpKFlVGb0DgT9OaiD36B+h63z9ihug64Xt +uP4BzJ6AZWugpLieIFtYGCbtxzw6ZyatiYC4fWW8CAwzL6pWjqqSsvcgnDMLYgF6v bPTpe3w1jgxF/xWLjlp6N73kl8sA9ufAw/OujMewVUttw3NIUjxzVegUw0ZCpPTgeo dKGv3LdM/EWzWYizCRfo+ODa9zq16J/BHrrkQPhBaeJ+cBdCf6CVhJZgWpETJHlt73 JWniOl/sAFMPuxry0QF1ZPtE0u23Wo0ckgfV3aFLg85tLaYbIGx5vI+JUWBvFc1ZsT 7Gx2p7TiWqDKA== 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 v3 08/14] nios2: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Sat, 25 Mar 2023 09:08:22 +0300 Message-Id: <20230325060828.2662773-9-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230325060828.2662773-1-rppt@kernel.org> References: <20230325060828.2662773-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: D35931C0013 X-Rspamd-Server: rspam01 X-Stat-Signature: onpmwyq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1DM5J1x8Bgga8w/l1fZ5doANO1g4HAmAuo+B9NykJzcpXQj4p0yZoKdB7ROaUG+dzNMqtAYDsCjmvc+7u8NaVnBUKDBGXSTkKhQyr604u9Jbj8eQsi8eNntWbE3F8xntLfn2lhlQVCBXDc9M/h2UA98qVQSGqILbptvfSxJg7vs5AwbH3JwhWyKdAf2zwa2rsoJs9ZvWuGJ8oG35FWwPxUvXlhbWQb7ZAOzgq0vack+k8CUTxEKumCMUhimW5RYlHsnGSmVKsWJcB0tY1ORcj/XINk7RCigxWQvH0ypiJg= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Mike Rapoport (IBM)" 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. Acked-by: Kirill A. Shutemov Reviewed-by: Zi Yan Signed-off-by: Mike Rapoport (IBM) --- arch/nios2/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig index fcaa6bbda3fc..e5936417d3cd 100644 --- a/arch/nios2/Kconfig +++ b/arch/nios2/Kconfig @@ -46,7 +46,6 @@ source "kernel/Kconfig.hz" config ARCH_FORCE_MAX_ORDER int "Order of maximal physically contiguous allocations" - range 8 19 default "10" help The kernel page allocator limits the size of maximal physically From patchwork Sat Mar 25 06:08: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: 13187586 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 619B0C6FD1C for ; Sat, 25 Mar 2023 06:09:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F23A4900004; Sat, 25 Mar 2023 02:09:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ED4C66B0082; Sat, 25 Mar 2023 02:09:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D9C46900004; Sat, 25 Mar 2023 02:09:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id CD7BA6B0081 for ; Sat, 25 Mar 2023 02:09:54 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id A6E9540B38 for ; Sat, 25 Mar 2023 06:09:54 +0000 (UTC) X-FDA: 80606394708.24.943789B Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf24.hostedemail.com (Postfix) with ESMTP id D167318000A for ; Sat, 25 Mar 2023 06:09:52 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=fuhyJhtH; spf=pass (imf24.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679724593; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=xfniRoT6xQR0xFz8lPUnecHpnNHjIL6VCkAY2fkwTLs=; b=ZL/24tUCKs/gD/fA7vgPJ1cAOHpA1dtO7LZnSer+JHsfvXhU18Q428NK9ndNpGJBn/qRWF Xqhp+CEP/vB62r4cTLSQcBaWPKq9/ClT3O8Pi6LsgOELuol1WtUC16OaMxIqCFktjBWUAm a2uRHN557ONne3y+ptU+qLeGzdE/eSw= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=fuhyJhtH; spf=pass (imf24.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679724593; a=rsa-sha256; cv=none; b=BlI0F1ZoZVJO1I6oXfSmMatRWLS32qrf7f3dD3Dx55UXjbV8UqJK1b14f1NoznlBAesZxP +zEgqhXuboaFE+Bm/h4U2/w/owLBQUdN4S9NXntpp8RqbzCdYDHDWC9cbuLA2MmWUNBhQN aj08pQ3ip3zuXu8YDSzg0WilnrDE2i8= 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 87CD7B82702; Sat, 25 Mar 2023 06:09:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83C6CC4339C; Sat, 25 Mar 2023 06:09:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679724590; bh=jGLEKz2iqm7cMnQrUVYJL5S3M5/KheRmpBTQnwRR4g4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fuhyJhtHzN+qD82eoHpuLDmXvrAMorZAr/P2o9L7nfyMZs+HIZtlbR/vnexnzPPjQ 12iIcEMI6k/xnEuBxza1yG4SvIvAheU/XCDxj9gy6c8UT7rYqfDWnjxYZiyjIXQAuy Cw34EEoqONyrKGAC98SVlOM7KjkkGBpNPwdVBNVWwyepw3TPFnhRUAq46TiDceB7E7 LeHj8+xXZvSL9hRooqfhuKq1rb6GdFsD/ILlZPFfH5bv7Ub5fU9N1un8RFGJx5BKUF kdIUdTKCsI2Rz3oDl6ivjSPmrOXjW1ME7NKfBDtabqTOC+CfbdMm1qLscuK7AucmqO 8QqzrxYbPBEtw== 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 v3 09/14] powerpc: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Sat, 25 Mar 2023 09:08:23 +0300 Message-Id: <20230325060828.2662773-10-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230325060828.2662773-1-rppt@kernel.org> References: <20230325060828.2662773-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: D167318000A X-Stat-Signature: 88kwimuofhtdb85hhwjsbmugu5ai47s6 X-HE-Tag: 1679724592-285493 X-HE-Meta: U2FsdGVkX18iiPziOQAC7WMQyDgpnWpQzJzcVIbLYTPU8U4ss+gSqD3xqkdghbqk9bkEMK8/3E6i7JBMVV21xPlFKNLfcFAU9xYPL0+Oga33NR/WUOdO0yukt/YbFlVj2AtvRmeCvDRz7ceFwodvPAdZHBaa9YC0mWUtYvZp/J1ith6N00diCwnDDZI7b/udSTYulK+P2ZZmkNNRTMzJ5XFa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hh/r3r+QWffouJOXS X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Mike Rapoport (IBM)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Acked-by: Kirill A. Shutemov Reviewed-by: Zi Yan Signed-off-by: Mike Rapoport (IBM) --- arch/powerpc/Kconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 24d56536b269..c0095bf795ca 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -896,7 +896,7 @@ config DATA_SHIFT 8M pages will be pinned. config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" + int "Order of maximal physically contiguous allocations" range 7 8 if PPC64 && PPC_64K_PAGES default "8" if PPC64 && PPC_64K_PAGES range 12 12 if PPC64 && !PPC_64K_PAGES @@ -910,17 +910,19 @@ config ARCH_FORCE_MAX_ORDER range 10 63 default "10" help - The kernel memory allocator divides physically contiguous memory - blocks into "zones", where each zone is a power of two number of - pages. This option selects the largest power of two that the kernel - keeps in the memory allocator. If you need to allocate very large - blocks of physically contiguous memory, then you may need to - increase this value. + The kernel page allocator limits the size of maximal physically + contiguous allocations. The limit is called MAX_ORDER and it + defines the maximal power of two of number of pages that can be + allocated as a single contiguous block. This option allows + overriding the default setting when ability to allocate very + large blocks of physically contiguous memory is required. The page size is not necessarily 4KB. For example, on 64-bit systems, 64KB pages can be enabled via CONFIG_PPC_64K_PAGES. Keep this in mind when choosing a value for this option. + Don't change if unsure. + config PPC_SUBPAGE_PROT bool "Support setting protections for 4k subpages (subpage_prot syscall)" default n From patchwork Sat Mar 25 06:08: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: 13187587 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 863FCC6FD1C for ; Sat, 25 Mar 2023 06:10:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 22B0F6B0075; Sat, 25 Mar 2023 02:10:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1DD5A6B0081; Sat, 25 Mar 2023 02:10:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0A3E16B0082; Sat, 25 Mar 2023 02:10:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id F13CB6B0075 for ; Sat, 25 Mar 2023 02:10:00 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id C247EABAFB for ; Sat, 25 Mar 2023 06:10:00 +0000 (UTC) X-FDA: 80606394960.23.EA86963 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf09.hostedemail.com (Postfix) with ESMTP id 13AD3140002 for ; Sat, 25 Mar 2023 06:09:58 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=dlZIqcoy; spf=pass (imf09.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679724599; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Y1Znd1Vdm5m00cDvVDz2s2xQKs+dNqdIFRmpmLLxZUw=; b=Lyv9Y3lldvb/LtNSNqJi45VCAGFwm7vekOgsPyfW1F5Wc8g5QnIada7TRYUN9F0P27+ipW CfIWj46oNUVYHwgADCmrir/Lvz98o5NkImmQPnayl8DNyy4l7zQGkZPiS+kbdb4ttjjR6B 4mgokMdeXLz1rpynHmRuKI60B1PWaFY= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=dlZIqcoy; spf=pass (imf09.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679724599; a=rsa-sha256; cv=none; b=utH6A++IbUUI2DTfdRZEn+z9DmQ8LD0Eqrh4Fxm3WEz3/05k1A0aW8ehaYXnQEsMj/cc05 CoJBNxyaxgOTXpjLXnPhZi28F05gQxAZw6Mai8yBYbq9IPURPon4PNuOwmQTJvqY9bvX8M 7BRoRwRnZ9k60Ul8NcfdHsfiyIBJkS0= 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 30E7260A4E; Sat, 25 Mar 2023 06:09:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB2DCC433AC; Sat, 25 Mar 2023 06:09:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679724597; bh=o3v/f0seGdAieP7M24caD3rUrneRSNKMDfhKZvhr+c4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dlZIqcoyznkL1BKobFMvbQv37dL3Y5n/pYQmixa6V5wHpLEZoZh7mKIP/w+WaDln3 7F9U/KGc4cypsnTvMy9oSSfrgGALo8ZRsy0CCO2wxsn95KZUH66WMSYPrH+A1vRo8P m5DIfRaoJFsfaXsZDqqnvVk3vN8n6JycwxsVP5EnCJ1i3wogM96inqe6yhZ2OVDVv9 F03Fni6dt1PZR+WBmmBLf0bzz/xS7McoVuWqshVPeq2wPkPrNFx8Ge1eAY26HJlYt7 OejyqoLf5fINt0J1L8kMmt6aLbRSB4HCcXQtM1HnqsNGL1FZ8n1jBcAfRC50m+1miH orub55FmXGAyA== 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 v3 10/14] powerpc: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Sat, 25 Mar 2023 09:08:24 +0300 Message-Id: <20230325060828.2662773-11-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230325060828.2662773-1-rppt@kernel.org> References: <20230325060828.2662773-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam03 X-Stat-Signature: 8gjy18mg3ory8n1jwm9gjnmnzz3e5ekh X-Rspamd-Queue-Id: 13AD3140002 X-HE-Tag: 1679724598-139327 X-HE-Meta: U2FsdGVkX1+/1e5y1dmHniSt4PBeSCbOHyvnrxxpAC9QUULEi8JOP/yYf+5BB4NtsoJ8QSVjw5p4SeMioittuzkM5PZ4pWrBRX98xtsaxUEhORdlDTb0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1S/sy2qyhe7C+xidndQQ2AHD7lxAL4H/7fPE1vMRfqmo9sRAP82ieUXmgWViTiuvxTFbLGnuGeprtxAW280CCYsg5rtq2UszKej6O8Wd8UUQ5C4F6CmUMwJqumwTDRIAMSnXH+1TJzIXelg5jUXEo6Lnat/RTUm4NvKgMVIpBB+F7DEkzMQncucFqPTizMMcew/9jxGkrmSBisIFK6807b9IHWyMcf497EsOzXo3MDi3K8RivhdMZ2GoORcI5xaK5Y/WJjWogNTnRcHSp0Gmqu8XnbzSTOSg= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Mike Rapoport (IBM)" 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. Acked-by: Kirill A. Shutemov Reviewed-by: Zi Yan Signed-off-by: Mike Rapoport (IBM) --- arch/powerpc/Kconfig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index c0095bf795ca..419be4a71004 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -897,17 +897,11 @@ config DATA_SHIFT config ARCH_FORCE_MAX_ORDER int "Order of maximal physically contiguous allocations" - range 7 8 if PPC64 && PPC_64K_PAGES default "8" if PPC64 && PPC_64K_PAGES - range 12 12 if PPC64 && !PPC_64K_PAGES default "12" if PPC64 && !PPC_64K_PAGES - range 8 63 if PPC32 && PPC_16K_PAGES default "8" if PPC32 && PPC_16K_PAGES - range 6 63 if PPC32 && PPC_64K_PAGES default "6" if PPC32 && PPC_64K_PAGES - range 4 63 if PPC32 && PPC_256K_PAGES default "4" if PPC32 && PPC_256K_PAGES - range 10 63 default "10" help The kernel page allocator limits the size of maximal physically From patchwork Sat Mar 25 06:08: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: 13187588 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AE99C77B60 for ; Sat, 25 Mar 2023 06:10:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3DA256B0081; Sat, 25 Mar 2023 02:10:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 38A046B0082; Sat, 25 Mar 2023 02:10:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 25130280001; Sat, 25 Mar 2023 02:10:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 181126B0081 for ; Sat, 25 Mar 2023 02:10:08 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id A6205120901 for ; Sat, 25 Mar 2023 06:10:07 +0000 (UTC) X-FDA: 80606395254.12.2CF611E Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf08.hostedemail.com (Postfix) with ESMTP id DB5B9160009 for ; Sat, 25 Mar 2023 06:10:05 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="NhWIQf/4"; spf=pass (imf08.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679724606; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=mNhKRRbyLF5P3029meSnGpXx8IgTnYeok3lKIpJghCk=; b=3Gw7CK5zBYpOjhhRgUsL/JOF9G2adDTT9qWCgY5V7SLUEGAm3pJAKTIimZqR4K7vV97kgW uoqgF8WSGplKY1dIPmJhRH1SQYoDFe6mHlKNNbo0PK3A1EeG4IwS9mlj6yW5A5tdGrLlsy 2T7WnC6mdHgiDGdjaqHYIvZ3CD89CHc= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="NhWIQf/4"; spf=pass (imf08.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679724606; a=rsa-sha256; cv=none; b=BYE3tnjoAfZes5ZD8K6OlkaMbcgxrZv3t03TJ71vaLTVjmJ1LUdG/Fa5OuSSGY4PfMPrv7 MCjrmVj+vdvQJJsu9TysHV+OoIFHg+RzE0y2V6EsA2oBaniZuDYBQSO/f79pzLuLn5obkN SIbDXQPr8Rq+BsjmX32mXb7cDCDDWdg= 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 1B18F60A0C; Sat, 25 Mar 2023 06:10:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D45A0C433A7; Sat, 25 Mar 2023 06:09:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679724604; bh=Q4kzp7hmJKAwhCDFhRPUCQkNxwXkbNHUiNCRyHZVRo4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NhWIQf/4CSlIfbVurDZyUb06nGU3J/0m5t5Q7paTe2sA4FJ4ExnWqS7+owSCidLIV xjF4Hui1ktMhyFjKRdWZz+zzit5NFzt5X9svx3qCkHz3yuhUcxQd5J6Fi51KTKe6YY W6Ta+3a0kjpl86l7bSQWaOgVIQHX1l0ORB2R6wDGkRpUKWhtIdavVLu6WUsuuThUFC CYGII+/RR+PTXKmCiR/N2d6kJjrSeDNgNhjt4nOPpvRZeMqm/m3+tm+/bwVjoQa5/z CjIVu9EE6qYeTXhqF5BEwB5udvuVW0dYoEUnybQbj1jeBPq+5I1Kvx4hb/eGW4YrmY mvsljINWlR8TA== 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 v3 11/14] sh: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Sat, 25 Mar 2023 09:08:25 +0300 Message-Id: <20230325060828.2662773-12-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230325060828.2662773-1-rppt@kernel.org> References: <20230325060828.2662773-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: DB5B9160009 X-Rspam-User: X-Stat-Signature: gtog9absf53ajjx31zx1smermbqf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O4bctXBpF59iIVSdMZ+rmnfF/tW3S/8sM0sNsThADdxZmgLgjodLFMhviuWkB5dHxhU9yEK8ZA39yyBL7KnialIQAe1uKb1hn8rjMdeIFx7VsAv3fCd/lwKE/tjM33XRQruhUcA5uxBVWh5B7n5NLvVOYFawdekT8vCwmHSHtgnfbGdOYN2HX9wYpX4XFRPzoHvzXU01wHFWSahiwI0ShgSA/D7LQj0eyyytBVyxGYHIf/pPnWSjNO+BukpRg/eJbA+QJk39AbccOzbnXFjFdvgBgMWrVTJrXs9RbDweyuBQ8GhrKkHKdeB19BzKNXWruq3R6KzGO28bmjLl6KPGZUH0KS4+vknHSjA+hpF1yDI6Kd8Ngbn26CnSLJ7EQqI5AwYVQm1BX4jUUj6XuXLHqnqgZTlh+eiArfl+br6r5OtxqOGEd4EdXnQmv4MmOR3z+qA= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Mike Rapoport (IBM)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Acked-by: Kirill A. Shutemov Reviewed-by: Zi Yan Signed-off-by: Mike Rapoport (IBM) --- arch/sh/mm/Kconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index 40271090bd7d..238b2772751e 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig @@ -19,7 +19,7 @@ config PAGE_OFFSET default "0x00000000" config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" + int "Order of maximal physically contiguous allocations" range 8 63 if PAGE_SIZE_16KB default "8" if PAGE_SIZE_16KB range 6 63 if PAGE_SIZE_64KB @@ -28,16 +28,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 Sat Mar 25 06:08: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: 13187589 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5760BC6FD1F for ; Sat, 25 Mar 2023 06:10:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ED5CB6B007D; Sat, 25 Mar 2023 02:10:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E85C86B0083; Sat, 25 Mar 2023 02:10:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D7F536B007D; Sat, 25 Mar 2023 02:10:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id CA53D6B007D for ; Sat, 25 Mar 2023 02:10:14 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id AD292140B80 for ; Sat, 25 Mar 2023 06:10:14 +0000 (UTC) X-FDA: 80606395548.30.278A87A Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf24.hostedemail.com (Postfix) with ESMTP id 03A13180011 for ; Sat, 25 Mar 2023 06:10:12 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="Q/Q2rpIW"; spf=pass (imf24.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679724613; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=bPUdDvduGYYrpS4i9Fea2aJJimehqViA9WLL6ik3Sbo=; b=ROJ/0E5IVcfCduwUrhatUN5CtHQF8FzjX7+Qt+pDRz07FXv83fAa49xirzPNtNLlFIGzT/ qJ2HLYMIw9XlipVE7ZA52Z9w5KOqM6MHZTXdBjK55q9EX+8ZY2jadmiVwmcSoj5L1GdCQi qiKS9W4BM5DOHOnICBA29VWLWgeTQyc= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="Q/Q2rpIW"; spf=pass (imf24.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679724613; a=rsa-sha256; cv=none; b=QahEW6ZVWVFTY/ArMb7gKWPkJqxvKl2iXmlfuPJPmle47m8rshhD1nzK0/auVhVk/Gqsn8 QJFTzHqL5G7aBXbfqF663oyyjUfFhEJEkftC2eyKzuuGs9iHQF+HWejTxsoCNJAqiXwUtc 9MPgnSh/MIJzlgRchiC73tuPxD5qJ7E= 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 40516601D7; Sat, 25 Mar 2023 06:10:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B036C433A4; Sat, 25 Mar 2023 06:10:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679724611; bh=n18lZ0S+0CZ2uvlkMluZxgCv0qlCJBiO8N8JH7KoZ1g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q/Q2rpIWZ2cFYZzyaItyJiN5f6EP/GSImQhED2G1vH7rlwhPXyJEMpQxGKZ4uZQCC qitWtuJpknN31DG18FRDt/12qs/q7U50AzyQBPL7xtX81WEuD5O9mkCSWTye2JsQ5b o2oehB+7FaaHIEILJpt4cpuWMCavNkq2xs7TyeSewFL4tUWGajA9JtHwOYUvb+VUZH CGC5F+pZ10eARFG7ZR+xt2zgWBT6Wr0f9MktXpfvvQtUeEw79cK5v9aCS4M1Bfvv6/ UK1YnbIXGDs1gGS899x7h0os6Pe6lyyOXAXEEmys4HQs9lh4YKu8GQ3pCQP2W+FIrQ gsw3SBBnzyEhQ== 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 v3 12/14] sh: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Sat, 25 Mar 2023 09:08:26 +0300 Message-Id: <20230325060828.2662773-13-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230325060828.2662773-1-rppt@kernel.org> References: <20230325060828.2662773-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 03A13180011 X-Stat-Signature: qqkc5bcd3n3s6eyzj4e4xji45deqeq5k X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1679724612-894872 X-HE-Meta: U2FsdGVkX19ZvioFn+KZ4PpQt43JLoHVm8ZCoqDvMhbvPpjk9HAs9y8ruvFoawL+fCkYWIvJTNURfB1TJoCNBztPmlHkLzIIdjlLp2t2+pG+jm4ysk3bLwRRxinZalWNLIUW/vf/aE045VlYo4OM4npZPce24gVhsQmX336mNjIvlHwL/H45MFwFwTex5Y5YCR4gZ2wUrtwWvg7uxTsU5QuQFxb9xtc/LbIlVBihRy6B0XfQrjDQzA53HhEihpb1KNz95YmfjLqTSstII3ayqviTR51G//mX9JYY0ipL+L7466uEZ+Ky2DflZreegMelGgVvcHs9Ocqcm+AXxJ7gAB3L3sDn9n3VBvVrSMM5W0hWObLd1LFYwLcY4RuTz2S0XsQojylrjYeGYWz2KpAjpK3SJpqSMLPuI5C0QZj/18m4F3Ovxb+Wia8GEP5SsCdQjcpmsS4IEuXBqztL7IddZHXA7GTzM2B+4m0ROuaPdfbYYw3iWq81+E3GgW1Hy6kdx5CY7sUvfdNuAJ3TF6TB4sxlIsfpzdZqtHTT9eBIn1Ra/TBR7+oP4MNNxov6cah1gyJYAx4yXFoPkZkyJ3/Q4zZeFDdWx7rm9G+XC8sVnv2iSKIWHiZoAmpS1FDE/KEfWIFnOiGOMPuup3iM8GzKJ2Gy7RWuQLjqlMY+NYXX6p3LTaTaNt3AuTwOGXyHSrAZEhiQDhAat75a3Hho+/h0HFWHFVaA8wlp2cweLu1BBQoNZrT/S1BjrCyZ90Lu1BfBlh4TeeApMgYOtzbvH+fT4ZNqqvXYtrrZBv5MQCqwX4b+HLZh7ElSTzsdNs4zx9ChVf08Uq/DV/xdjqL187Uvr1uYh8XFZSrbicS9vrPwEPq6rtB7A2emrxQGLgE9ZMMTu7VjpSsVErf5zesj81k541KHG3EhAQtCWEmRK4M8Eel6+dNLE+HbsCwvy3gG0qIG3GO94/2etx70nz+pFGb eGdWWEMA 8mHeT1VrIZptGlMMeHCFrG3qDEhYWqEeG3pl0ZMYACgExyJq9HTU6Lb3lQ4jFRfyrDV9pHY5vb9Ek4s4+486ja+hhCmS28Fi26INv51voUKhsTG7uLGwB90LHBEwy7EGQh7LRdnbdoaRq1arNvhLmFeKRSzxd3oLkWA40rH9DWYuOiw4sz7ht/jRQdu14+46Bp7kTTg6+gjfwGXSXKGk5tJajUuB1T6MpszUTsGliB+wWcskMD7j4vFBBgTrMtIb6z6pCFOysbd/LAd48K44y/bLWYZjoGWCxaCEWoyGki7Vc+KcmWEp9Ekd7Ru7Xbb4KoiO+ZOkm9XTFHpdI56hSUpvOrZHp+SnmKmZ8YjI8w7hk/MvBdv55uiF3HEbWGESUtLosixi/5aPqan9JYpRqUqYzaqajqf2eFbBaelOpduLbvUFrWvZaGNnUMLTV5I93DwG8K9pzcG+0jfGBuojZToIkzq2JMDu74qaPe25us2ROzq0= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Mike Rapoport (IBM)" 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. Acked-by: Kirill A. Shutemov Reviewed-by: Zi Yan Signed-off-by: Mike Rapoport (IBM) --- arch/sh/mm/Kconfig | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index 238b2772751e..511c17aede4a 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig @@ -20,11 +20,8 @@ config PAGE_OFFSET config ARCH_FORCE_MAX_ORDER int "Order of maximal physically contiguous allocations" - range 8 63 if PAGE_SIZE_16KB 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 Sat Mar 25 06:08: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: 13187590 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DEDD5C6FD1F for ; Sat, 25 Mar 2023 06:10:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 820466B0085; Sat, 25 Mar 2023 02:10:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7CEA96B0081; Sat, 25 Mar 2023 02:10:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 66FCD6B0088; Sat, 25 Mar 2023 02:10:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 587336B0085 for ; Sat, 25 Mar 2023 02:10:24 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id CA66B1A0B87 for ; Sat, 25 Mar 2023 06:10:21 +0000 (UTC) X-FDA: 80606395842.16.68E3174 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf26.hostedemail.com (Postfix) with ESMTP id 2E89B140003 for ; Sat, 25 Mar 2023 06:10:20 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=cQswqzYq; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf26.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679724620; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=76QSWS/H5FLzOw118xPU0g14YOGfD7fwmpyxkY6QW1k=; b=p+J+GkVxoTqV58cm2OtvdSu21BnDKeBJLJCFuhvV9mpRkTLpFZ7EvWbl/4uWIJKXm+0KFY 05LbWgkE0PpxZLvBHLVqFMOMdVHaTIjjVksTsuRhjxmOAwHN2VDjCS9zpjOCyDTVOagiAD kZqm4+XfgUHU5izNOPhSaQ4dBD/j0gU= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=cQswqzYq; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf26.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679724620; a=rsa-sha256; cv=none; b=EzbxhC1I90bG6wDlu5HDipDdssnkefX6LEzxMvYC/4ZPvUz6ZAamT96MfGIrWhAjqGcA2O Mcsz0ENrD1o+IfYnd4ocv6CVJYCPu3TxgsJJfOPjgqJSoTzVXEouWEM089p8CDfwEIOk8P 9vRkF4AyY1oAie0qCEI1RYd99tBMZZ0= 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 68E7A60907; Sat, 25 Mar 2023 06:10:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34961C433D2; Sat, 25 Mar 2023 06:10:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679724618; bh=4Z2NWXBqkUcDOlecQgNIdEoHt3g4ySgJpa9xjP+8bWw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cQswqzYqOHsod0pqf6YFh66X/QrCAVr2YAwri/xOv3fttReIoM0QmyS0CNc7O8lfw iB9IiXk9UZF2X7g4y03lD7rt8tiPSQdbx5vzhgyUTdNKn7t6zEZLPPpuy8u+jYk1nB hreHJFycD54YdiEhqQ0HBvllQcOEdNGWjMTQ5lqG4aqa8u1V5zh0ltg8TIX82CILYd KQbZsSzZ3Xm5Sb7cQZr7wWsFV8B62+pKIVwZu8KuYKbvE4cZWx4VrFjgdd89Ru6LQi UFM2jB+uXudse6JjEI6YlpzMkLOP6KzIGAnNOl9YGWIzctd70MNq5ZFVUi6oq06Lts mKW75qDo8MgkQ== 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 v3 13/14] sparc: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Sat, 25 Mar 2023 09:08:27 +0300 Message-Id: <20230325060828.2662773-14-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230325060828.2662773-1-rppt@kernel.org> References: <20230325060828.2662773-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 2E89B140003 X-Stat-Signature: z1umpjydebztrdjx7ej6doa74muqrih8 X-HE-Tag: 1679724620-808948 X-HE-Meta: U2FsdGVkX18srZQtBSOoyisMkjx89PKtI3axbwM3OTzZazRZTJsXmCASo//9snzBE1zt4fbY8iVC2J2oni7VdPF0LbZusHZYHpqUWM5ox1VLxhsGn0di3jPgOaexDNPf8IJLf74FMWBpyNMqhSDDxJV8RlF7ogtmLJCeSOTLvhOZoje+kJIHBpyDDeRRAUsOevy4g4NeQEt62Tw6J/9GyNjJBaLWoChnFRENUMvhH0R9ox+5rdZwrPvCUgYBCbWz8uvYqsp9OgZe641yTdUeQWW3DRYaHeP2Ym8+RWeox/IfxTpry2qSqMn368gAZiQOH1pUdkWqgvktJkZ9alFnvgQN41mOpZUxLJCPFAaR44A4ocfEPGCqTv4R/L9PfM8znFLAyKBwlj1YQtGOXl9+dub1MI73tz5q5TsMvJa/2MFDoxHMvwZ5e4mMjQ0lX/5YOc7EqG5UYI9JP2kP3X6FaPAENOrTiqme6SAqpyQ1oF8zg5bPuB67lAnD+8opCCKv1UBXCZhpCHe93hpjNzSgnlhyHDwTQKmmy/adPvi2q+VbZoety7OmgTO2vouD7Gi5BPfNoWE81IpZYBNZWNZ0OGxICxI4aswCMOH86LcF8qF6xgZaD/TAvpl1wPYIsLEeh/K3IoD/l2W9OqxQjjaqasYOrwafd2UYk3cF8TH62+zg3fc89uUW09lAY182FTNtEGaKy7RgCutRPmR9h/wLkWxWT8xUuolxh+Sok+rkoO7YOB/EE+7AN7HBAmsaBOpXpxCFL5XQZpDlDtqTFC38cuDoSzXJVOxQ7qq5+MViPmi8HZXe1OKsW0cxKOy1PEqgZBQ4gcvqdRfC5UE6tbWQ7ijwvbzOrn5CshU9sJp04QwW2nvV6/api+/L2eELGXzTM8aJyVKPGeizARLPI14OEaR0D+DCTfECMd6J2t6Kc7Qq2MFKP7YBmK5Td4dnPPF9RwzywlrtDkexdgydFKq qMsHWCB7 g0k+ZMliQckdbdGIbEAmJ04fqKdDlw9bBJ3UQsJ52ZvmyKvbreTvIXP9eWOvbkOqioPsXtXfFjqHiS5ts8cR6C8GXvgkBFToreHqoV2WDvPBbfCnBzEMvA07EUCWX2NSMmo4u4GpHwzcYh9yoZeclZB3uDUUlXuDO2AzcFejgqmAEItpUtpfLKuKxi3/mVdz72NMWl7gzfrdoHt2GvP51ml4B/bbU4y5mtrBx11sAtDsd7uIyvvPvS43cANnard19BolzNlJe7QMC5B7BADhhqYyuJ1WxEgfooy7YK1JU2w54DK0qkdnSF9Rm6w6pylbCTUhyMMMAvrlMp2TvqEAP8SOi9afcusqmFuLgby7cKlIr05E+ILQmlB5pBp5plyWmG3dKcJM6dBBm+e/UUG19GSyt6dJEgaRYt7Sfj3z3ib/zsjPsP9EXceMCzr4mREB8irHyM94R7kzhu3AAzbODfNXL1k1Rre6TAxAu5wXypMLNpO4= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Mike Rapoport (IBM)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Acked-by: Kirill A. Shutemov Reviewed-by: Zi Yan Signed-off-by: Mike Rapoport (IBM) --- arch/sparc/Kconfig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index e3242bf5a8df..959e43a1aaca 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -270,15 +270,17 @@ config ARCH_SPARSEMEM_DEFAULT def_bool y if SPARC64 config ARCH_FORCE_MAX_ORDER - int "Maximum zone order" + int "Order of maximal physically contiguous allocations" default "12" help - The kernel memory allocator divides physically contiguous memory - blocks into "zones", where each zone is a power of two number of - pages. This option selects the largest power of two that the kernel - keeps in the memory allocator. If you need to allocate very large - blocks of physically contiguous memory, then you may need to - increase this value. + The kernel page allocator limits the size of maximal physically + contiguous allocations. The limit is called MAX_ORDER and it + defines the maximal power of two of number of pages that can be + allocated as a single contiguous block. This option allows + overriding the default setting when ability to allocate very + large blocks of physically contiguous memory is required. + + Don't change if unsure. if SPARC64 || COMPILE_TEST source "kernel/power/Kconfig" From patchwork Sat Mar 25 06:08: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: 13187591 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58F27C6FD1C for ; Sat, 25 Mar 2023 06:10:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EFC2F6B0081; Sat, 25 Mar 2023 02:10:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EAC91900002; Sat, 25 Mar 2023 02:10:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D75226B0088; Sat, 25 Mar 2023 02:10:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id C9B0B6B0081 for ; Sat, 25 Mar 2023 02:10:28 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id A1E6480BA8 for ; Sat, 25 Mar 2023 06:10:28 +0000 (UTC) X-FDA: 80606396136.04.69C57BF Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf06.hostedemail.com (Postfix) with ESMTP id 01BA7180005 for ; Sat, 25 Mar 2023 06:10:26 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=XBUYd1wu; spf=pass (imf06.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679724627; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=LBPYvwIdcP58K1MlidkM6fUOXznC7Vq65cJSinR7cXc=; b=gyv6yQMAck+lYD2bLupbYdmy9I4byfdWpF/4mjXsXse17L9EdukqVAL7xUqtFCHYePmorz +NpC2zlpk40iclOxP4t3dwSfzvzcT9NaLv01JOkgnPaVyEbTcD10dvf/zWvVhnugAtky5p 5U2HHVZDjj0LAYsgITgWKkVBeG0fLiU= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=XBUYd1wu; spf=pass (imf06.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679724627; a=rsa-sha256; cv=none; b=Z/pdCqAwHJL/V5v+3gJ3VSMBalUVkY06gSMPn4xjWQLSti22ubK9OQJnzLK6vNxYhUTbTA hzz6Ls/WkgnYKcdq38d4+pnTBx66RD35LzckGx1HSfPpRqdMuu9SH5CILyqJvYiCVxWYgN TNH6KZa+4GbyqQOg07+SnbztU+/SN8E= 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 37EEA60A55; Sat, 25 Mar 2023 06:10:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C424C4339C; Sat, 25 Mar 2023 06:10:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679724626; bh=hCVCDYSIUr+qW4UF3Pu0/8IeYl4ydz564TXJ6RScpmY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XBUYd1wuZ6QOfdcmSr87gRlsMsVV6FBPdIqQHrC3pqAHxOY2DIdF+XDvKoUtLcdnY YymUQInh+UCF4ZGCw4T6Y+Z/IhTvXn9NYU03GXLWRksPUoLzP+eevHP2twu9nwF/kt eOcwijKtLsxk2+/F5k34QVqplP6njWicYTWEb7ErMx3III6zx8dW9FO1/oDMujzPni vjd32oMZKSpAJmWoMmw0HoPy9firOqMSOjpEWDYToYK+vpkdSTUHG7ZtqaX8c39a/T fOjqka2MCZIjCqrg05vs+aCtbzGpK80SATMzTT0ifOqgqyrhOm5UuCOO/e80toO7Z/ HznUBqM4Me+zw== 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 v3 14/14] xtensa: reword ARCH_FORCE_MAX_ORDER prompt and help text Date: Sat, 25 Mar 2023 09:08:28 +0300 Message-Id: <20230325060828.2662773-15-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230325060828.2662773-1-rppt@kernel.org> References: <20230325060828.2662773-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 01BA7180005 X-Rspam-User: X-Stat-Signature: 54sr8r6ah88wxc4puwh4t87etghh9y4x X-HE-Tag: 1679724626-447067 X-HE-Meta: U2FsdGVkX18EPGwrmL9BvfRJJDZIQaDwajLqXlC3rS/FXgk4FHC53FF/RopTVmZB7ft+LISCcSCjS2AownASXLPgQO+x7nHurNnqA9adN2hxBWQ/63jkZdogAyWexfH178UKlf6xm7fWTB3FCZZXD9Il2xoBwaLMkmtyYNQBkFqRs8DHbbh/uxCh45GB0NyditqCxJX2BHvNeaA92z9NbF4lgAZASPBkIIjbD/rBFSP3WO8rl4zbJZ17E3GDRduEUZXImAnFw3OvvOdl8uYoQxnRbiOKPSgWABfDpe7VLthzTYzNRrsmZl1VGnujROmftJUbI34P53nJUEUvKS1hRAtKeJCjM11v6kr5gYnQoidToXaHXEtOVufn/Qbol22gfRMVFFhLDCVwHx8ISS97voOpYgFKF/yTklDMrCGs8q9p+NNmO54rsjcRBHEiip6cpJoeYG8FlnJbcsjvUrsVAT70IHYOw+7IpppIwhLBF5nEzrj8TDWIvSob2qikxXWdcWR2se1eNuC9n+mjK1hOe+8gQ0dQYWBJl6CYNkgquin1PatyI0apauyR4wXDRy56U7jY5DIgOzjg9qOhOe4FkjH7Fpr2quwnbA+KU9JmSBwUAsQsa5Xyg3N2GSK0z+hw0+jQeyYDrqWjbvn6KuTYpfqfRrjqlzEeORAHncUzxnHaQK1HYotJVFnatUXcl6Nxvfb3gzdCQLxYiUSSDFR4BFEio+L1+fb1IpwpqM03KkgvzfgdF8yHF/FZZmyxzPi3tAFD9smPSTM8yu6LHgmfV+rQ9yHqYeumqsr244NAbfpjR7eOtzK4L67yaV+01BCDxQmGdExu5Ouszduz8c/lRe4P3rn7c4VnW9whB2YwzHtKoIKZWq1AsSs8FWqIPtCWM33Ri/4FR/2fZJMWrsZapqXz7D5Ec2jwliDlBhIazZSCZE+02PGKXlL/RvWWk2l7gUKS6yCN1ljWPqyUq8X BojaWFv9 X0M4lH96cQVIm1zcXdnjwrHNkUfvIoXDwJtPJTxr1Tp2PjHYLofMOq1eKacL+zjqFLc+lTHbnM7kVPZqubvDYHeOF5m5NeI/1Qb9IG9htHMZgvc186hIsNxD4zZ47SuAUgmaSM1BiUMcF510nSv/QAfxAFrpKb6CKYXyQ2OP6IB0WKaorf5+DqdYEXr83brYXwIqg6G+GUFNd4xu0YWKHZeYK/w+o0hOFRfTgqHug4pN8fbKJnCZ5hn1f1x2pSvVwUL6cKoTIax5zjkNwhMOhtpMPcAGKA5T+PhyZZge+JF1GQScXXeIyBhguJ8gd4IgJov1IzW3FZPS56WVA4scgOGmKiP1AsO+jtgvjYYIm2wM8zB2F+Wi2IgZUn3afNH+pXNSYOy626wdcbMzWcey8jWJXB7t2CON5g8HkuzEolZmXsuISZl3W7zL12MZV//WD6JBK+7z6vLkW85sNNnV0Ju7aqi/2WIbNMACwVrwM67xiN34woRs3vjOk4me8W1E3Maz1 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Mike Rapoport (IBM)" The prompt and help text of ARCH_FORCE_MAX_ORDER are not even close to describe this configuration option. Update both to actually describe what this option does. Reviewed-by: Max Filippov Acked-by: Kirill A. Shutemov Reviewed-by: Zi Yan Signed-off-by: Mike Rapoport (IBM) --- 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