Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7360265rwl; Thu, 23 Mar 2023 03:19:47 -0700 (PDT) X-Google-Smtp-Source: AK7set/r5c5XdP1LNsMvI3zIvsPlTNV/V7IPRekv5regMKF35eBTbDWOOzWyyuOXWF4w0G/tDyt5 X-Received: by 2002:a05:6a20:8ba0:b0:d9:c00a:82bc with SMTP id m32-20020a056a208ba000b000d9c00a82bcmr2965401pzh.52.1679566787324; Thu, 23 Mar 2023 03:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679566787; cv=none; d=google.com; s=arc-20160816; b=cRLt79u86njjib0nhCPmGLw9dNDzK5l/9xMdI3NytlcKhhCGu4v6nyd8h7euUgFQ8k j4FeYEoTowZfPiuJ5Zhwant7NRgOjVc2/OHIPtbz20Kgjy/nsWmulQUlije8g/DLSIhB Qiqr3uSjl0yOBHMSMHv6BS+slCdDcePy24+IchGSc7+2KwdbwmfEMYXFomtkeh8EB2FC f1XwjI5v1wKAumUcoHuIlPcXFY5WW1FhPepqlNh4EQPKqLLRvLBzYdtZDDPuTbMR+dMH YOhrjq2xvH16WwaD4fZf9PPeV0pngrLRGwYRqlyg44vBgse7KS53pceY9UutCCNwlxZ0 l5Hg== 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; bh=iXKt+u0jjKo3fXkRF1H3e0YXpFOSMiO0NwnvMMSHkRs=; b=qS9ck/mr3YM6kYsrzdJ+SHkSZgszvVS8sNieT6pujJAf23y/Uv4soBkq+/pLFIJBXr LMmKw7R3EZg6PS6lxkWgvKCU+ZRIEzDhzHWrIwzQJkvtwvS1KPy9+FwlF7aWkR1OlawI vgo7+AmSZjJhrC+EkkyZvsRKgdMc1qgblUBCi496127zL6Pd9MjaXWjIrztcjsP+DstY 5Aj9YCY8MLAP2eiTeKsUOqkevD5XTIvtCsYm2O4IA/5Evdb/ZrJbI/HnG1BrhDov+eJX GqyD29l4qJesRNXTVj/Ub88F4dleXFMHZOtfAahAx9b7c2Kf8sUBukpNZYs+ZjfRpGmf 6h+A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 81-20020a630254000000b00513162c223bsi549086pgc.298.2023.03.23.03.19.35; Thu, 23 Mar 2023 03:19:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229997AbjCWKQi (ORCPT + 99 others); Thu, 23 Mar 2023 06:16:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231444AbjCWKQJ (ORCPT ); Thu, 23 Mar 2023 06:16:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B38B21CF74; Thu, 23 Mar 2023 03:15:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E6318625AC; Thu, 23 Mar 2023 10:15:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B040BC4339C; Thu, 23 Mar 2023 10:15:36 +0000 (UTC) Date: Thu, 23 Mar 2023 10:15:33 +0000 From: Catalin Marinas To: Mike Rapoport 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: <20230323092156.2545741-3-rppt@kernel.org> X-Spam-Status: No, score=-4.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, 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 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. -- Catalin