All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix Random Kernel panic from when fail to reserve memory
@ 2023-04-06 15:14 ` Lucas Tanure
  0 siblings, 0 replies; 15+ messages in thread
From: Lucas Tanure @ 2023-04-06 15:14 UTC (permalink / raw)
  To: Rob Herring, Frank Rowand, Mike Rapoport, Andrew Morton
  Cc: devicetree, linux-kernel, linux-mm, jbrunet, linux-amlogic,
	linux-arm-kernel, martin.blumenstingl, narmstrong, stefan,
	Lucas Tanure

I am trying to fix an issue where the kernel panics randomly on my Vim3 board.
The issue happens when the ARM Trusted Firmware memory is not removed from the
available ram.

This happens because my u-boot provides this region as a /memreserve/, but it
doesn't flag it as nomap. And the kernel can't map as nomap as the region is
already reserved.
My proposal here is to allow the kernel to mark as nomap if the region from
the device tree and FDT have the same base and size.

arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi:
	/* 3 MiB reserved for ARM Trusted Firmware (BL31) */
	secmon_reserved: secmon@5000000 {
		reg = <0x0 0x05000000 0x0 0x300000>;
		no-map;
	};

Previos Threads:
#regzbot link: https://lore.kernel.org/linux-arm-kernel/40ca11f84b7cdbfb9ad2ddd480cb204a@agner.ch/#regzbot
#regzbot link: https://lore.kernel.org/all/CAJX_Q+1Tjc+-TjZ6JW9X0NxEdFe=82a9626yL63j7uVD4LpxEA@mail.gmail.com/

Lucas Tanure (2):
  memblock: Differentiate regions overlap from both regions being the
    same
  of: fdt: Allow the kernel to mark nomap regions received from fdt

 drivers/of/fdt.c         | 10 ++++++----
 include/linux/memblock.h | 18 +++++++++++++++---
 mm/memblock.c            | 37 ++++++++++++++++++++++++-------------
 3 files changed, 45 insertions(+), 20 deletions(-)

-- 
2.40.0


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-04-06 16:07 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-06 15:14 [PATCH 0/2] Fix Random Kernel panic from when fail to reserve memory Lucas Tanure
2023-04-06 15:14 ` Lucas Tanure
2023-04-06 15:14 ` Lucas Tanure
2023-04-06 15:14 ` [PATCH 1/2] memblock: Differentiate regions overlap from both regions being the same Lucas Tanure
2023-04-06 15:14   ` Lucas Tanure
2023-04-06 15:14   ` Lucas Tanure
2023-04-06 15:14 ` [PATCH 2/2] of: fdt: Allow the kernel to mark nomap regions received from fdt Lucas Tanure
2023-04-06 15:14   ` Lucas Tanure
2023-04-06 15:14   ` Lucas Tanure
2023-04-06 15:48   ` Rob Herring
2023-04-06 15:48     ` Rob Herring
2023-04-06 15:48     ` Rob Herring
2023-04-06 16:06     ` Neil Armstrong
2023-04-06 16:06       ` Neil Armstrong
2023-04-06 16:06       ` Neil Armstrong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.