From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751465AbdB0D5q (ORCPT ); Sun, 26 Feb 2017 22:57:46 -0500 Received: from szxga03-in.huawei.com ([45.249.212.189]:3415 "EHLO dggrg03-dlp.huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751306AbdB0D5o (ORCPT ); Sun, 26 Feb 2017 22:57:44 -0500 Subject: Re: [PATCH RFC] arm64/mm: handle memmap kernel option To: Ard Biesheuvel , Leif Lindholm References: <1488005245-54811-1-git-send-email-xieyisheng1@huawei.com> CC: Catalin Marinas , Will Deacon , Mark Rutland , Kefeng Wang , Jisheng Zhang , Ganapatrao Kulkarni , Laura Abbott , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Hanjun Guo , From: Yisheng Xie Message-ID: Date: Mon, 27 Feb 2017 11:48:50 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.40] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020202.58B3A1D8.002E,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 0c9abdb4fdabd2094d47e5a63a24f8c4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ard, Thanks for comment. On 2017/2/26 18:46, Ard Biesheuvel wrote: > On 25 February 2017 at 06:47, Yisheng Xie wrote: >> When use device tree mode, user can reserve memory by changes the dts, >> however, when boot with ACPI, user cannot reserve memory except by >> changing the ACPI table in BIOS, which is not so convenient. >> >> To make user reserve memory for some specific use more convenient, >> this patch implement the following memmap variants: >> - memmap=nn[KMG]$ss[KMG]: mark specified memory as reserved; >> - memmap=nn[KMG]@ss[KMG]: force usage of a specific region of memory; >> >> Reported-by: Bob Dong >> Signed-off-by: Yisheng Xie > > Could you explain which problem you are solving here? ACPI implies > UEFI on arm64, and so these reservations could be made by a boot > component instead, if it requires a fixed memory reservation. If this > is a reservation for, e.g., OP-TEE, we should not rely on the command > line to communicate this information. > We just want to reserve some memory for a driver and I just not so familiar with how to reserve memory with UEFI. So doubt about whether it is suitable to reserve memory with cmdline like "memmap=xxx", which had appeared in x86 for a long time. Thanks Yisheng Xie