Skip to content

Commit 91ff36b

Browse files
kettenismarcan
authored andcommitted
kboot: Make missing iommu mappings non-fatal
Fixes: 21dc622 ("kboot: Transfer display related memory carveouts to device tree") Signed-off-by: Mark Kettenis <[email protected]>
1 parent 06b88f1 commit 91ff36b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/kboot.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,8 +1161,10 @@ static int dt_device_set_reserved_mem(int node, dart_dev_t *dart, const char *na
11611161
int ret;
11621162

11631163
u64 iova = dart_get_mapping(dart, name, paddr, size);
1164-
if (DART_IS_ERR(iova))
1165-
bail("ADT: no mapping found for '%s' 0x%012lx iova:0x%08lx)\n", name, paddr, iova);
1164+
if (DART_IS_ERR(iova)) {
1165+
printf("ADT: no mapping found for '%s' 0x%012lx iova:0x%08lx)\n", name, paddr, iova);
1166+
return 0;
1167+
}
11661168

11671169
ret = fdt_appendprop_u32(dt, node, "iommu-addresses", phandle);
11681170
if (ret != 0)

0 commit comments

Comments
 (0)