mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 0/6] resource: add support for walking resource gaps
Date: Thu, 11 Dec 2025 21:50:02 +0100	[thread overview]
Message-ID: <20251211205240.2836186-1-a.fatoum@pengutronix.de> (raw)

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




             reply	other threads:[~2025-12-11 20:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-11 20:50 Ahmad Fatoum [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251211205240.2836186-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox