Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp987247ybh; Wed, 22 Jul 2020 19:34:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzs0+Fn+1yX6tneAgfHN6/P80CIjhvWUtPhUbHUglQCSBgqgekbgGGwCaBgNheKJDKsAfo X-Received: by 2002:a17:906:1cd4:: with SMTP id i20mr1090851ejh.480.1595471679607; Wed, 22 Jul 2020 19:34:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595471679; cv=none; d=google.com; s=arc-20160816; b=G6ndSkJSbPOKuFg1ydHsFBwQc+G1BlccoXFV5wxOHwaqyy3JYMV3wp67+aDyS4yv8k ZMbtkJkhzOSHgn3wDFWZnxVs/YhSDma0b2Kq1q2KHJaG8AHjfFM3V6n7pu4a72YR0x9w v8hgxD/NH6J/qEcO4g9QR+Gkby16aJ11LUQE+J72ZI8pLWmgiOCVIUyESbtAhroNHI6T 5L50tHcUydRfxH6CxATqqRXD04VglL0gkT8XLs8MhwRYNxhgd5Af6uWPSAtPHtUKm1uk FEDDABjYewyaR9tQlYi4JXbO0ziwqNgzPH82oWnEUN8tXVMnGP+8vVnzWrX1WNtSh1fo WB0g== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=dSpXPq/uKv3gPc1UCpLJDtK/uxygrlQ+KGvBAg6Fdwg=; b=IPzdiGpa+zLm05kXJtE0B1DsiEl6Bll1LYUE12vBt/o4Bn7DWwa3nM8YgHiPEhiKAv LG5HtjrnsHP3mQigwaJfICVx1bzHU5DXkcgtPiTHsQ3uDrol9IEZdm4EoGIXlq9F7jZL Rd0aQ1/mwWfgoqAmq5dvCfQ/OYnkzyfJu0u1QVDjWSq54jCYR6fN4W0y27MiOhnlV72Y yWa6fb5RBfZfJe/BWAUjQYKvhGys0375jjlLTpp4AGIG9bqy9EQSnDr1vhhC24vAAWiA F3lHNM+MWNCBMPA3MagyXDqqcWqxXhrTeiyNs2ghbUAfJOJpFP9rqX+Y+bZuFclwJx5m U7dg== 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 h28si1324086edj.267.2020.07.22.19.34.17; Wed, 22 Jul 2020 19:34:39 -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 S1733112AbgGWCdz (ORCPT + 99 others); Wed, 22 Jul 2020 22:33:55 -0400 Received: from foss.arm.com ([217.140.110.172]:37338 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728914AbgGWCdz (ORCPT ); Wed, 22 Jul 2020 22:33:55 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E7DD231B; Wed, 22 Jul 2020 19:33:54 -0700 (PDT) Received: from [10.163.85.73] (unknown [10.163.85.73]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 08D203F718; Wed, 22 Jul 2020 19:33:49 -0700 (PDT) Subject: Re: [PATCH] arm64: mm: free unused memmap for sparse memory model that define VMEMMAP To: Wei Li , catalin.marinas@arm.com, will@kernel.org Cc: song.bao.hua@hisilicon.com, sujunfei2@hisilicon.com, saberlily.xia@hisilicon.com, linux-arm-kernel@lists.infradead.org, steve.capper@arm.com, puck.chen@hisilicon.com, linux-kernel@vger.kernel.org, rppt@linux.ibm.com, fengbaopeng2@hisilicon.com, nsaenzjulienne@suse.de, butao@hisilicon.com References: <20200721073203.107862-1-liwei213@huawei.com> From: Anshuman Khandual Message-ID: Date: Thu, 23 Jul 2020 08:03:13 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200721073203.107862-1-liwei213@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/21/2020 01:02 PM, Wei Li wrote: > 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. > > 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(-) This patch does not compile on 5.8-rc6 with defconfig.