Received: by 10.213.65.68 with SMTP id h4csp1042196imn; Wed, 14 Mar 2018 07:57:41 -0700 (PDT) X-Google-Smtp-Source: AG47ELvN22L7VJPDX5pacjxiVIj+6fPCzJSrgRQJTwY1l8antZtIHkqkUpCgugSTJFe15D5GqI+g X-Received: by 10.98.157.2 with SMTP id i2mr1625155pfd.44.1521039461284; Wed, 14 Mar 2018 07:57:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521039461; cv=none; d=google.com; s=arc-20160816; b=txqYMaZnvsuueGdOGLXVR+yeeim+ols9gHDp+6A9vEewigi1WL4rS7SyP5xJfbTQFW oEwdIyD+2U0RTPQfLW9G6aV2zAeipkJ0mzb6lRUyunW7a3XjG6JqTYBuOWx4JjTnVRDd HFDUux7xyF1i3Bjn6XDMsgPxlmXlPRExDlY+U63E8EHyTOQf4/DvDbjsuIeToU1bid8S ny2RTFXpCBVsGdQLfdPRqGfDSTcSdVA0sgyY8DJAM6rIsfMG7Kh8p1QlEbUU5oSGRwjQ zNMmvj/yfPw8yfWORvvb5IlYJdiH484rXk9+LVGU7YWb22RS+wS58TnWeqzU3mVVKKOj Q33g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=epDoWsGTuy4YocjKlMnmanr5o0obQUSCqolfY42Smxg=; b=yQ3vT7cCjXwt+MWCD1ZKCaEm43oGZ49JbAz6E5flvTptDK9s+JSdGqmfs9XpwttGGw cLNJ6owtLioX+llkcQe9gwyieZTB2CW22I51/GrsQCrvabyIQX3+XZoysLTlwEtl9Isp aDACTm+JWXApqz/+fr400giV2hc3k6q/cIItN2uHAvBcYBnncOW+OMKh7xWmMxZvwyni SiPyLwlVlv2KII+zEFpugQiEBMCmBOY4HmznAtl8Op9dZCILZOIz8ASpRm4btoZUjFK3 kLm5o4a4jQiq6jWXTEVa58Y6FhJYbatBNNgMjHZfWaXk8LobwajWeYciCb9TFxky5mF5 cd3A== 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 v23-v6si2071819plo.276.2018.03.14.07.57.26; Wed, 14 Mar 2018 07:57:41 -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 S1752189AbeCNOyy (ORCPT + 99 others); Wed, 14 Mar 2018 10:54:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:37530 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751679AbeCNOyx (ORCPT ); Wed, 14 Mar 2018 10:54:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 86E46ACE5; Wed, 14 Mar 2018 14:54:50 +0000 (UTC) Date: Wed, 14 Mar 2018 15:54:50 +0100 From: Michal Hocko To: Ard Biesheuvel Cc: linux-arm-kernel , Linux Kernel Mailing List , Mark Rutland , Will Deacon , Catalin Marinas , Marc Zyngier , Daniel Vacek , Mel Gorman , Paul Burton , Pavel Tatashin , Vlastimil Babka , Andrew Morton , Linus Torvalds Subject: Re: [PATCH] Revert "mm/page_alloc: fix memmap_init_zone pageblock alignment" Message-ID: <20180314145450.GI23100@dhcp22.suse.cz> References: <20180314134431.13241-1-ard.biesheuvel@linaro.org> <20180314141323.GD23100@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 14-03-18 14:35:12, Ard Biesheuvel wrote: > On 14 March 2018 at 14:13, Michal Hocko wrote: > > Does http://lkml.kernel.org/r/20180313224240.25295-1-neelx@redhat.com > > fix your issue? From the debugging info you provided it should because > > the patch prevents jumping backwards. > > > > The patch does fix the boot hang. > > But I am concerned that we are papering over a fundamental flaw in > memblock_next_valid_pfn(). It seems that memblock_next_valid_pfn is doing the right thing here. It is the alignment which moves the pfn back AFAICS. I am not really impressed about the original patch either, to be completely honest. It just looks awfully tricky. I still didn't manage to wrap my head around the original issue though so I do not have much better ideas to be honest. -- Michal Hocko SUSE Labs