Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2428195rwr; Fri, 28 Apr 2023 10:09:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/5qDyJmuNBewx929q0clZYLrdLX2YD2+k1MNaiMbYli+NnQXAdEEAm67mGAWSt4/HzTYy X-Received: by 2002:a05:6a00:995:b0:63d:47c8:856e with SMTP id u21-20020a056a00099500b0063d47c8856emr9023485pfg.2.1682701765325; Fri, 28 Apr 2023 10:09:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682701765; cv=none; d=google.com; s=arc-20160816; b=Rn6TS3w10NYS2IqIuHSZ01laICLTBgLzrCKUm4yJofQ6C0Vij2o05rhGevTvyeipP8 uRMLM3X9B2pjqI0y/B88GCrQmuzsSNVDE1Ldbwihs+JlrBTeRaIR+F79hVN4dGnBDQsa ry1oxrYTNS0OCcxOb9JWQbPw3Er3SY0X5WHgRxyPV1dwx/flDwKWH8f2oSwfN02iUPNG JTqqKEjXC2smeg3whQ/0mdjzJZiYIVt9v11i1I7q1EfScMse0G0SN1Lg3gXiBNcqEozg h30dP5XfxB9N80mDlwYcYQb5ANTWXRsLjEUomTKqMA09X2v+dURiek5CWqXLbY8X1x/a Oqwg== 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=7/R9uwuE0iSpVM6uwinIbv72ehntndtYSoc+RuwV3Uk=; b=NCMjyrJUb8DPKd1wrl4PhqZ/dU6aJSK8Cl1Oduix3r0lE5YOj7QJxcana/8dvR3HPn ibK2nj0o7KyEaxHZt762fweUJHznA81gsrEpSAUB14Of8hgH5U0Of9cCYh0t7Mgpzlil dthsNUUvqlAEfXIMUl8m0zpQMO2HzwaLeRsh9d5ftQihPulGgCR5BXjZn9yzvyU7seKD Oln2g3m316V4QuUYooYa6shLHVw5s7v/toTk6HeSZwXLdZn5tiWzsQCCZwv/uoLSpTp0 KBP4VV63GVIuuNiZKjNWVyzT+pZp6pAT8cm/adk+2cIJeTzlF8Qc9ZXAF4LS1+QtSSjH 55rA== 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 y18-20020aa78f32000000b0063b8ab7f91csi7610835pfr.365.2023.04.28.10.08.56; Fri, 28 Apr 2023 10:09:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; 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 S1346426AbjD1RCO (ORCPT + 99 others); Fri, 28 Apr 2023 13:02:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346427AbjD1RCI (ORCPT ); Fri, 28 Apr 2023 13:02:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18D1659EB for ; Fri, 28 Apr 2023 10:01:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A6A41644B4 for ; Fri, 28 Apr 2023 17:01:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C11C3C433EF; Fri, 28 Apr 2023 17:01:33 +0000 (UTC) Date: Fri, 28 Apr 2023 18:01:30 +0100 From: Catalin Marinas To: "Justin M. Forbes" Cc: Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jmforbes@linuxtx.org, Mike Rapoport , Andrew Morton Subject: Re: [PATCH] Revert arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER Message-ID: References: <20230428153646.823736-1-jforbes@fedoraproject.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230428153646.823736-1-jforbes@fedoraproject.org> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 + Mike and Andrew On Fri, Apr 28, 2023 at 10:36:45AM -0500, Justin M. Forbes wrote: > While the ARCH_FORCE_MAX_ORDER changes clarified the descriptions quite > a bit, the aarch64 specific change moved this config to sit behind > CONFIG_EXPERT. This becomes problematic when distros are setting this to > a non default value already. Pushing it behind EXPERT where it was not > before will silently change the configuration for users building with > oldconfig. If distros patch out if EXPERT downstream, it still creates > problems for users testing out upstream patches, or trying to bisect to > find the root of problem, as the configuration will change unexpectedly, > possibly leading to different behavior and false results. > > Whem I asked about reverting the EXPERT, dependency, I was asked to add > the ranges back. > > This essentially reverts commit 34affcd7577a232803f729d1870ba475f294e4ea > > Signed-off-by: Justin M. Forbes > Cc: Catalin Marinas > --- > arch/arm64/Kconfig | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index b1201d25a8a4..dae18ac01e94 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -1516,9 +1516,11 @@ config XEN > # 16K | 27 | 14 | 13 | 11 | > # 64K | 29 | 16 | 13 | 13 | > config ARCH_FORCE_MAX_ORDER > - int "Order of maximal physically contiguous allocations" if EXPERT && (ARM64_4K_PAGES || ARM64_16K_PAGES) > + int "Order of maximal physically contiguous allocations" if ARM64_4K_PAGES || ARM64_16K_PAGES > default "13" if ARM64_64K_PAGES > + 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 page allocator limits the size of maximal physically The revert looks fine to me: Acked-by: Catalin Marinas For the record, the original discussion: Link: https://lore.kernel.org/r/CAFxkdAr5C7ggZ+WdvDbsfmwuXujT_z_x3qcUnhnCn-WrAurvgA@mail.gmail.com