Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp489812ybd; Wed, 26 Jun 2019 01:29:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjui28o2gUEFMQd4488IjHdJwdt/dsJX7k/psX6SBl84neSZ117ixhhTpKjFM1bhXAmLOn X-Received: by 2002:a63:24c1:: with SMTP id k184mr1823321pgk.120.1561537780016; Wed, 26 Jun 2019 01:29:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561537780; cv=none; d=google.com; s=arc-20160816; b=jAlgD3rKBM0/CHFGaD9Hf7lK24JQJxmavDeo+/SAqvdzSNlammOmZLzER2wc8RW0kL K/jwpYm3CDxtBFToWYUVF9h27BEyyZFUE7C8gIOrBvJuW9wZV1ab+4rL4h+L5DCfI6VG FJpv4u0lX7H+tQv+IRlCHk7Lsp72NqlIuTdS8ISGu5JnrzaoRFySvW4Iv2/B91kO+vm/ KyHWO+AlYfVM2BNraS9vHfFPMzCBNQ3sL5QDnoA2Mvd4gNoXXDooiYdKI2CiHnKEEnqn 9L74VkIlnDnP3BGmSYjLyiWuMZaFNuKqX7aMqNON0CNIkA/e7wLYsTCYFD7jKFve9Iq4 0AuQ== 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; bh=Ms7X/OxlHND0uIvqrZtVGSlK1qeTOLcqBYaQP0TCTJk=; b=TyfcNVMevSRrOi2zK8uiYoVruVRzO4NfvN9VbNZ7T0caG4JNKxW3fuI9Jmp6p3U5Kx BFbLq8kXWhM33xX6j9T644YXuSrY8OVp0OXnHg3uvFe9gRV+R72A4cW1rMvm2IWkrO3d NHRbu/NrHFztnM9bbSjaH4QoKYvLvFWrbZkPxT2IGM8jHQMQyGyRD8SS3d1+xQa6NNwt h38YBhbrUFbwI8Jr+tkIbki6kkyDc2TCbTF6I1zPhUXrOalu9B9YmUN0o3s0riOwg2R0 TxtnyRRNNqws2EBD+UUgslglKPdZTa/kGNGlhW5PoQJi9SJsl7mas9zi7BnLnncvZ3EE nEcw== 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 w23si2858365ply.230.2019.06.26.01.29.23; Wed, 26 Jun 2019 01:29:40 -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 S1727053AbfFZI2q (ORCPT + 99 others); Wed, 26 Jun 2019 04:28:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:60618 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726820AbfFZI2p (ORCPT ); Wed, 26 Jun 2019 04:28:45 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 0D80AAD7E; Wed, 26 Jun 2019 08:28:44 +0000 (UTC) Date: Wed, 26 Jun 2019 10:28:41 +0200 From: Oscar Salvador To: Anshuman Khandual Cc: akpm@linux-foundation.org, mhocko@suse.com, dan.j.williams@intel.com, pasha.tatashin@soleen.com, Jonathan.Cameron@huawei.com, david@redhat.com, vbabka@suse.cz, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/5] mm,memory_hotplug: allocate memmap from the added memory range for sparse-vmemmap Message-ID: <20190626082841.GE30863@linux> References: <20190625075227.15193-1-osalvador@suse.de> <20190625075227.15193-5-osalvador@suse.de> <3056b153-20a3-ac86-4a49-c26f8be4b2a6@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3056b153-20a3-ac86-4a49-c26f8be4b2a6@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 26, 2019 at 01:47:32PM +0530, Anshuman Khandual wrote: > Hello Oscar, > > On 06/25/2019 01:22 PM, Oscar Salvador wrote: > > diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c > > index 93ed0df4df79..d4b5661fa6b6 100644 > > --- a/arch/arm64/mm/mmu.c > > +++ b/arch/arm64/mm/mmu.c > > @@ -765,7 +765,10 @@ int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node, > > if (pmd_none(READ_ONCE(*pmdp))) { > > void *p = NULL; > > > > - p = vmemmap_alloc_block_buf(PMD_SIZE, node); > > + if (altmap) > > + p = altmap_alloc_block_buf(PMD_SIZE, altmap); > > + else > > + p = vmemmap_alloc_block_buf(PMD_SIZE, node); > > if (!p) > > return -ENOMEM; > > Is this really required to be part of this series ? I have an ongoing work > (reworked https://patchwork.kernel.org/patch/10882781/) enabling altmap > support on arm64 during memory hot add and remove path which is waiting on > arm64 memory-hot remove to be merged first. Hi Anshuman, I can drop this chunk in the next version. No problem. -- Oscar Salvador SUSE L3