Refactor the DMA coherent memory region definition to support stage-specific allocations. In some boot flows, it is necessary to define separate DMA coherent buffers for the early boot stage (e.g., romstage/bootblock) and the later stage (ramstage). It allows the firmware to use only the memory it needs, where it needs it, and prevents small-scale memory constraints from crippling the overall boot flow. The arch-specific, and now redundant, definitions of DMA_COHERENT are removed from arm/memlayout.h and arm64/memlayout.h. BUG=b:456953373 TEST=Able to build google/quenbi. Change-Id: Ic32d14dda6cda0f731233dd3d86f3215c6af3637 Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90049 Reviewed-by: Kapil Porwal <kapilporwal@google.com> Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> |
||
|---|---|---|
| .. | ||
| arm | ||
| arm64 | ||
| ppc64 | ||
| riscv | ||
| x86 | ||