Home
last modified time | relevance | path

Searched hist:cca079ef8ac29a7c02192d2bad2ffe4c0c5ffdd0 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/sparc/mm/
H A Dinit_32.cdiff bda166930c37604ffa93f2425426af6921ec575a Fri Feb 05 07:20:31 CST 2021 Andreas Larsson <andreas@gaisler.com> sparc32: Limit memblock allocation to low memory

Commit cca079ef8ac29a7c02192d2bad2ffe4c0c5ffdd0 changed sparc32 to use
memblocks instead of bootmem, but also made high memory available via
memblock allocation which does not work together with e.g. phys_to_virt
and can lead to kernel panic.

This changes back to only low memory being allocatable in the early
stages, now using memblock allocation.

Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
diff cca079ef8ac29a7c02192d2bad2ffe4c0c5ffdd0 Mon Aug 06 05:52:34 CDT 2018 Mike Rapoport <rppt@linux.vnet.ibm.com> sparc32: switch to NO_BOOTMEM

Each populated sparc_phys_bank is added to memblock.memory. The
reserve_bootmem() calls are replaced with memblock_reserve(), and the
bootmem bitmap initialization is droppped.

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
/openbmc/linux/arch/sparc/
H A DKconfigdiff cca079ef8ac29a7c02192d2bad2ffe4c0c5ffdd0 Mon Aug 06 05:52:34 CDT 2018 Mike Rapoport <rppt@linux.vnet.ibm.com> sparc32: switch to NO_BOOTMEM

Each populated sparc_phys_bank is added to memblock.memory. The
reserve_bootmem() calls are replaced with memblock_reserve(), and the
bootmem bitmap initialization is droppped.

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>