Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1006693ybe; Wed, 11 Sep 2019 08:02:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7OmwCfaPd47IV4f41TpwU21FBAMS4IAsT6iN825OJ0caXCJoTaGXc72ylthGH1Q9Yn9wZ X-Received: by 2002:a17:906:7fd9:: with SMTP id r25mr7531548ejs.22.1568214131984; Wed, 11 Sep 2019 08:02:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568214131; cv=none; d=google.com; s=arc-20160816; b=qvhgoh/xhER4RGpVLCkj3pr82U5aIuwJRswv7t7jRyzIEbYNwORcnbhae4MXwPYnVY 9P2NyoB3PhRijhi39bORMN+LujDGnBO6L/+FGBFA/AXehnAQwYCMwi3eB/2e3Q46XKYM XsorSAxDP+BZQIeD9gzo49iP0xDi5PVv4jAt9p61NPDNBR34Xv+idA4B3dyba4ekLzbr 5QFoUs1MVZwUjRMS0e7d6koCDJy9UAFhtJeW0R3QDS2xZANCiZujP2FPgCDdI1+dazzj xccSYWpKh2GTXuoEdd9JJXPMCA5pa1v+9r4B7BtCGzhPHdvPUglYlY1a8Dw/VfoNAB0Y iLIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=MUkH6kHgLM6GNW5uS5+gkamm6ML+Viv5zVgRWl3wAZI=; b=OYMopmfgUDXtMiBt0B1s49D0PZhE7Pnd3FTQ7VUQF+9U8ulSQdQkENYi6ok+JI3HO3 M/F76IPm2aWMMi+fhK1TYHq+HO3LQN2ucunS8KwQli0sW2ospJrRTKEJjwJ1+CgWlkS8 HL8OidONCs8KQqCm4OjYKcBNTfJUesje2E+9MWOLb5L0QWEqzefZ9YCY0kwAeiUl7/BL pNgwvHFiUqNdQlaysoftLDae3gU/AAVs6B86W7xkx5aWii+XMcpRBENWErnlM+Q4IjGS TZOQ4b3Dy9Pwkj18K3mBPzAY8ufKyGqlpwdUC3wUIr/vdr4h4ReZz4uR7Yz53O+J0hoO ypnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=default header.b=K8R58zx6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v24si12479890edq.156.2019.09.11.08.01.47; Wed, 11 Sep 2019 08:02:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=default header.b=K8R58zx6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728466AbfIKO5g (ORCPT + 99 others); Wed, 11 Sep 2019 10:57:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:46932 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727664AbfIKO5f (ORCPT ); Wed, 11 Sep 2019 10:57:35 -0400 Received: from [172.20.7.147] (unknown [88.157.232.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B41D92075C; Wed, 11 Sep 2019 14:57:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568213855; bh=Gh/7DuU8FiSq8rs45zDGOHH3xiKvcuGbScoQIpm/Xeo=; h=Date:In-Reply-To:References:Subject:To:CC:From:From; b=K8R58zx6IuxCk61Fab4q8lzEiDkIgosx90ioV/q3gepVnDLLr+ihYqorzEivU3cwo qvq/pjcGePJp9D6fAe/lh++ZyIWmRAy5Ih/9i+l0+w+4rhb7K3eB/Is6xTW7pDP1tJ rNFFkk1XUu6+vO6EwoDb/+i0PFJxxtZRboVALl2c= Date: Wed, 11 Sep 2019 15:57:29 +0100 User-Agent: K-9 Mail for Android In-Reply-To: <20190911160939.19f776535770d12ff51a2af7@suse.de> References: <1567662477-27404-1-git-send-email-rppt@kernel.org> <20190905152150.f7ff6ef70726085de63df828@suse.de> <20190905133251.GA3650@rapoport-lnx> <20190905154831.88b7853b47ba7db7bd7626bd@suse.de> <20190905154747.GB3650@rapoport-lnx> <20190905233800.0f6b3fb3722cde2f5a88663a@suse.de> <20190906130223.GA17704@rapoport-lnx> <20190909182242.c1ef9717d14b20212ef75954@suse.de> <20190910113243.GA19207@rapoport-lnx> <20190911160939.19f776535770d12ff51a2af7@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] mips: sgi-ip27: switch from DISCONTIGMEM to SPARSEMEM To: Thomas Bogendoerfer CC: Paul Burton , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Mike Rapoport From: Mike Rapoport Message-ID: <6B6A736C-26FA-429C-92BA-42DDE2271514@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On September 11, 2019 3:09:39 PM GMT+01:00, Thomas Bogendoerfer wrote: >On Tue, 10 Sep 2019 12:32:44 +0100 >Mike Rapoport wrote: > >> [=2E=2E] > >Patch below works on the same Origin=2E > >Does memblocks_present() deal better with the one reserved page per >node >than sparse_memory_present_with_active_regions() ? Or is there a better >explanation ? My debug prints didn't make sense out of it=2E=2E=2E To be honest, I'm really puzzled=2E I'll take a closer look tomorrow=2E Thanks for the debugging and fixing this :) >Thomas=2E > >diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig >index d50fafd7bf3a=2E=2Ee4b02b5f3487 100644 >--- a/arch/mips/Kconfig >+++ b/arch/mips/Kconfig >@@ -669,6 +669,7 @@ config SGI_IP22 > config SGI_IP27 > bool "SGI IP27 (Origin200/2000)" > select ARCH_HAS_PHYS_TO_DMA >+ select ARCH_SPARSEMEM_ENABLE > select FW_ARC > select FW_ARC64 > select BOOT_ELF64 >@@ -2633,18 +2634,9 @@ config ARCH_FLATMEM_ENABLE > def_bool y > depends on !NUMA && !CPU_LOONGSON2 >=20 >-config ARCH_DISCONTIGMEM_ENABLE >- bool >- default y if SGI_IP27 >- help >- Say Y to support efficient handling of discontiguous physical >memory, >- for architectures which are either NUMA (Non-Uniform Memory Access) >- or have huge holes in the physical address space for other reasons=2E >- See for more=2E >- > config ARCH_SPARSEMEM_ENABLE > bool >- select SPARSEMEM_STATIC >+ select SPARSEMEM_STATIC if !SGI_IP27 >=20 > config NUMA > bool "NUMA Support" >diff --git a/arch/mips/sgi-ip27/ip27-memory=2Ec >b/arch/mips/sgi-ip27/ip27-memory=2Ec >index fb077a947575=2E=2E370f2ba14a89 100644 >--- a/arch/mips/sgi-ip27/ip27-memory=2Ec >+++ b/arch/mips/sgi-ip27/ip27-memory=2Ec >@@ -410,8 +410,6 @@ static void __init node_mem_init(cnodeid_t node) >=20 > memblock_reserve(slot_firstpfn << PAGE_SHIFT, > ((slot_freepfn - slot_firstpfn) << PAGE_SHIFT)); >- >- sparse_memory_present_with_active_regions(node); > } >=20 > /* >@@ -444,6 +442,7 @@ void __init prom_meminit(void) > } > __node_data[node] =3D &null_node; > } >+ memblocks_present(); > } >=20 > void __init prom_free_prom_memory(void) --=20 Sincerely yours, Mike