lkml.org 
[lkml]   [2024]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 3/3] sh: Call paging_init() earlier in the init sequence
    On Fri, Feb 9, 2024 at 5:29 PM Oreoluwa Babatunde
    <quic_obabatun@quicinc.com> wrote:
    >
    > The unflatten_device_tree() function contains a call to
    > memblock_alloc(). This is a problem because this allocation is done
    > before any of the reserved memory is set aside in paging_init().
    > This means that there is a possibility for memblock to allocate from
    > any of the memory regions that are supposed to be set aside as reserved.
    >
    > Hence, move the call to paging_init() to be earlier in the init
    > sequence so that the reserved memory regions are set aside before any
    > allocations are done using memblock.
    >
    > Signed-off-by: Oreoluwa Babatunde <quic_obabatun@quicinc.com>
    > ---
    > arch/sh/kernel/setup.c | 4 ++--
    > 1 file changed, 2 insertions(+), 2 deletions(-)

    Reviewed-by: Rob Herring <robh@kernel.org>

    \
     
     \ /
      Last update: 2024-05-27 15:44    [W:4.296 / U:0.468 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site