From patchwork Wed Mar 22 08:17:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 73272 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2224900wrt; Wed, 22 Mar 2023 01:31:05 -0700 (PDT) X-Google-Smtp-Source: AK7set9QPT5LBL3RPDKl1HgKX2SSDf5TwD3FLcuhFiix08pC3lL57KssWlPoMmlPfhYGQd+8Apbg X-Received: by 2002:a05:6402:54b:b0:4fb:6357:f393 with SMTP id i11-20020a056402054b00b004fb6357f393mr6085333edx.1.1679473865448; Wed, 22 Mar 2023 01:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679473865; cv=none; d=google.com; s=arc-20160816; b=olq7I+PxUb360sPY4bp1eyHidDTZ8WTTnME1M0zQvT01qT/p29/Nhf7GJr/C4IiYFz T/1X1rJeoHqGqsciUy2egxA6lteYVkC4sOFOmDjx+Khh/yaoFboySaqAS7n1ZY/itq90 X1iwjSLEP4ZJHoGU7/NWRwgI3LYFReJSPSYiC+vyP2EhVs0OTioGH7e4i8NIw/02do/K 9e28Yvi9Bicz3P0vm3bDZjuq+5K3/16/3dOgj+k/zabRA5x3Lg8udvNLBqRQ+9Cd+1u3 /9UaPCkwjMSp+3d0kmcPOW6PBfVwy8zwntajXGE1HrVjhZCuTosdl9LJ1xLyfeWfLEej AaSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=oOrKQ/6qV5OJIwA9qbXR2kmt26dxfauacoEnSwVqYZU=; b=a23QKnpgPtSQsC+24hXmRWeSs4kXF9Js4YmGc0z61Mg5jK5kEuA+gV0CiSv+h3WhD5 mqe/bsDJ9XOmNO1fcV3NpMI9e3P9PlAOpiuyXGZU0+MbcnfmK7EzeOHtoldIq/NKWgiF Qx39pnUTFtp+uQN3YpUS8A3M3k26VcMxnvMBvtbde08m1NKLip8HZ/9sAOsnHtZ5bJLH GUeVMxmMSdv4O9w/h/vwp7rQSeDpHdfCRlIZ2F/QqGSsDZF4ns/7au0/bbULzBPi4+X1 KDYMa5nMPiZ3r9QA7u7ts28Bw3zgJvDTlbwG4PJ36W5uyDQKHEN7YOF9rzTVcWovOt6M wcjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="YW5WFWH/"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020aa7c0cd000000b004c08dd41db8si15643629edp.106.2023.03.22.01.30.41; Wed, 22 Mar 2023 01:31:05 -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="YW5WFWH/"; 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 S230105AbjCVIRo (ORCPT + 99 others); Wed, 22 Mar 2023 04:17:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229990AbjCVIRm (ORCPT ); Wed, 22 Mar 2023 04:17:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 839C55D26C; Wed, 22 Mar 2023 01:17:41 -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 D3AE961ED0; Wed, 22 Mar 2023 08:17:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A400EC433D2; Wed, 22 Mar 2023 08:17:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679473060; bh=4Q0iAD9vF+3RBVg+My0zZAgAHRwIrYDxgeNinL++dLo=; h=From:To:Cc:Subject:Date:From; b=YW5WFWH/ZrLn+YDPpteJOhgqjZqeNf3+PKnv2gaSmlwxCVASe38G7lbaHQYrkqGwm RlXZAD8+8gj7kcQ6bI8XNtuaKafkV+E15o9RAVKGoMu9pwUbamnqIu8pk/nbLi5yLa EHGUEFuw3Kr5V4/pyVP0OVnMa9dgsKXvfMwbX0LXm+oIoUF3sadDIVTHRxyTNxnPDh WEHe7sUk0XAsvmWm/fS1RXCTMGvLLRK6kMEiXTds4twUsF+dbUbsMC1f0QY/KI87Ln lgNlVTiaD4uZykLSSFu4LQfc3AHsPwE+mqLOS8Bc0vlHNSLTrS0bitPJkxJBiIhtoA N1BMZizPpPA2A== From: Mike Rapoport To: Huacai Chen , WANG Xuerui Cc: Andrew Morton , "Kirill A. Shutemov" , "Kirill A. Shutemov" , Mike Rapoport , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-mips@vger.kernel.org Subject: [PATCH] loongarch: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Wed, 22 Mar 2023 10:17:27 +0200 Message-Id: <20230322081727.2516291-1-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761055987774658392?= X-GMAIL-MSGID: =?utf-8?q?1761055987774658392?= From: "Mike Rapoport (IBM)" LoongArch defines insane ranges for ARCH_FORCE_MAX_ORDER 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 Reviewed-by: David Hildenbrand --- This applies to akpm/mm-unstable tree arch/loongarch/Kconfig | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index 272a3a12c98d..e1e3a3828962 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -420,11 +420,8 @@ config NODES_SHIFT config ARCH_FORCE_MAX_ORDER int "Maximum zone order" - range 13 63 if PAGE_SIZE_64KB default "13" if PAGE_SIZE_64KB - range 11 63 if PAGE_SIZE_16KB default "11" if PAGE_SIZE_16KB - range 10 63 default "10" help The kernel memory allocator divides physically contiguous memory