From patchwork Sat Oct 28 13:52:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 159272 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp1229101vqb; Sat, 28 Oct 2023 06:53:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/R210CV51/944FH6lN9KTAYOuuiv+ie1czQPNSBTvysoc9kM+VM/U+vr5EWYfHfZcDFHU X-Received: by 2002:a17:90a:2d83:b0:280:29e8:4379 with SMTP id p3-20020a17090a2d8300b0028029e84379mr542438pjd.34.1698501192119; Sat, 28 Oct 2023 06:53:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698501192; cv=none; d=google.com; s=arc-20160816; b=uBshwyFqjg9GGTs57VM6zS7J5//9U3b+WB5voa48wwgrip5A7D5r39/NiZEGQ9FLoX VKmg717b2Wn1FuEjy0TgYfEoakq0seepLdPAgwYPR+/JPOU7TVetqmChpOah404ZkIxC iCJopIg16vie3/17ekAQs5abEyJvvv6SH/kw/nDDLLqbf8UpXnB9hLvI6HIGQ93Xk2zc YNymWxfJV4WkWUmLGvc9g8uJgly428SqbJcJ8rXdOxF6XZIn/XJBLqRIWeX7/G33mCzH XJe1dG5TG9X0i426Jcej6SZHuCE3N/UxxI36CFAomqO5q7KI2bERbGK+/qP4iA82cQgD cNqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :feedback-id:dkim-signature:dkim-signature; bh=6IKvXKpxSl4lY0afrTUCucwVFAqsFt38LYkqHWmNzL8=; fh=Dii/wXcZb/mJUCmsdlZbBl/o0XRcaQ9S/xOY9NGTLc4=; b=kf5lFQ1+72+Bd61FjefceMFgkcxM5ae+fRnLm3zAIUIVre+2vdgYfOTAgymGS5X4tZ HV3ihyC5xqlEk7BeDN8B1Tqk8zfdANKzBh75xJG0z09GlTk5zJQPVgkcLdyFhn/fQfX+ G6J0sDBLxnNLTFZIMlsqdUOUzip/RrTullaPKcA6cF11LAKzfjHIlzXycDPKo3huE5fJ WED1Alh34KS/DGytBjov9msVMBRBNWE5tZkRyaoEYVpnpSqi1+9aLDU6bPlfEzkYlJZN kvowjBObxP7rk5YUZzHJdqCQC0T/GzjIdh/JfdFUx1unPOV6zgNtJ1cuApAhuPWwOkBK X8lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=EWwHB4Ed; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="hwlcPC/g"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u9-20020a17090abb0900b0027ced8e1837si2375799pjr.180.2023.10.28.06.53.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 06:53:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=EWwHB4Ed; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="hwlcPC/g"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id AD3C6801DDAF; Sat, 28 Oct 2023 06:53:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229926AbjJ1Nw1 (ORCPT + 28 others); Sat, 28 Oct 2023 09:52:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjJ1NwZ (ORCPT ); Sat, 28 Oct 2023 09:52:25 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44A4393; Sat, 28 Oct 2023 06:52:23 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 76BA85C01F6; Sat, 28 Oct 2023 09:52:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 28 Oct 2023 09:52:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1698501141; x=1698587541; bh=6IKvXKpxSl4lY0afrTUCucwVFAqsFt38LYk qHWmNzL8=; b=EWwHB4EdV/uPg01AcSInLDmOSSFspbjAQL94KUdOe7PX+4TrfZB ttL+LTEyoqFLgZ4j9068oaUWojXf+17EIWjgz+e2MQIspWi02G/x2HfBgagbfkkS Eb86gfOBDjVurt01odOI9G0A0jLiTQHWsKiC2eNdq1H3LyRKM0Wnm1awYDmGDyzI pmFM4xaPHkfiI1U6nHS9JS8B9LI+hHEXZq3ZtF1RI6XN7q0s3eVi3kopz8PGUl78 ffP3uxH4uuAkTIZ7V/XNAFU2lQM8XrHnprshA5ry8ZIvntG2u+QPIlbrWaLqYkmg XEUmfIDXk3zBhePZoq1pCmbwh2W3rKy9Jzw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1698501141; x=1698587541; bh=6IKvXKpxSl4lY0afrTUCucwVFAqsFt38LYk qHWmNzL8=; b=hwlcPC/gFFTjen2bz9Im7vP7fNH6NNl6iCZWIXXnYMJ5uJOr8VD pQWKMltfAji4hTFe0M3b+Fy/TJ/BlmXP2/3tQOizhu8Sg89EsA1/LV+BnUf/w9/j 7XLzvXXzpg7br4pYXA6Tl4kOGMLMNeNtlioZdFSqDvpWX9nAnu2WvmF9AC5Pwj9x u+I7QWR79ccQQ9esDdd5Kh0Zh1SIL5Xp2TBV0bVeqJ8wzD27sh1ZmD7BbwvJoTzz EXdasOykWXfJqQU/oycYwI2XcHKSXTATh5k4XXbBKi6nsJwWelWv37yppVJsJPrv zqAeQ96sDVDhjFjI+4XkY6Wd1oALknjIJRg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrleeigdeghecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhfffugggtgffkfhgjvfevofesthejredtredtjeenucfhrhhomheplfhirgig uhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqeenuc ggtffrrghtthgvrhhnpedvkeeihfefveekueevteefleffkeegudeghfdtuddugefhueev geffgedukeejleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 28 Oct 2023 09:52:20 -0400 (EDT) From: Jiaxun Yang Date: Sat, 28 Oct 2023 14:52:16 +0100 Subject: [PATCH 1/2] MIPS: Enable SPARSEMEM option unconditionally on 64BIT MIME-Version: 1.0 Message-Id: <20231028-mm-v1-1-45377cd158cf@flygoat.com> References: <20231028-mm-v1-0-45377cd158cf@flygoat.com> In-Reply-To: <20231028-mm-v1-0-45377cd158cf@flygoat.com> To: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Jiaxun Yang X-Mailer: b4 0.12.4 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sat, 28 Oct 2023 06:53:09 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781007585660345263 X-GMAIL-MSGID: 1781007585660345263 SPARSEMEM have been tested on Cavium and Loongson64 for a while and we are confident that they are working properly on 64bit systems. Since it's almost certain for 64bit MIPS system to have a hole in memory space, SPARSEMEM will be more efficent for them. Also promote platforms marked with SPARSEMEM_ENABLE before to SPARSEMEM_DEFAULT, as they tend to have huge holes in address space. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 13 ++++++++----- arch/mips/loongson2ef/Kconfig | 4 ++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 76db82542519..d12e8f3c1d08 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -460,7 +460,7 @@ config MACH_LOONGSON2EF config MACH_LOONGSON64 bool "Loongson 64-bit family of machines" - select ARCH_SPARSEMEM_ENABLE + select ARCH_SPARSEMEM_DEFAULT select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_MIGHT_HAVE_PC_SERIO select GENERIC_ISA_DMA_SUPPORT_BROKEN @@ -656,7 +656,7 @@ config SGI_IP22 config SGI_IP27 bool "SGI IP27 (Origin200/2000)" select ARCH_HAS_PHYS_TO_DMA - select ARCH_SPARSEMEM_ENABLE + select ARCH_SPARSEMEM_DEFAULT select FW_ARC select FW_ARC64 select ARC_CMDLINE_ONLY @@ -923,7 +923,7 @@ config CAVIUM_OCTEON_SOC select ZONE_DMA32 select GPIOLIB select USE_OF - select ARCH_SPARSEMEM_ENABLE + select ARCH_SPARSEMEM_DEFAULT select SYS_SUPPORTS_SMP select NR_CPUS_DEFAULT_64 select MIPS_NR_CPU_NR_MAP_1024 @@ -2573,10 +2573,13 @@ config CPU_SUPPORTS_MSA config ARCH_FLATMEM_ENABLE def_bool y - depends on !NUMA && !CPU_LOONGSON2EF config ARCH_SPARSEMEM_ENABLE - bool + def_bool y + depends on 64BIT + +config ARCH_SELECT_MEMORY_MODEL + def_bool ARCH_SPARSEMEM_ENABLE config NUMA bool "NUMA Support" diff --git a/arch/mips/loongson2ef/Kconfig b/arch/mips/loongson2ef/Kconfig index f93eb6f42238..e593294b2995 100644 --- a/arch/mips/loongson2ef/Kconfig +++ b/arch/mips/loongson2ef/Kconfig @@ -6,7 +6,7 @@ choice config LEMOTE_FULOONG2E bool "Lemote Fuloong(2e) mini-PC" - select ARCH_SPARSEMEM_ENABLE + select ARCH_SPARSEMEM_DEFAULT select ARCH_HAS_PHYS_TO_DMA select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_MIGHT_HAVE_PC_SERIO @@ -36,7 +36,7 @@ config LEMOTE_FULOONG2E config LEMOTE_MACH2F bool "Lemote Loongson 2F family machines" - select ARCH_SPARSEMEM_ENABLE + select ARCH_SPARSEMEM_DEFAULT select ARCH_HAS_PHYS_TO_DMA select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_MIGHT_HAVE_PC_SERIO From patchwork Sat Oct 28 13:52:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 159273 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp1229401vqb; Sat, 28 Oct 2023 06:54:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZmSvbAmzfcsvPL40Dy7NsfV+nIL8FL2uDYLozEQfBsDS7X+/wSiQRex7Zd8xXwkfAbwnw X-Received: by 2002:a05:6a20:4327:b0:16b:b4a0:e06b with SMTP id h39-20020a056a20432700b0016bb4a0e06bmr5738620pzk.43.1698501247227; Sat, 28 Oct 2023 06:54:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698501247; cv=none; d=google.com; s=arc-20160816; b=rxtDJaIRtOQVPdfQuqvpwmDqVrgYrs7vDUKUs3K53fwhEleS4YWR+cGwcV4lfpfwEK RQyW74zXrlaaSgOiqG+YtqAyy2jRT24+wjBmsNVWkdso6aC2BuHcJf7yZqiKBZJNhkqV E9pepJJZlfQqxGjQbg1v4KtD4XT69gvvix4upNRcfWm1OiUH6Wx9Do8BNyCKkRLPCeUV bqk328nFvw5BcGTxDM87plBTeJBtVjV+iRHn+fPh1Z9Kfohf5nrbQ0pi/dzDBXemjNrD WpWO5CPd+4A9EwZlyIP0uMyW1UQJnGZgGDLpY9/THJ2IeJ+iX2W8iKwgLBatXCBr0L0o lB0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :feedback-id:dkim-signature:dkim-signature; bh=fRFxfVZQMQ+iwmH5/1/sMEmpdm0BY/1L6UvPQZbT4lQ=; fh=Dii/wXcZb/mJUCmsdlZbBl/o0XRcaQ9S/xOY9NGTLc4=; b=WQ32yxh6tJwG0H/FBL7km+8WgZW1vjJxbST3cQtCsD/qC6cHxfToiOhuWEnlO9kJCw baqfuduih+R8iYnmm6R6qQ2OPruPHlipd8YWls9niOARZ7qQTm5G04sB0WcfbVv9Kk8Q L1J7C9q0roO8Z5S7gZxiIxqNb0kv5D0GqCRkpGb/ngV+ND4fkUMggI4YBgesiQccPhP+ c34gioSru8FlvOFE8oe7p9lI+33mNBGSGX2jeYd67jf4RdaSc/mmEjUoLj0bQ0Y8/6Lo fHt/9tVpve6idJgNqnMBg4Dxt2S8DG3+/WtPDxpcC94nP8yZQArlGGxfkBL+7ZYR3wR/ 84+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=zmZJXQ9Y; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="R0M3/aJs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id q15-20020a17090311cf00b001c9e29d5d8asi2696356plh.112.2023.10.28.06.54.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 06:54:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=zmZJXQ9Y; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="R0M3/aJs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 2077B801C92D; Sat, 28 Oct 2023 06:54:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230022AbjJ1Nwa (ORCPT + 28 others); Sat, 28 Oct 2023 09:52:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbjJ1Nw0 (ORCPT ); Sat, 28 Oct 2023 09:52:26 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45ADBED; Sat, 28 Oct 2023 06:52:23 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 692505C01F7; Sat, 28 Oct 2023 09:52:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 28 Oct 2023 09:52:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1698501142; x=1698587542; bh=fRFxfVZQMQ+iwmH5/1/sMEmpdm0BY/1L6Uv PQZbT4lQ=; b=zmZJXQ9YDU7awpWx+y1cysOqGRW9cZMsJUQrfrG291SQm0tFRRt Za+91lGmTbRyS+acymZPbOdk9Z+q0nxW1h505j1eVhkstNfGmC/ZO0lUM2vklRTI zPxX8Fj5hof1VDSGcAnJvSkS2oEzmyipfWbDFtO9uoyRPkYmh0keWgWqbJPb50ta nBYPRTS+6/56wEERfg0464P2ywZpBfWPtilWgw5Ya3pADJGGq1ZAuywMevoJjXQc WIJQpQaIDDdopbRwF6zs2LdMSyyFwrxheaDwLWLB5NOtjwHlRgPmrMDyKg5u3rRC wMzT1wTpjRPl6YTy5pTB21Q677pvZFpp+bQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1698501142; x=1698587542; bh=fRFxfVZQMQ+iwmH5/1/sMEmpdm0BY/1L6Uv PQZbT4lQ=; b=R0M3/aJsdpD8XYX3NarQWs4ItYGvrRcKK4yAhLYtU0EHiRGCOIw eMzfxmeF+iBp49oQsHgpxwiaodc2+7++kCW9wVxdB1icDLyVSBaH4CPHvztBTNrG gMfJSaRcaFg5eoApDm0FFXsQCoyHI3czwiRrsQGpPV3HKwRroYSqKmvQ+V1lZzeA LUwQD0DejcEdUhUxPDSFkIry+LN5HWZZN4ANtEiQt7D/ZLtr+LV6FZwzKHY+IfX0 +WGyahKwd8qTXopyHQMoaAZY3jCMR9cMac1+CwQ4mv8irCS8q4x1UItXTTUrhehJ c5HiucBk6tKZPJffTbH8g+HLCIUKMOiHVUQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrleeigdeghecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhfffugggtgffkfhgjvfevofesthejredtredtjeenucfhrhhomheplfhirgig uhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqeenuc ggtffrrghtthgvrhhnpedvkeeihfefveekueevteefleffkeegudeghfdtuddugefhueev geffgedukeejleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 28 Oct 2023 09:52:21 -0400 (EDT) From: Jiaxun Yang Date: Sat, 28 Oct 2023 14:52:17 +0100 Subject: [PATCH 2/2] MIPS: generic: Set SPARSEMEM by default for 64BIT kernel MIME-Version: 1.0 Message-Id: <20231028-mm-v1-2-45377cd158cf@flygoat.com> References: <20231028-mm-v1-0-45377cd158cf@flygoat.com> In-Reply-To: <20231028-mm-v1-0-45377cd158cf@flygoat.com> To: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Jiaxun Yang X-Mailer: b4 0.12.4 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sat, 28 Oct 2023 06:54:05 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781007643657307939 X-GMAIL-MSGID: 1781007643657307939 Select ARCH_SPARSEMEM_DEFAULT for 64bit generic kernel build, as all platforms supported by 64bit generic kernel have a hole in their address space. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index d12e8f3c1d08..fad05f699efd 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -133,6 +133,7 @@ choice config MIPS_GENERIC_KERNEL bool "Generic board-agnostic MIPS kernel" + select ARCH_SPARSEMEM_DEFAULT if 64BIT select MIPS_GENERIC select BOOT_RAW select BUILTIN_DTB