[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230412224620.8909-1-tanure@linux.com>
Date: Wed, 12 Apr 2023 18:46:19 -0400
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 v3 0/1] 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 problem happens when the ARM Trusted Firmware memory is not
removed from the available ram.
This happens because my u-boot provides /memreserve/, but it doesn't flag
it as nomap. And the kernel scan of /reserved-memory node can't map as
nomap as the region is already reserved.
The idea now is to scan /memreserve/ after /reserved-memory node, and
/memreserve/ will skip regions already reserved by /reserved-memory node.
Previous 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/
V1: https://lore.kernel.org/all/20230406151429.524591-1-tanure@linux.com/
v2: https://lore.kernel.org/all/20230410120017.41664-1-tanure@linux.com/
Change from V2:
- Remove region overlap and reserved checks
Change from V1:
- Instead of allowing to mark nomap a region already reserved, give
precedence to /reserved-memory node scan.
Lucas Tanure (1):
of: fdt: Scan /memreserve/ last
drivers/of/fdt.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--
2.40.0
Powered by blists - more mailing lists