Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp5144760rdb; Sat, 30 Dec 2023 07:39:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IExeYuM1uGPmDRzvLcuEvtQ5d6DM1sr3QHGo23DnR3A9aFvf8jWPvwKK2qCZJo22m7IKYee X-Received: by 2002:a17:906:743:b0:a1f:a0f1:ec60 with SMTP id z3-20020a170906074300b00a1fa0f1ec60mr7303554ejb.14.1703950786388; Sat, 30 Dec 2023 07:39:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703950786; cv=none; d=google.com; s=arc-20160816; b=x8l3g0axWjb9PlrQIO71OiMp+wdCCw+yINRxDGgpWSSpvQTtF2QTgTRGHMXP8AlnWB nTlXSXj1dhj6GG4DnqA2ywBSbPBTzNjHLFabQFSZ/D/Nq6v9V1c3L5jQ/EGOXPBGzij6 3Hm6wvixgKQt0dFiJJqkJICc8mfnecgouCO6vGRlwBBWPZJY6ObUExFpqiXqvBCIYXek gGTyD1fYTN+c/ir0iuF9FblMjE3qNw9Xla2hZXvyd4Nc5kEAICzrlSXCIjDSAgJhSsO7 i4/2Tl51Ir67QJ6ks7C3k2bmpOOTfbnaX8S71o47cld2X7imcONkHaJ7IQHq25Tdganq nUfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=rqKU88yhyyjgmnsgOSX9HhjepoYTfoFr1dh0AZBTtbc=; fh=JA9uYFZxFYcM46uiUWd0e/GPvmLOTTk+DfkmxzibWJI=; b=xMwaP3JcPH8w/sPv1Rn5ao48julLlscxHPuJOfNokW2EbhEFWo9bWsoNldbXn6yndc a2juq0BnTru7ZtzXy/SfDGLFzmLaIev5dH0x14lz4M8iHiT+MacNJbP9O9hD/fIl7bGR fP9OeCvf5v0axPJYaRGWftnvNozaDXm0w28DCg23+o6ze00EhRa2iphCSMdt7mOu8p2w DAu+gBm/BwEOsraMSNvKm3QplL5/DzU/u1NC4edOYZ46o12zFE/UIrq0EpjJ4qsZ5Lmu fNByMQJGuP1Q/t+lAHfUXqCWdyPO8wjDzC0Cn6jKC+H3xpXnMaIGYMHBYfGe81D/GFWO 2WAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-13459-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13459-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id wh16-20020a170906fd1000b00a1df3a98421si8716216ejb.42.2023.12.30.07.39.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Dec 2023 07:39:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13459-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-13459-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13459-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D5E901F219A2 for ; Sat, 30 Dec 2023 15:39:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92DF7BA26; Sat, 30 Dec 2023 15:39:26 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0DDEEB66C; Sat, 30 Dec 2023 15:39:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1rJacF-0004OV-00; Sat, 30 Dec 2023 15:47:07 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 8EE31C028A; Sat, 30 Dec 2023 15:40:51 +0100 (CET) Date: Sat, 30 Dec 2023 15:40:51 +0100 From: Thomas Bogendoerfer To: Jiaxun Yang Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] MIPS: Enable SPARSEMEM option unconditionally on 64BIT Message-ID: References: <20231028-mm-v1-0-45377cd158cf@flygoat.com> <20231028-mm-v1-1-45377cd158cf@flygoat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231028-mm-v1-1-45377cd158cf@flygoat.com> On Sat, Oct 28, 2023 at 02:52:16PM +0100, Jiaxun Yang wrote: > 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 maybe I'm blind, but I don't see ARCH_SPARSEMEM_DEFAULT declared in Kconfig for MIPS. So what I'm missing ? Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]