From patchwork Fri Mar 24 05:22:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13186425 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 1FE29C76195 for ; Fri, 24 Mar 2023 05:24:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AD1826B0088; Fri, 24 Mar 2023 01:24:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A81CD6B0089; Fri, 24 Mar 2023 01:24:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9499A6B008A; Fri, 24 Mar 2023 01:24:07 -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 86E946B0088 for ; Fri, 24 Mar 2023 01:24:07 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 5802880863 for ; Fri, 24 Mar 2023 05:24:07 +0000 (UTC) X-FDA: 80602650534.30.7B15A22 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf24.hostedemail.com (Postfix) with ESMTP id BFBB918000D for ; Fri, 24 Mar 2023 05:24:05 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=fOPPdB7W; 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=1679635445; a=rsa-sha256; cv=none; b=2+vPlsi06sEPsgFQTpOWat8mGt7gQY4jXfW4xBx1U4XkD7LxctxRlmc0WhD58v3Wn0j05n qNgCi721Fhs10P/pDudX3brRepjOs4+MFVmUgcdQrQms8+Xed9UVw0H24QflG2OkFLYJKc VA/ZP12wp+Tp458TdlIPx23IJyPtxCs= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=fOPPdB7W; 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=1679635445; 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=AkqRx+KrP30aLols0GHlrVzO35qmEZhWmHhuQw/AW/c=; b=u0Lg3K1cV/bpLQmMyCwXjqA7pgWTv7t74KG+q9DoUGskDPclf4AJS+F6/uwNJQ4KYrHJlv WP9DpdJTFyuvGxLNdRN6azoO8rGuKbwdf56JS+knhnNqN04lMphgCBnwT8fxWb4FUoGi0N xAvNDYh9zYWcIAhJnGvli8nmuVTiUEU= 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 EE21362959; Fri, 24 Mar 2023 05:24:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98C4AC433D2; Fri, 24 Mar 2023 05:23:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635444; bh=jWYXVkiblTjjX8pMnu9azKaVJNWEX1KdDh7PEDhc8xo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fOPPdB7WVSI/TJGLz08BWyCbM3MPNDHSvvdLc07CiNFcEQtOpXfXnBJgp9g5Gqjkm 8F28pUwOJVrpod9gGe4iU1+nISFMRtrxQVHQVzzpCWKofvm802AcpHCtcXzGu2nRbh WekXd8orI5sXakmn9+0khvrkxIc1ECZE4pJcrQy4AVYMnxz849asTs+cAQX/ECJqyG kixmr05LTFO3OLPYoS8eJ4iSptjqr21w5F2EXJvzajbcFR+zkrDRfyF33hpCX9+Obx Q9Ca3qPSjTs2zx0ITQke4VnH4LI60668Uqic9f7AjDoR/MGV3S4iEYY/Jha/VGMTsv FiBwJdDbB80IQ== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH v2 10/14] powerpc: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Fri, 24 Mar 2023 08:22:29 +0300 Message-Id: <20230324052233.2654090-11-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: BFBB918000D X-Rspamd-Server: rspam01 X-Stat-Signature: p3fnhq64ohdchk6hfpunqn7hy38jbjx9 X-HE-Tag: 1679635445-786518 X-HE-Meta: U2FsdGVkX1+kCDPgU+/5tku5DFVcKJyE7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gz0ySc0ZiCIFbqPKx3JQGzx/o6AKedAwetnujlXwkAQvkEAAvo820d+6CeqnA8i0GvdQgxNEQ/6cuYMASii/HqPW9HLm3x9VksLFZSSemUZ+adE0v5WFwd8Nq827Em5PSKBo6aTe4WHMLvqW2W5wsyty2qw48jI/ghpuynvPVSrFcPXljPmLfqxg2rCs3tVAAqckSuN8bW6iVmFM0NhGrZNa+yoksZiAoIN0bAj22qNK/O4UzvKvw2hJyHWr2UBvT2+ojyBQPmOQk2fjYKfdXbzQz47xTJmyKXidbheiMaW66JXcT1HBxzo3XcqGtASHzsamaKnPzUO2yJud5RZEp4Aw78hG15xDaemw== 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. Signed-off-by: Mike Rapoport (IBM) Acked-by: Kirill A. Shutemov --- arch/powerpc/Kconfig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index c0095bf795ca..419be4a71004 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -897,17 +897,11 @@ config DATA_SHIFT config ARCH_FORCE_MAX_ORDER int "Order of maximal physically contiguous allocations" - range 7 8 if PPC64 && PPC_64K_PAGES default "8" if PPC64 && PPC_64K_PAGES - range 12 12 if PPC64 && !PPC_64K_PAGES default "12" if PPC64 && !PPC_64K_PAGES - range 8 63 if PPC32 && PPC_16K_PAGES default "8" if PPC32 && PPC_16K_PAGES - range 6 63 if PPC32 && PPC_64K_PAGES default "6" if PPC32 && PPC_64K_PAGES - range 4 63 if PPC32 && PPC_256K_PAGES default "4" if PPC32 && PPC_256K_PAGES - range 10 63 default "10" help The kernel page allocator limits the size of maximal physically