Skip to content

Commit

Permalink
kboot/gpu: Add "no-map" property for reserved memory nodes
Browse files Browse the repository at this point in the history
Without this property u-boot will add reserved memory regions to the
EFI memory map with the wrong type. This results in Linux mapping it
and thus breaking the intended use in the asahi driver.

Signed-off-by: Janne Grunau <[email protected]>
  • Loading branch information
jannau committed Sep 23, 2023
1 parent 650441d commit fc4a2ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/kboot_gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ static int dt_set_region(void *dt, int sgx, const char *name, const char *path)
if (fdt_setprop_inplace(dt, node, "reg", reg, sizeof(reg)))
bail("FDT: GPU: failed to set reg prop for %s\n", path);

if (fdt_setprop_empty(dt, node, "no-map"))
bail("FDT: GPU: failed to set no-map prop for %s\n", path);

return 0;
}

Expand Down

0 comments on commit fc4a2ec

Please sign in to comment.