Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7386066rwl; Thu, 23 Mar 2023 03:44:18 -0700 (PDT) X-Google-Smtp-Source: AK7set8s4ls40GyYLtvU65qIhJGspLyGOsAWjb3+iUIHsH5h0E//GTH6PtDgKmAPHy2v/HjAxz+z X-Received: by 2002:a17:907:33c5:b0:878:66bc:2280 with SMTP id zk5-20020a17090733c500b0087866bc2280mr10614531ejb.12.1679568257876; Thu, 23 Mar 2023 03:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679568257; cv=none; d=google.com; s=arc-20160816; b=tZPSu46HfQZDY/vG+35Ed73jl4CGl2JY3aFvG41NAM3sSHjNsMmojtTqlSuDf6VqTD DqGucjmJVCbv8tyNa6q96pJSRCqwmu/VGNetCrl75rw4cLJw+kPQzrqmyokLtOlUrDt5 3EmmxcDOUM+gD07/bU9dESRYrMQP9p0/ErkLjJJGsOqC3hMhNRHsyibfUkAVKhKoxNX9 cXCiuOL6L2BwnnHzzqWc3bIZfb2L4bAOgJZPhfvnMAiZzdXDSUnpX1n4fr9lRqOrFoV5 qrvmLcjhcxVlFCFpIMjH+XdAc56pVuAQYOa3pDTblsqklb1P34cyl8iD/xZSyghSBkPH nbKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8ZNfO5dvrp7J7cTlHB6ZnONex+DPfAa6IFxjZomT6i4=; b=Un/aYB9fgCbqwnM94by0oPF4wA8pJRcovXTQvVQdxivMZ2MN1/nSB1JqY2wA+rU04+ 4RvOJSBG1UZ34kqOdonmep0rrT5LmkkYJvHV1iwEERP5DdLVY3oApkpvXtKHq4BKYJ4U kzYrVvGOtNa7Rl6wEIDBGSRccodVbgFMAEqmUlA808ZpOhz8cogtLNZRE3UpiTvf9WsL ih/DF21TG3qGRfoVA0GIC257YA0Mz+1vxedqtJAhTJ2Kg97qyDjQudnJIBfAxAfnFyvy mcHTs3TUPeDogmzERheTs3jGFvH90VrJIe23/ntrGEg+DBeXo4+f7YeC9cPQ2tEVFpw+ CEdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sPKSP02i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs13-20020a1709072d0d00b00933d2299f06si15854800ejc.432.2023.03.23.03.43.54; Thu, 23 Mar 2023 03:44:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sPKSP02i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229991AbjCWKkr (ORCPT + 99 others); Thu, 23 Mar 2023 06:40:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbjCWKk1 (ORCPT ); Thu, 23 Mar 2023 06:40:27 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E98FC1D92A; Thu, 23 Mar 2023 03:37:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5A8C4B82070; Thu, 23 Mar 2023 10:37:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0F9CC4339B; Thu, 23 Mar 2023 10:37:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679567844; bh=7HVmHyHcaSnCmEQ9wvlGS5D2gJIf2hovuJXSyaCaqdA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sPKSP02iJA6KAFPv7bGM4/Se81vulHnHqt8qfWTUhZFZfE1s7yfVR1WI2haHPg+A3 jWzVvRFZzkglSwote3myrlA5TUDE+Mjiy60hA/JC5FTriwEUlR/LYSMkz7fsTaldFc oMQlw0WTXs+ktUIZkgxUF4A7BhNREJZy9IC+pPvHI8Vsp+m2dbErDE2naZmB571znT Fxiq15cRjtHrw73FO6Y3VXmv90htiJ2rNj1RicLa12inWDP9wSpUycX7R7yd2Kgx+7 vrbS8fMpVelSjMFK/gnOL3tvAHj3UliwBTODwab575ZgUsXBaJnqCJoJygIlhUcZOE OSTuDUXtdmoRA== Date: Thu, 23 Mar 2023 12:37:05 +0200 From: Mike Rapoport To: Catalin Marinas Cc: Andrew Morton , Arnd Bergmann , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , 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: Re: [PATCH 02/14] arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER Message-ID: References: <20230323092156.2545741-1-rppt@kernel.org> <20230323092156.2545741-3-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 23, 2023 at 10:15:33AM +0000, Catalin Marinas wrote: > On Thu, Mar 23, 2023 at 11:21:44AM +0200, Mike Rapoport wrote: > > From: "Mike Rapoport (IBM)" > > > > It is not a good idea to change fundamental parameters of core memory > > management. Having predefined ranges suggests that the values within > > those ranges are sensible, but one has to *really* understand > > implications of changing MAX_ORDER before actually amending it and > > ranges don't help here. > > > > Drop ranges in definition of ARCH_FORCE_MAX_ORDER > > > > Signed-off-by: Mike Rapoport (IBM) > > --- > > arch/arm64/Kconfig | 2 -- > > 1 file changed, 2 deletions(-) > > > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > > index e60baf7859d1..bab6483e4317 100644 > > --- a/arch/arm64/Kconfig > > +++ b/arch/arm64/Kconfig > > @@ -1489,9 +1489,7 @@ config XEN > > config ARCH_FORCE_MAX_ORDER > > int "Maximum zone order" if ARM64_4K_PAGES || ARM64_16K_PAGES > > default "13" if ARM64_64K_PAGES > > - range 11 13 if ARM64_16K_PAGES > > default "11" if ARM64_16K_PAGES > > - range 10 15 if ARM64_4K_PAGES > > default "10" > > I don't mind rewriting the help text as in the subsequent patch but I'd > keep the ranges as a safety measure. It's less wasted time explaining to > people why some random max order doesn't work. Alternatively, we can > drop the ranges but make this option configurable only if EXPERT. I like the EXPERT alternative more. I'll add it in v2. > -- > Catalin -- Sincerely yours, Mike.