From: Ahmad Fatoum <a.fatoum@barebox.org>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@barebox.org>
Subject: [PATCH 6/6] efi: payload: iomem: populate resource type/attributes
Date: Mon, 16 Jun 2025 09:16:34 +0200 [thread overview]
Message-ID: <20250616071634.811000-6-a.fatoum@barebox.org> (raw)
In-Reply-To: <20250616071634.811000-1-a.fatoum@barebox.org>
Now that the iomem command has support for printing type/attributes,
we don't need to print them for debugging during initcall.
Fill out the resources with the information and bump down the debug
print to verbose debug instead.
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
efi/payload/iomem.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/efi/payload/iomem.c b/efi/payload/iomem.c
index 64f4b809e0c2..d58f95ca70a2 100644
--- a/efi/payload/iomem.c
+++ b/efi/payload/iomem.c
@@ -127,7 +127,7 @@ static int efi_parse_mmap(struct efi_memory_desc *desc, bool verbose)
fullname = xasprintf("%s@%llx", name, (u64)va_base);
- pr_debug("%s: (%pad+%pad)\n", fullname, &va_base, &va_size);
+ pr_vdebug("%s: (%pad+%pad)\n", fullname, &va_base, &va_size);
res = request_iomem_region(fullname, va_base, va_base + va_size - 1);
if (IS_ERR(res)) {
@@ -136,6 +136,7 @@ static int efi_parse_mmap(struct efi_memory_desc *desc, bool verbose)
}
res->flags |= flags;
+ resource_set_efi_memory_type_attrs(res, desc->type, desc->attrs);
out:
free(fullname);
--
2.39.5
next prev parent reply other threads:[~2025-06-16 7:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-16 7:16 [PATCH 1/6] resource: mark normal memory as supporting being uncacheable Ahmad Fatoum
2025-06-16 7:16 ` [PATCH 2/6] lib: display_options: constify pointer to static size_human_readable buf Ahmad Fatoum
2025-06-16 7:16 ` [PATCH 3/6] commands: iomem: print human readable sizes by default Ahmad Fatoum
2025-06-16 7:16 ` [PATCH 4/6] commands: iomemport: support showing info for particular argument Ahmad Fatoum
2025-06-16 7:16 ` [PATCH 5/6] commands: iomem: add support for printing type/attributes Ahmad Fatoum
2025-06-16 7:16 ` Ahmad Fatoum [this message]
2025-06-17 7:13 ` [PATCH 1/6] resource: mark normal memory as supporting being uncacheable 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=20250616071634.811000-6-a.fatoum@barebox.org \
--to=a.fatoum@barebox.org \
--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