Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1588502

Re: [PATCH RFC] arm64/mm: handle memmap kernel option

From Yisheng Xie <xieyisheng1@huawei.com>
Newsgroups linux.kernel
Subject Re: [PATCH RFC] arm64/mm: handle memmap kernel option
Date 2017-02-27 05:00 +0100
Message-ID <tfkDD-85x-1@gated-at.bofh.it> (permalink)
References <teEuK-3VN-3@gated-at.bofh.it> <tf4yR-5x2-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Ard,

Thanks for comment.
On 2017/2/26 18:46, Ard Biesheuvel wrote:
> On 25 February 2017 at 06:47, Yisheng Xie <xieyisheng1@huawei.com> 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 <dongbo4@huawei.com>
>> Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
> 
> 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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH RFC] arm64/mm: handle memmap kernel option Yisheng Xie <xieyisheng1@huawei.com> - 2017-02-25 08:00 +0100
  Re: [PATCH RFC] arm64/mm: handle memmap kernel option Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-02-26 11:50 +0100
    Re: [PATCH RFC] arm64/mm: handle memmap kernel option Yisheng Xie <xieyisheng1@huawei.com> - 2017-02-27 05:00 +0100
      Re: [PATCH RFC] arm64/mm: handle memmap kernel option Yisheng Xie <xieyisheng1@huawei.com> - 2017-02-27 11:30 +0100
        Re: [PATCH RFC] arm64/mm: handle memmap kernel option Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-02-27 13:00 +0100
      Re: [PATCH RFC] arm64/mm: handle memmap kernel option Mark Rutland <mark.rutland@arm.com> - 2017-02-27 13:00 +0100

csiph-web