Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754596AbbHXXlO (ORCPT ); Mon, 24 Aug 2015 19:41:14 -0400 Received: from mail-ig0-f169.google.com ([209.85.213.169]:35926 "EHLO mail-ig0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754204AbbHXXlI (ORCPT ); Mon, 24 Aug 2015 19:41:08 -0400 MIME-Version: 1.0 In-Reply-To: References: <1415089784-28779-1-git-send-email-daniel@numascale.com> <1415089784-28779-4-git-send-email-daniel@numascale.com> <20150821181910.GA31378@agluck-desk.sc.intel.com> <20150821202707.GA920@agluck-desk.sc.intel.com> Date: Mon, 24 Aug 2015 16:41:07 -0700 X-Google-Sender-Auth: IqxLyfIHErNETFvrJpvkmzRngCc Message-ID: Subject: Re: [PATCH v4 4/4] Use 2GB memory block size on large-memory x86-64 systems From: Yinghai Lu To: Tony Luck Cc: Daniel J Blueman , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Bjorn Helgaas , "the arch/x86 maintainers" , Linux Kernel Mailing List , "linux-pci@vger.kernel.org" , Steffen Persvold Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1236 Lines: 28 On Mon, Aug 24, 2015 at 3:39 PM, Tony Luck wrote: > On Mon, Aug 24, 2015 at 2:25 PM, Yinghai Lu wrote: > >> Can you boot with "debug ignore_loglevel" so we can see following print out >> for vmemmap? > > See attached. There are a few extra messages from my own debug printk() > calls. It seems that we successfully deal with node 0 from topology_init() > but die walking node 1. I see that the NODE_DATA limits for memory > on node 1 were from 1d70000 to 3a00000. But when we get into > register_mem_sect_under_node() we have rounded the start pfn down to > 1d00000 ... and we panic processing that range (which is in a hole in e820). > > We seem to die here: > > for (pfn = sect_start_pfn; pfn <= sect_end_pfn; pfn++) { > int page_nid; > > page_nid = get_nid_for_pfn(pfn); oh, no. register_mem_sect_under_node() is assuming: first section in the block is present and first page in that section is present. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/