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: 13183658 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7126C6FD1F for ; Wed, 22 Mar 2023 08:17:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 126E56B007B; Wed, 22 Mar 2023 04:17:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0D74D6B007D; Wed, 22 Mar 2023 04:17:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EE1256B007E; Wed, 22 Mar 2023 04:17:45 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id DC97D6B007B for ; Wed, 22 Mar 2023 04:17:45 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id B7EBCA033E for ; Wed, 22 Mar 2023 08:17:44 +0000 (UTC) X-FDA: 80595830448.25.DA52990 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf26.hostedemail.com (Postfix) with ESMTP id 16EC414000E for ; Wed, 22 Mar 2023 08:17:42 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="YW5WFWH/"; spf=pass (imf26.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679473063; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=oOrKQ/6qV5OJIwA9qbXR2kmt26dxfauacoEnSwVqYZU=; b=nqXS2le8b9zDGnVhl/PgMD7zkQUPfBZXCeoypaue+QLGZclhHKHbibhQ4+5t70VZD8fSDR t0/CnIRqkFK/1GIyYInEa5JNuqL5HdpcMvjKoadFOas2QwP374iJVjn+R/sckPCXVaBvPm zcN0URXrz0dIhOgDaOG4LUh5eheTmT4= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="YW5WFWH/"; spf=pass (imf26.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679473063; a=rsa-sha256; cv=none; b=BXzP2UTaIkE3Y9Vlgw34r5J+AW86OHLB0rYRdFiw89tSnpSlj0xs5+zLiHmj+h4JDyW1TA BLdmmU+yKOzeoT1U79NynB4SpnH6J0SjzYSUvCEFShO8beaN+5otgi5vcR/PxP6sTNhJ1S MkvncU0vC1iV+cfbvQhgLHCMDw975zQ= 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 9270EB81233; Wed, 22 Mar 2023 08:17:41 +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-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 16EC414000E X-Stat-Signature: tzyxebyim7d1ftj394q8o45t94i1dagm X-HE-Tag: 1679473062-476167 X-HE-Meta: U2FsdGVkX190wqBr3EyYie5kqvraN9iQcLRBJb2HOmJTCdNKOGwG+zjx6vLBvbKpx/vn0IOFxeZ/qnQF1PjYNINHF7EGZixqCFTQIXhMi65sMDAY8xANi9VElt/AOBkH28R4WZ114oiSzw3nmLGo/ualJR5JMLMW03U8NtFJxqVrbB3seOEo/aPBn00waDqwQUq8YIBWiCcGQFAZXQnQsdikMJk7+ZWbzwgQmh587DLiOvbGSKC8DA416x1WNVUmrsnpdQugNEDYEyRevq9Hk06VzBEWkKIN+6gCt1/bzdYUMavt8KN4mL9qpNxU+kaIpKfCFlSsX8lGxEkPK+y9TaDKW687cES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=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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