By default, reserve 64 MiB of contiguous memory for use with the Raspberry Pi 3's VideoCore IV graphics unit.
Signed-off-by: Thomas Zimmermann <[email protected]> --- kernel/dma/contiguous.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/dma/contiguous.c b/kernel/dma/contiguous.c index 5bbb7a618a2d..c7594706efd6 100644 --- a/kernel/dma/contiguous.c +++ b/kernel/dma/contiguous.c @@ -55,6 +55,10 @@ struct cma_default { /* CMA defaults for various devices, keep this sorted by .machine_name. */ static const struct cma_default __initdata cma_machine_defaults[] = { + /* Reserve 64 MiB for the VC4 graphics unit on Raspberry Pi 3. This + * should be enough memory to run fbcon and a simple desktop. */ + DECLARE_CMA_MACHINE_DEFAULT("Raspberry Pi 3 Model B Rev 1.2", + 64 * 1024 * 1024, 0, 0) }; static int __init cmp_machine_name(const void *key, const void *elt) -- 2.20.1 _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
