U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] boot: image-fdt: Restore suppression of irrelevant ERROR message
@ 2026-08-11 23:16 Jonas Karlman
  2026-08-11 23:16 ` [PATCH v2 1/3] lmb: Return -EFAULT when requested region is not part of memory map Jonas Karlman
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jonas Karlman @ 2026-08-11 23:16 UTC (permalink / raw)
  To: Tom Rini, Randolph Sapp, Simon Glass, Ilias Apalodimas
  Cc: Joseph Guo, Emanuele Ghidoli, Balaji Selvanathan, u-boot,
	Jonas Karlman

This series changes the returned error code for lmb_alloc_mem() and
lmb_free() may return to help restore suppression of the verbose ERROR
messages when FDT memreserve and reserved-memory is being processed.

Changes in v2:
- Change lmb_alloc_mem() to return -EFAULT when region is not part of
  the LMB memory map
- Change lmb_free() to return -EFAULT when the region is not allocated
- Change to use a debug message when -EFAULT is returned

Two similar patches to suppress this ERROR message can be found at [1]
and [2].

[1] https://patch.msgid.link/20260713-downgrade-v1-1-183a2300741b@nxp.com/
[2] https://patch.msgid.link/20260810-suppress-fdt-res-error-v1-1-e9641eb0aadb@oss.qualcomm.com/

Jonas Karlman (3):
  lmb: Return -EFAULT when requested region is not part of memory map
  lmb: Return -EFAULT when freeing unallocated memory regions
  boot: image-fdt: Restore suppression of irrelevant ERROR message

 boot/image-fdt.c |  8 ++++----
 include/lmb.h    |  4 +++-
 lib/lmb.c        |  6 ++++--
 test/lib/lmb.c   | 12 ++++++++++--
 4 files changed, 21 insertions(+), 9 deletions(-)

-- 
2.55.0


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

end of thread, other threads:[~2026-08-25  0:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-11 23:16 [PATCH v2 0/3] boot: image-fdt: Restore suppression of irrelevant ERROR message Jonas Karlman
2026-08-11 23:16 ` [PATCH v2 1/3] lmb: Return -EFAULT when requested region is not part of memory map Jonas Karlman
2026-08-12 21:12   ` Randolph Sapp
2026-08-11 23:16 ` [PATCH v2 2/3] lmb: Return -EFAULT when freeing unallocated memory regions Jonas Karlman
2026-08-12 21:13   ` Randolph Sapp
2026-08-11 23:16 ` [PATCH v2 3/3] boot: image-fdt: Restore suppression of irrelevant ERROR message Jonas Karlman
2026-08-12 21:14   ` Randolph Sapp
2026-08-25  0:46 ` [PATCH v2 0/3] " Tom Rini

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