All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] UEFI stub FDT handling fixes
@ 2015-10-07  8:35 Ard Biesheuvel
       [not found] ` <1444206929-13374-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 13+ messages in thread
From: Ard Biesheuvel @ 2015-10-07  8:35 UTC (permalink / raw)
  To: linux-efi-u79uwXL29TY76Z2rM5mHXA,
	matt.fleming-ral2JQCrhuEAvxtiuMwx3w,
	grant.likely-QSEj5FYQhm4dnm+yROfE0A,
	leif.lindholm-QSEj5FYQhm4dnm+yROfE0A
  Cc: mark.rutland-5wv7dgnIgG8, msalter-H+wXaHxf7aLQT0dZR+AlfA,
	Ard Biesheuvel

This is an alternative approach to some of the issues addressed by my series
'arm64 UEFI early FDT handling', of which the latest version (v3) can be found
here: http://thread.gmane.org/gmane.linux.kernel.efi/6334

The issues that are addressed by the original series are:
- when booting via UEFI, memreserve entries are removed from the device tree but
  the /reserved-memory node is not
- memory nodes are removed from the device tree in a way that is not officially
  supported by the libfdt API (i.e., you cannot delete nodes while traversing
  the tree)
- removal of memory nodes may discard annotations (such as NUMA topology) that
  should ideally be retained, or may corrupt the tree by discarding nodes
  referenced by phandles.

After having discussed this offline between Grant, Leif and myself, we have come
to the [preliminary] conclusion that discarding the /reserved-memory is not the
way to go, and we will be far better off honoring those reservations to the
extent possible. At the same time, the /memory node binding does not contain any
annotations, so discarding those prevents more issues than it creates as long as
we do it cautiously.

This series addresses both issues: it it sanity check the /reserved-memory node
to ensure that it does not contain any reservations we will not be able to
honor (patch #1, #2) and updates the /memory removal loop to restart from the
root of the tree each time a /memory node is found and removed (patch #3)

Ard Biesheuvel (3):
  efi/libstub: move FDT sanity check out of allocation loop
  efi/libstub: sanity check the /reserved-memory DT node
  efi/libstub: fix deletion of FDT memory nodes

 drivers/firmware/efi/libstub/fdt.c | 187 ++++++++++++++++++--
 1 file changed, 169 insertions(+), 18 deletions(-)

-- 
1.9.1

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

end of thread, other threads:[~2015-11-17 12:09 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-07  8:35 [PATCH 0/3] UEFI stub FDT handling fixes Ard Biesheuvel
     [not found] ` <1444206929-13374-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-10-07  8:35   ` [PATCH 1/3] efi/libstub: move FDT sanity check out of allocation loop Ard Biesheuvel
     [not found]     ` <1444206929-13374-2-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-11-17 11:47       ` Mark Rutland
2015-11-17 12:09         ` Ard Biesheuvel
2015-10-07  8:35   ` [PATCH 2/3] efi/libstub: sanity check the /reserved-memory DT node Ard Biesheuvel
2015-10-07  8:35   ` [PATCH 3/3] efi/libstub: fix deletion of FDT memory nodes Ard Biesheuvel
     [not found]     ` <1444206929-13374-4-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-10-07 15:49       ` Mark Salter
     [not found]         ` <1444232962.25536.7.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-10-07 16:02           ` Ard Biesheuvel
     [not found]             ` <CAKv+Gu_0haKU-nBB6t+iWeLteLDHz8YLOByfo7fWsrAr7txXpg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-07 17:56               ` Ard Biesheuvel
     [not found]                 ` <CAKv+Gu-ZgLOxqL3CWCpR=Ae-BHVExFRVj4d5nEdz3tPK1a-FGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-07 17:57                   ` Ard Biesheuvel
2015-10-07 18:04                   ` Mark Salter
2015-10-08  2:25   ` [PATCH 0/3] UEFI stub FDT handling fixes Roy Franz
     [not found]     ` <CAFECyb9MdmH=0_9JA-1c=-ggTGLR_A8d0p5T2NUwGGzhDc_XAA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-08  6:02       ` Ard Biesheuvel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.