Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp318393ybt; Wed, 8 Jul 2020 00:20:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgZkSU0zqZ0A+O0dIREt3RpYjARr7VwKO+qmXFHDqQlMA3sWLPmLbCMBKE96xpWGLdB4ZT X-Received: by 2002:a17:906:a055:: with SMTP id bg21mr46334002ejb.516.1594192815172; Wed, 08 Jul 2020 00:20:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594192815; cv=none; d=google.com; s=arc-20160816; b=oCinubd9TTgu8wRKIcTYZfRcs2OkAaioy0SbqQeIpuUR9GuBZtGd380VtOBW6I4Dz/ z9fLW7bLm+7D2CyNl6ud+bZUivm//2UatLoLOnxMXe0E34r8qGL4RwVMH9pYz0jlOk/d 6HD/4z5V4/+8RbKmk2rWA47wm3S3Oj4go7HHuvjuuQbTPQBKeA2asRg5wQij0S5hTBoP oNPbyitoOZSHLM0UI1XT2YLzacIRgonIp9Uzvnb0FK68io+42tFOK/1r4WJ14iYCNvVG IiNsFgkEXni4Nur7AHYNtNsdbr5Qjptz0A1gUpAG29K7wD7leuRhtCVlWMiT9/6u2Vvs hbSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=ldG3J8mftxaDC9+TZpAaXSu4/LrQwv6ZFu7HcJuKpvg=; b=GhKkL0Nldu7fY4epsOpL4BP8hPJeaYjhzVwV3wOcOo8kjiTbmnRgZQVYtMyf5f7tCv 3LPD8BuiaZR2i2DTwIqQxeVYDECV+94grWKHcOd6bRFFgIKSysjKqB98gMmjZA+OBUyC JrdMG4wY5VSVAW9EBKtQk0rqC/Q6qcsZmCC8wsLUqIS4wahQbwl8HwC8GnOhml3ShYsM spRwjJvuuFT04uKkYvf2OhdjZA1MtKRkkiSXoBe1G7GAnFqU5sUJwDzi664yb64wmXaX ze98EBg+DpNqkzPXTSPsJwhEVm5GcLN8CoBWX2wDphLSmQThFBbu/ccBk72moYvtNRsY 1tBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si1865876ejp.659.2020.07.08.00.19.52; Wed, 08 Jul 2020 00:20:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730210AbgGHHSw convert rfc822-to-8bit (ORCPT + 99 others); Wed, 8 Jul 2020 03:18:52 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:2565 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729972AbgGHHSv (ORCPT ); Wed, 8 Jul 2020 03:18:51 -0400 Received: from dggemi404-hub.china.huawei.com (unknown [172.30.72.55]) by Forcepoint Email with ESMTP id CE7EC7E3DC7FCAFBC0BD; Wed, 8 Jul 2020 15:18:47 +0800 (CST) Received: from DGGEMI525-MBS.china.huawei.com ([169.254.6.177]) by dggemi404-hub.china.huawei.com ([10.3.17.142]) with mapi id 14.03.0487.000; Wed, 8 Jul 2020 15:18:41 +0800 From: "Song Bao Hua (Barry Song)" To: "liwei (CM)" , "catalin.marinas@arm.com" , "will@kernel.org" CC: fengbaopeng , "nsaenzjulienne@suse.de" , "steve.capper@arm.com" , "rppt@linux.ibm.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , sujunfei Subject: RE: [PATCH] arm64: mm: free unused memmap for sparse memory model that define VMEMMAP Thread-Topic: [PATCH] arm64: mm: free unused memmap for sparse memory model that define VMEMMAP Thread-Index: AQHWVMrtlX9AbygsxkCkGlEoK5gXXaj9QcNg Date: Wed, 8 Jul 2020 07:18:39 +0000 Message-ID: References: <20200708015555.14946-1-liwei213@huawei.com> In-Reply-To: <20200708015555.14946-1-liwei213@huawei.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.126.200.214] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: liwei (CM) > Sent: Wednesday, July 8, 2020 1:56 PM > To: catalin.marinas@arm.com; will@kernel.org > Cc: liwei (CM) ; fengbaopeng > ; nsaenzjulienne@suse.de; > steve.capper@arm.com; rppt@linux.ibm.com; Song Bao Hua (Barry Song) > ; linux-arm-kernel@lists.infradead.org; > linux-kernel@vger.kernel.org; sujunfei > Subject: [PATCH] arm64: mm: free unused memmap for sparse memory model > that define VMEMMAP > > For the memory hole, sparse memory model that define > SPARSEMEM_VMEMMAP do not free the reserved memory for the page map, > this patch do it. Hello Wei, Just curious if this patch breaks MEMORY_HOTPLUG? > > Signed-off-by: Wei Li > Signed-off-by: Chen Feng > Signed-off-by: Xia Qing > --- > arch/arm64/mm/init.c | 81 > +++++++++++++++++++++++++++++++++++++++++++++------- > 1 file changed, 71 insertions(+), 10 deletions(-) > > diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index > 1e93cfc7c47a..d1b56b47d5ba 100644 > --- a/arch/arm64/mm/init.c > +++ b/arch/arm64/mm/init.c > @@ -441,7 +441,48 @@ void __init bootmem_init(void) > memblock_dump_all(); > } > Thanks Barry