linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] fdt: Mark "/reserved-memory" nodes as nosave if !reusable
@ 2023-05-30  8:04 Alexandre Ghiti
  2023-05-30  8:04 ` [RFC PATCH 1/1] " Alexandre Ghiti
  0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Ghiti @ 2023-05-30  8:04 UTC (permalink / raw)
  To: Rafael J . Wysocki, Pavel Machek, linux-pm, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Rob Herring, Frank Rowand,
	Atish Patra, Anup Patel, Björn Töpel, Conor Dooley,
	linux-riscv, linux-kernel, devicetree
  Cc: Alexandre Ghiti

In the RISC-V kernel, the firmware does not mark the region it uses as
"no-map" so that the kernel can avoid having holes in the linear mapping
and then use larger pages.

But with the recent support of hibernation on RISC-V, we noticed that
the hibernation process was trying to access those firmware regions
which are protected from *all* accesses (using PMP). So the hibernation
process fails.

We still don't have any "specification" regarding the naming of those
firmware regions, so we can't currently target those specific regions
(they are described as subnodes of "/reserved-memory").

I think we should actually mark all those "/reserved-memory" regions as
"nosave" since they should not be used by the kernel (see the
documentation pointed in the patch), hence the RFC since I may be
missing something here (legacy, other usage...etc).

Please let me know what you think!

Alexandre Ghiti (1):
  fdt: Mark "/reserved-memory" nodes as nosave if !reusable

 arch/riscv/kernel/setup.c |  2 +
 drivers/of/fdt.c          | 77 +++++++++++++++++++++++++++++++++++++++
 include/linux/of_fdt.h    |  1 +
 3 files changed, 80 insertions(+)

-- 
2.39.2


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

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

end of thread, other threads:[~2023-06-09 14:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-30  8:04 [RFC PATCH 0/1] fdt: Mark "/reserved-memory" nodes as nosave if !reusable Alexandre Ghiti
2023-05-30  8:04 ` [RFC PATCH 1/1] " Alexandre Ghiti
2023-06-09 14:54   ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).