kboot: Make missing iommu mappings non-fatal

Fixes: 21dc622735 ("kboot: Transfer display related memory carveouts to device tree")

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
This commit is contained in:
Mark Kettenis 2023-04-14 16:47:18 +02:00 committed by Hector Martin
parent 06b88f14d2
commit 91ff36b277

View file

@ -1161,8 +1161,10 @@ static int dt_device_set_reserved_mem(int node, dart_dev_t *dart, const char *na
int ret;
u64 iova = dart_get_mapping(dart, name, paddr, size);
if (DART_IS_ERR(iova))
bail("ADT: no mapping found for '%s' 0x%012lx iova:0x%08lx)\n", name, paddr, iova);
if (DART_IS_ERR(iova)) {
printf("ADT: no mapping found for '%s' 0x%012lx iova:0x%08lx)\n", name, paddr, iova);
return 0;
}
ret = fdt_appendprop_u32(dt, node, "iommu-addresses", phandle);
if (ret != 0)