mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/6] resource: add support for walking resource gaps
@ 2025-12-11 20:50 Ahmad Fatoum
  2025-12-11 20:50 ` [PATCH 1/6] resource: implement resource walker Ahmad Fatoum
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Ahmad Fatoum @ 2025-12-11 20:50 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

We currently keep track of regions with the SDRAM by requesting a struct
resource from the memory bank. We will make additional use of that to
request memory handed out to EFI applications when barebox is being used
as EFI loader.

For that purpose, we need an easy way to walk the requested memory
region and especially the gaps between them as well as support for
freeing partial regions.

Ahmad Fatoum (6):
  resource: implement resource walker
  test: self: implement resource walker selftest
  commands: iomem: add support for printing gaps
  test: py: add test for valid JSON output from iomem/clk_dump
  memory: add helpers for iterating over memory regions
  resource: implement release_region_range

 commands/iomemport.c   |  41 ++++---
 common/resource.c      | 246 +++++++++++++++++++++++++++++++++++++++++
 include/linux/ioport.h |  30 +++++
 include/memory.h       |   6 +
 test/py/test_shell.py  |  41 +++++++
 test/self/Kconfig      |   4 +
 test/self/Makefile     |   1 +
 test/self/resource.c   | 189 +++++++++++++++++++++++++++++++
 8 files changed, 545 insertions(+), 13 deletions(-)
 create mode 100644 test/self/resource.c

-- 
2.47.3




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

end of thread, other threads:[~2025-12-15  9:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-11 20:50 [PATCH 0/6] resource: add support for walking resource gaps Ahmad Fatoum
2025-12-11 20:50 ` [PATCH 1/6] resource: implement resource walker Ahmad Fatoum
2025-12-11 20:50 ` [PATCH 2/6] test: self: implement resource walker selftest Ahmad Fatoum
2025-12-11 20:50 ` [PATCH 3/6] commands: iomem: add support for printing gaps Ahmad Fatoum
2025-12-11 20:50 ` [PATCH 4/6] test: py: add test for valid JSON output from iomem/clk_dump Ahmad Fatoum
2025-12-11 20:50 ` [PATCH 5/6] memory: add helpers for iterating over memory regions Ahmad Fatoum
2025-12-11 20:50 ` [PATCH 6/6] resource: implement release_region_range Ahmad Fatoum
2025-12-15  9:29 ` [PATCH 0/6] resource: add support for walking resource gaps Sascha Hauer

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