public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] x86: add support for reserved memory defined by DT
@ 2025-04-18 12:47 Grzegorz Jaszczyk
  2025-04-18 12:47 ` [PATCH v2 1/2] of: fdt: allow to register arch specific hook validating reserved region Grzegorz Jaszczyk
  2025-04-18 12:47 ` [PATCH v2 2/2] x86/of: add support for reserved memory defined by DT Grzegorz Jaszczyk
  0 siblings, 2 replies; 7+ messages in thread
From: Grzegorz Jaszczyk @ 2025-04-18 12:47 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, Grzegorz Jaszczyk

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.

Patch #1 extends of/reserved_mem and adds the possibility to register an arch
specific hook, which will allow to validate if reserved-memory region passed by
DT is valid.

Patch #2, uses introduced in Patch #1 API and registers x86 specific hook, which
will validate if reserved-memory region passed by DT is covered by E820 reserved
region entry.

For more details please refer to the commit log description of individual
patches.

v1 -> v2: simplify and fix off-by-one in x86_is_region_reserved as suggested by
          Dmytro Maluka offline

Grzegorz Jaszczyk (2):
  of: fdt: allow to register arch specific hook validating reserved
    region
  x86/of: add support for reserved memory defined by DT

 arch/x86/kernel/devicetree.c |  9 +++++++++
 drivers/of/of_reserved_mem.c | 14 ++++++++++++++
 include/linux/of_fdt.h       |  4 ++++
 3 files changed, 27 insertions(+)

-- 
2.49.0.805.g082f7c87e0-goog


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

end of thread, other threads:[~2025-04-30  8:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-18 12:47 [PATCH v2 0/2] x86: add support for reserved memory defined by DT Grzegorz Jaszczyk
2025-04-18 12:47 ` [PATCH v2 1/2] of: fdt: allow to register arch specific hook validating reserved region Grzegorz Jaszczyk
2025-04-18 12:47 ` [PATCH v2 2/2] x86/of: add support for reserved memory defined by DT Grzegorz Jaszczyk
2025-04-23 14:09   ` Rob Herring
2025-04-24 18:06     ` Grzegorz Jaszczyk
2025-04-25 19:18       ` Rob Herring
2025-04-30  8:55         ` Grzegorz Jaszczyk

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