[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <461ae12b-bdff-0987-3b4e-0d7dbc09b2eb@arm.com>
Date: Mon, 12 Mar 2018 17:11:16 +0000
From: Sudeep Holla <sudeep.holla@....com>
To: Daniel Vacek <neelx@...hat.com>,
Naresh Kamboju <naresh.kamboju@...aro.org>
Cc: Sudeep Holla <sudeep.holla@....com>,
Andrew Morton <akpm@...ux-foundation.org>,
open list <linux-kernel@...r.kernel.org>, linux-mm@...ck.org,
Michal Hocko <mhocko@...e.com>,
Vlastimil Babka <vbabka@...e.cz>,
Mel Gorman <mgorman@...hsingularity.net>,
Pavel Tatashin <pasha.tatashin@...cle.com>,
Paul Burton <paul.burton@...tec.com>,
linux- stable <stable@...r.kernel.org>
Subject: Re: [PATCH v3 2/2] mm/page_alloc: fix memmap_init_zone pageblock
alignment
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@...al:~/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
Powered by blists - more mailing lists