public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] x86: add support for reserved memory defined by DT
@ 2026-03-13 16:03 Grzegorz Jaszczyk
  2026-03-13 16:03 ` [PATCH v4 1/2] x86/of: add early setup of DT reserved-memory nodes Grzegorz Jaszczyk
  2026-03-13 16:03 ` [PATCH v4 2/2] x86/e820: reserve corresponding to DT reserved-memory nomap region Grzegorz Jaszczyk
  0 siblings, 2 replies; 3+ messages in thread
From: Grzegorz Jaszczyk @ 2026-03-13 16:03 UTC (permalink / raw)
  To: tglx, robh
  Cc: mingo, bp, dave.hansen, x86, hpa, saravanak, dmaluka, bgrzesik,
	jaszczyk, ilpo.jarvinen, usamaarif642, linux-kernel, devicetree,
	tnowicki, mazurekm, vineethrp, rppt, agordeev, dyoung,
	myrrhperiwinkle, guoweikang.kernel, kirill.shutemov, akpm,
	joel.granados, sourabhjain

Currently x86 allows to boot with ACPI and DT at the same time and basic DT
support is already in place but processing DT reserved memory was missing.

The DT reserved-memory nodes can be present in DT as described in
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml.
Similar to other architecture, which supports DT, there is a need to
scan and register reserved memory regions on x86 for such nodes. It is required
by drivers (e.g. open-dice driver) to process DT reserved-memory regions.

v3 -> v4:
- Rebased onto latest upstream baseline. Previous series:
 https://lore.kernel.org/all/20250618210628.2635891-1-jaszczyk@chromium.org/
- Improved commit logs
- Improved e820__reserve_nomap_region to perform e820__update_table_print only
once
- Fixed e820__reserve_nomap_region by passing region->base instead of truncated
start address and original size, which was wrong

v2 -> v3:
- Patch #1 which extends of/reserved_mem and adds the possibility to register an
arch specific hook was dropped. Instead "x86/e820: reserve corresponding to DT
reserved-memory nomap region" was introduced.
- "x86/of: add support for reserved memory defined by DT" stop relying on arch
specific hook. Also calling x86_flattree_get_config was moved and is now called
earlier during memblock setup.
For more info please refer to commit log description and v2 discussion:
https://lore.kernel.org/all/20250418124718.1009563-1-jaszczyk@chromium.org/

Grzegorz Jaszczyk (2):
  x86/of: add early setup of DT reserved-memory nodes
  x86/e820: reserve corresponding to DT reserved-memory nomap region

 arch/x86/include/asm/e820/api.h |  1 +
 arch/x86/kernel/devicetree.c    |  1 +
 arch/x86/kernel/e820.c          | 20 ++++++++++++++++++++
 arch/x86/kernel/setup.c         |  6 ++++--
 4 files changed, 26 insertions(+), 2 deletions(-)

-- 
2.53.0.851.ga537e3e6e9-goog


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

end of thread, other threads:[~2026-03-13 16:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-13 16:03 [PATCH v4 0/2] x86: add support for reserved memory defined by DT Grzegorz Jaszczyk
2026-03-13 16:03 ` [PATCH v4 1/2] x86/of: add early setup of DT reserved-memory nodes Grzegorz Jaszczyk
2026-03-13 16:03 ` [PATCH v4 2/2] x86/e820: reserve corresponding to DT reserved-memory nomap region Grzegorz Jaszczyk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox