Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp595424rwr; Wed, 3 May 2023 03:29:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5b1Ck9xlD/ym0RCNCu7WLQf0EuGh3SslIyCq0fDQSO7sVjT94FSpP/Mi+WuSHkCBPkEc8C X-Received: by 2002:a05:6a00:1828:b0:63d:3c39:ecc2 with SMTP id y40-20020a056a00182800b0063d3c39ecc2mr1932532pfa.12.1683109742868; Wed, 03 May 2023 03:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683109742; cv=none; d=google.com; s=arc-20160816; b=BdxxSQOb0mOfIk4Nwgo8rB4edESUsXDXdild6chj2u0MGZwY6mBE9H3yg9O/K8bd0q b+HXxiefDVnXaZ/iaRTMFGAQUy02E5IrMMbZPHY4b/+rTtLRhGb5zPFu2hyf3oc7L/TT UruUo85FGw5TaXuZQWr8ITez9T+rfpptif2OKnz2DPbl98tAtwAWLwQ8OWBkSfgrXaOy mAw4Lth87CU3I6R/jVG4D+pLiB/bYLtWfX67AfTKBjL3uIm9lTRtD60vvyPEc+EIFWpC 3n/AL6oAexmQDpbMjw/GHD8hON7XodsAn9prFfmD3WGp6UVCbu9mPqNdwnqoFqhgXIrE F3cA== 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=ScPEzEidkkrQvCkuWwT9F5CzrpVTuDwJzbHp71U6h6s=; b=lJ4L0IS0yO8nBeJUAsixW2nBJNEkRUMbK8RgqrrE2Hwgci/zluhxz3bFguwH2XXGoG L5Pr3vXKLg2XIE9OVAwhukOXGRZJksGZsniC96DZSubXQX5gTrFJ/sybURQSJRS+is0B ypmi/073AficUlY3o8h2XyDgP+anNDbFJ2xeqHzF6eTEy9g7e4W41lpMzs9CBudOU4Oa CkaCvFp5XFk2CFaCZYa/nB+4Xij7UnG7I7nSVneTxBnLC5WSaup7beliH4NAC9NuslY+ rOsRFR6MvcRn0vRGi70KWJqTb7aEjYFckdLmycq0VK2aPhDi+gzRj8l0WJv7SbzBkoIY MN7A== 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 f196-20020a6238cd000000b0063414224634si32150021pfa.396.2023.05.03.03.28.50; Wed, 03 May 2023 03:29:02 -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 S229940AbjECKUu (ORCPT + 99 others); Wed, 3 May 2023 06:20:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbjECKUr (ORCPT ); Wed, 3 May 2023 06:20:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE38549E4 for ; Wed, 3 May 2023 03:20:45 -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 59B3B62AA4 for ; Wed, 3 May 2023 10:20:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 593B1C4339B; Wed, 3 May 2023 10:20:43 +0000 (UTC) Date: Wed, 3 May 2023 11:20:40 +0100 From: Catalin Marinas To: Mike Rapoport Cc: Justin Forbes , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jmforbes@linuxtx.org, Andrew Morton , lkp@intel.com 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: X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Tue, May 02, 2023 at 06:40:14PM +0100, Catalin Marinas wrote: > On Tue, May 02, 2023 at 07:15:20PM +0300, Mike Rapoport wrote: > > On Tue, May 02, 2023 at 03:07:41PM +0100, Catalin Marinas wrote: > > > On Mon, May 01, 2023 at 04:24:38PM -0500, Justin Forbes wrote: > > > > > > Regarding EXPERT, we could drop it and do like the other architectures > > > but we'll have randconfig occasionally hitting weird values that won't > > > build (like -1). Not sure EXPERT helps here. > > > > AFAIU, randconfig does not randomize int values, it's probably random > > people that do ;-) > > https://lore.kernel.org/r/202303232149.Chh6KhiI-lkp@intel.com > > with the randconfig here: > > https://download.01.org/0day-ci/archive/20230323/202303232149.Chh6KhiI-lkp@intel.com/config You may be right, I can't get my randconfig to set ARCH_FORCE_MAX_ORDER to anything other than the default. Maybe the kernel test robot has its own config randomisation (cc'ing lkp@intel.com). If we don't care about about this randconfig, I'm fine do drop EXPERT from current mainline, together with the 4K/16K pages condition. The condition only made sense if we kept the ranges in since these were configurable (no range for 64K). diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index b1201d25a8a4..1867aba83ba3 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1516,7 +1516,7 @@ 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" default "13" if ARM64_64K_PAGES default "11" if ARM64_16K_PAGES default "10" -- Catalin