lkml.org 
[lkml]   [2020]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v5] ARM: boot: Obtain start of physical memory from DTB
From
Date
21.04.2020 18:19, Ard Biesheuvel пишет:
> On Wed, 15 Apr 2020 at 17:34, Geert Uytterhoeven
> <geert+renesas@glider.be> wrote:
>>
>> Currently, the start address of physical memory is obtained by masking
>> the program counter with a fixed mask of 0xf8000000. This mask value
>> was chosen as a balance between the requirements of different platforms.
>> However, this does require that the start address of physical memory is
>> a multiple of 128 MiB, precluding booting Linux on platforms where this
>> requirement is not fulfilled.
>>
>> Fix this limitation by obtaining the start address from the DTB instead,
>> if available (either explicitly passed, or appended to the kernel).
>> Fall back to the traditional method when needed.
>>
>> This allows to boot Linux on r7s9210/rza2mevb using the 64 MiB of SDRAM
>> on the RZA2MEVB sub board, which is located at 0x0C000000 (CS3 space),
>> i.e. not at a multiple of 128 MiB.
>>
>> Suggested-by: Nicolas Pitre <nico@fluxnic.net>
>> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>> Reviewed-by: Nicolas Pitre <nico@fluxnic.net>
>> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
>> Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
>> Tested-by: Dmitry Osipenko <digetx@gmail.com>
>
> This is ready to go into the patch system, no?
>
> The sooner Russell picks it up, the sooner I can respin my patches
> that go on top.
>
> Thanks,

The v5 works for me on NVIDIA Tegra, just in case.

\
 
 \ /
  Last update: 2020-04-21 17:31    [W:0.134 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site