Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3348804imm; Sun, 14 Oct 2018 18:09:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV60Ippm2pZud1nqP1AyixV1Gg6SkfJbRNW3Jct6Cic9w7lI6W8Gjl8725EB1AE1b+JS8DVI4 X-Received: by 2002:a62:5c03:: with SMTP id q3-v6mr15733281pfb.182.1539565787230; Sun, 14 Oct 2018 18:09:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539565787; cv=none; d=google.com; s=arc-20160816; b=rTdMozPhwbz5+MNxR5GAM2BhNLnaN7faC4h3ytvXL6Dc9M+85YxQAyyuR6b+Kqkg5j pwsaZdis/P6LNrOhRnYJfyfWCeM2PN/rom6w05JBwXR15CT+ehgehAxmUP+ljjChgUux a8lRIVPm8khd0+xbablKy+IeS/yMypz1Bush2na5Jz9+G/t4oKyhCKMT9kXcH4VBwOgZ cVZxyRf+T3lHFP/y2B13QR3sclRm9Oe+75J9YsVTwxc0uBOxLe2Owqwe/WrOz78Q5h0q kKn87aMvJJokh3wvi6clFq11Ra1J593q/lw3Xr6ojXqK2oKUIDAVcAm+q8BZwGofrLJ6 wUhw== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=buA4qveWy6Uu6m1fpS06HDTHxpAUKLhDZMeNVd8jwiA=; b=K4dWeWUzEg339FU2LbRzpiJsSDKCe/Zf9uaCiAMT5o4UGsEfHWG0MAzbM2DHurdZVf iRnEoiVfVruyUQwMSjzWQ2ee83A9xFv42xlZ1mTgAh74BixcZVjO/MGXKbLrda//6KLj aSM0a9TmG5CAFsAZhdZj2fOspzxdQNQClti/nk0mlLF8DVEwcZhJDHAfb2fqKNyhGc6i d0OpCRi7QoSqxCzr8FNTsm4j3KiyzNe4f6K34YSyL84kbFfva5n9e4rqeDcoNctDu1Gn 8w7GLmdgsa+8w8CajytThTGWTGdOdap5ppvjquewvy2Q9i1AykyvgHnD7m4VMue5Jral 8bWg== 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 o1-v6si8627266pld.218.2018.10.14.18.09.32; Sun, 14 Oct 2018 18:09:47 -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 S1726524AbeJOIwH (ORCPT + 99 others); Mon, 15 Oct 2018 04:52:07 -0400 Received: from gate.crashing.org ([63.228.1.57]:45629 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726186AbeJOIwH (ORCPT ); Mon, 15 Oct 2018 04:52:07 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id w9F0lDBk027228; Sun, 14 Oct 2018 19:47:15 -0500 Message-ID: <9cfe508c687068853a6e5e030962a78467a8d313.camel@kernel.crashing.org> Subject: Re: [PATCH 01/33] powerpc: use mm zones more sensibly From: Benjamin Herrenschmidt To: Christoph Hellwig , Paul Mackerras , Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, iommu@lists.linux-foundation.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 15 Oct 2018 11:47:13 +1100 In-Reply-To: <20181009132500.17643-2-hch@lst.de> References: <20181009132500.17643-1-hch@lst.de> <20181009132500.17643-2-hch@lst.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-10-09 at 15:24 +0200, Christoph Hellwig wrote: > * Find the least restrictive zone that is entirely below the > @@ -324,11 +305,14 @@ void __init paging_init(void) > printk(KERN_DEBUG "Memory hole size: %ldMB\n", > (long int)((top_of_ram - total_ram) >> 20)); > > +#ifdef CONFIG_ZONE_DMA > + max_zone_pfns[ZONE_DMA] = min(max_low_pfn, 0x7fffffffUL >> PAGE_SHIFT); > +#endif > + max_zone_pfns[ZONE_NORMAL] = max_low_pfn; > #ifdef CONFIG_HIGHMEM > - limit_zone_pfn(ZONE_NORMAL, lowmem_end_addr >> PAGE_SHIFT); > + max_zone_pfns[ZONE_HIGHMEM] = max_pfn ^ Missing a ";" here --------------------------| Sorry ... works with that fix on an old laptop with highmem. > #endif > - limit_zone_pfn(TOP_ZONE, top_of_ram >> PAGE_SHIFT); > - zone_limits_final = true; > + > free_area_init_nodes(max_zone_pfns); >