Received: by 10.213.65.68 with SMTP id h4csp173833imn; Mon, 12 Mar 2018 10:12:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELvs/xafvxY7PtZLSJX1Qu4Z6E9bfnB57chkSy/mipiNuAUZyIWgFFK4zAhh/mrl9U+U8k2W X-Received: by 10.98.36.25 with SMTP id r25mr8780267pfj.106.1520874757170; Mon, 12 Mar 2018 10:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520874757; cv=none; d=google.com; s=arc-20160816; b=WIC768QPsgofVNYTT9x4LeY22jyxDf94ZlZTmN9ws279XgUUEpsghkKMxMNoQI15Nr bV1w1/TFYF+85k/sIpN17u6NGdhX3otXL3KAST3GblnSFCg9EIGnyii/YU+Gcd8pEfgF OdNCkReNpmrj3mAUSX67USU4dOxr6dbDpu1xekAS/l7S+YMGc+IafpxwNeIefDCTJZqt C+/YAmJ5K0N7lKXZEoE/KOsJIwik5XA5tr3Yb0jZcAAk7J/zXPWnI1Rt7NdwBtCpFtEu svJ3CSwhhuw5DIBHCf5NKs+w/+gNaoGD/W2j/836SXLwvvJ8gH1sa9xQtCP6e0K2ZuFA 44JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:to:subject:cc :arc-authentication-results; bh=MGNP4zdwF0fAMdVUpTHGtJLqO27drIwOCYAkf6tB38A=; b=gXw7s4nbE3ScqESsiX3xv76v4+48vEEmWX1DrWMHT9LJktryHDaPhhcOK/yogDU9tF f2bMlMXhbrcc4O+EkCVX2B6gAb3rOVmJs2hjYv+iRe7XuLbEQxd1aLfsZviyMZlkRPLP d3nm9pnJ60MVMGZrpDnSbrh3ptgfo85TU3OB4Z8/wDDxEU9dg9RfhhS83DskQTqDgQgr e3UwStnl1xmEv7n6TKoUwMX0A2LGHHke1M7nD7PgDs9BZkIBEKauA2qNvraUnppzSmOK 3/Qce06PfUF8Hja/H/aMVKMrRWiqygYfoVL5SVZN6LznICHynwYjo063A0thZdwaLwkF 1+sg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z4si5187628pgp.319.2018.03.12.10.12.22; Mon, 12 Mar 2018 10:12:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932592AbeCLRLY (ORCPT + 99 others); Mon, 12 Mar 2018 13:11:24 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:56900 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932342AbeCLRLX (ORCPT ); Mon, 12 Mar 2018 13:11:23 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 786041596; Mon, 12 Mar 2018 10:11:22 -0700 (PDT) Received: from [10.1.210.28] (unknown [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B07303F25C; Mon, 12 Mar 2018 10:11:18 -0700 (PDT) Cc: Sudeep Holla , Andrew Morton , open list , linux-mm@kvack.org, Michal Hocko , Vlastimil Babka , Mel Gorman , Pavel Tatashin , Paul Burton , linux- stable Subject: Re: [PATCH v3 2/2] mm/page_alloc: fix memmap_init_zone pageblock alignment To: Daniel Vacek , Naresh Kamboju References: <1519908465-12328-1-git-send-email-neelx@redhat.com> <0485727b2e82da7efbce5f6ba42524b429d0391a.1520011945.git.neelx@redhat.com> <20180302164052.5eea1b896e3a7125d1e1f23a@linux-foundation.org> From: Sudeep Holla Organization: ARM Message-ID: <461ae12b-bdff-0987-3b4e-0d7dbc09b2eb@arm.com> Date: Mon, 12 Mar 2018 17:11:16 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/03/18 16:51, Daniel Vacek wrote: [...] > > Hmm, does it step back perhaps? > > Can you check if below cures the boot hang? > Yes it does fix the boot hang. > --nX > > ~~~~ > neelx@metal:~/nX/src/linux$ git diff > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 3d974cb2a1a1..415571120bbd 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -5365,8 +5365,10 @@ void __meminit memmap_init_zone(unsigned long > size, int nid, unsigned long zone, > * the valid region but still depends on correct page > * metadata. > */ > - pfn = (memblock_next_valid_pfn(pfn, end_pfn) & > + unsigned long next_pfn; > + next_pfn = (memblock_next_valid_pfn(pfn, end_pfn) & > ~(pageblock_nr_pages-1)) - 1; > + pfn = max(next_pfn, pfn); > #endif > continue; > } > ~~~~ > -- Regards, Sudeep