lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250430084138.2287031-1-jaszczyk@chromium.org>
Date: Wed, 30 Apr 2025 08:41:36 +0000
From: Grzegorz Jaszczyk <jaszczyk@...omium.org>
To: tglx@...utronix.de,
	robh@...nel.org
Cc: mingo@...hat.com,
	bp@...en8.de,
	dave.hansen@...ux.intel.com,
	x86@...nel.org,
	hpa@...or.com,
	saravanak@...gle.com,
	dmaluka@...omium.org,
	bgrzesik@...gle.com,
	jaszczyk@...gle.com,
	ilpo.jarvinen@...ux.intel.com,
	usamaarif642@...il.com,
	linux-kernel@...r.kernel.org,
	devicetree@...r.kernel.org,
	tnowicki@...gle.com,
	mazurekm@...gle.com,
	vineethrp@...gle.com,
	rppt@...nel.org,
	agordeev@...ux.ibm.com,
	dyoung@...hat.com,
	myrrhperiwinkle@...labs.xyz,
	guoweikang.kernel@...il.com,
	kirill.shutemov@...ux.intel.com,
	akpm@...ux-foundation.org,
	joel.granados@...nel.org,
	sourabhjain@...ux.ibm.com
Subject: [PATCH v3 0/2] x86: add support for reserved memory defined by DT

From: Grzegorz Jaszczyk <jaszczyk@...gle.com>

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.

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 support for reserved memory defined by DT
  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          | 19 +++++++++++++++++++
 arch/x86/kernel/setup.c         |  6 ++++--
 4 files changed, 25 insertions(+), 2 deletions(-)

-- 
2.49.0.901.g37484f566f-goog


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ