[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230406151429.524591-1-tanure@linux.com>
Date: Thu, 6 Apr 2023 16:14:27 +0100
From: Lucas Tanure <tanure@...ux.com>
To: Rob Herring <robh+dt@...nel.org>,
Frank Rowand <frowand.list@...il.com>,
Mike Rapoport <rppt@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, jbrunet@...libre.com,
linux-amlogic@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org,
martin.blumenstingl@...glemail.com, narmstrong@...libre.com,
stefan@...er.ch, Lucas Tanure <tanure@...ux.com>
Subject: [PATCH 0/2] Fix Random Kernel panic from when fail to reserve memory
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@...0000 {
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
Powered by blists - more mailing lists