[PATCH 6/6] efi: payload: iomem: populate resource type/attributes
Ahmad Fatoum
a.fatoum at barebox.org
Mon Jun 16 00:16:34 PDT 2025
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 at 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
More information about the barebox
mailing list