Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2211407pxu; Sun, 6 Dec 2020 23:52:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTQ7opVoJbnZ0MFn+/yvFaBuw2SbJr9S23Rc8cVIE02RrQGuqDrr7AEqezl8JwEjpr87ol X-Received: by 2002:a17:907:3e85:: with SMTP id hs5mr18352444ejc.548.1607327533411; Sun, 06 Dec 2020 23:52:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607327533; cv=none; d=google.com; s=arc-20160816; b=NzM6FKtE5317gee16lIzGG5FvGWns/Qmb8F7PYJptlzVQe+T9VG+hfl6Ntz7Q8Q5kT JcyBtejQw6ok7wsVXXgVK03vcZW/UQwATCJmaCfp6mhY7YKHqS3Mwt66KOwvNDj+nM9l nq/+CbHjUjfl89nmaLlZjFH+7nN0G4fBckkQCQYl6KaoLBvNCRxkjeZhfWOreB0RGCaT XM8pnS+P1PnkBGs9qW8rrzmyG8XPYx51mmuG8smZiFf0tGJ4kO0QIzqBQL/2Wy3iZjuz FrMPX5zNs5utifFHZD4yjFzcaaBthPuG/6J/FYpsb5yWXsF8VyW1xKaBzfcLApuY1Gmd ky1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence: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=/wCXrAAuM1VHRCSJr3E4NZpZe7vYkov+IzrlpfS6FgY=; b=g3fGQ1ramYScpEOp5Hi/Tkm4RnXIu31mgoTVJgNfLYWqXV6q+h2VTAymNyOQFzBI3l QT2TlnXkqHcWJdxnfccDAqQYzRhZwq+d+VOoSwpntehp6dSvtrvamgoP4/3OrVgBBFah eELxcKudDHccX7sPbph5cydE5UxCqqx8JI+XSzaJezaRAE7SnX9MFdpYXF5uOL9KxOkb dZ0RidHK6LikGTHx8gE6FpIT6RrBJCPUoBgokPRT0s4ouiyvnF28N5RE0oQ2YbMEOvTA o4Rj+q0t+QLkKMEzzzs5rB6eN7exxjpclp+msslCg+zZWhRxR/fd3uRVYIuHYVQK5z4g u0og== 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 r23si6531338edy.237.2020.12.06.23.51.51; Sun, 06 Dec 2020 23:52:13 -0800 (PST) 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 S1726148AbgLGHsC (ORCPT + 99 others); Mon, 7 Dec 2020 02:48:02 -0500 Received: from szxga02-in.huawei.com ([45.249.212.188]:2520 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725853AbgLGHsC (ORCPT ); Mon, 7 Dec 2020 02:48:02 -0500 Received: from DGGEMM403-HUB.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4CqFkh5433zQpLL; Mon, 7 Dec 2020 15:46:52 +0800 (CST) Received: from dggpemm000002.china.huawei.com (7.185.36.174) by DGGEMM403-HUB.china.huawei.com (10.3.20.211) with Microsoft SMTP Server (TLS) id 14.3.487.0; Mon, 7 Dec 2020 15:47:19 +0800 Received: from dggemi761-chm.china.huawei.com (10.1.198.147) by dggpemm000002.china.huawei.com (7.185.36.174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1913.5; Mon, 7 Dec 2020 15:47:19 +0800 Received: from dggemi761-chm.china.huawei.com ([10.9.49.202]) by dggemi761-chm.china.huawei.com ([10.9.49.202]) with mapi id 15.01.1913.007; Mon, 7 Dec 2020 15:47:19 +0800 From: "Song Bao Hua (Barry Song)" To: Anshuman Khandual , Mike Rapoport , Will Deacon CC: "steve.capper@arm.com" , "catalin.marinas@arm.com" , "linux-kernel@vger.kernel.org" , "nsaenzjulienne@suse.de" , "liwei (CM)" , butao , "linux-arm-kernel@lists.infradead.org" , fengbaopeng Subject: RE: [PATCH] arm64: mm: decrease the section size to reduce the memory reserved for the page map Thread-Topic: [PATCH] arm64: mm: decrease the section size to reduce the memory reserved for the page map Thread-Index: AQHWyd8Pm9rJc08RmUuZbQcVlySHKKnmQzeAgAAIcQCABJBfwP//39CAgACJBcA= Date: Mon, 7 Dec 2020 07:47:19 +0000 Message-ID: References: <20201204014443.43329-1-liwei213@huawei.com> <20201204111347.GA844@willie-the-truck> <20201204114400.GT123287@linux.ibm.com> <60cb36d5dfcb4f9c904a83b520ecfe84@hisilicon.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.126.201.26] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQW5zaHVtYW4gS2hhbmR1 YWwgW21haWx0bzphbnNodW1hbi5raGFuZHVhbEBhcm0uY29tXQ0KPiBTZW50OiBNb25kYXksIERl Y2VtYmVyIDcsIDIwMjAgODozMSBQTQ0KPiBUbzogU29uZyBCYW8gSHVhIChCYXJyeSBTb25nKSA8 c29uZy5iYW8uaHVhQGhpc2lsaWNvbi5jb20+OyBNaWtlIFJhcG9wb3J0DQo+IDxycHB0QGxpbnV4 LmlibS5jb20+OyBXaWxsIERlYWNvbiA8d2ls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