]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm: plat: Allocate as much as possible memory below 1GB for dom0 for RPI
authorJulien Grall <jgrall@amazon.com>
Sat, 16 May 2020 19:16:57 +0000 (20:16 +0100)
committerJulien Grall <jgrall@amazon.com>
Sun, 24 May 2020 14:01:02 +0000 (15:01 +0100)
The raspberry PI 4 has devices that can only DMA into the first GB of
the RAM. Therefore we want allocate as much as possible memory below 1GB
for dom0.

Use the recently introduced dma_bitsize field to specify the DMA width
supported.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reported-by: Corey Minyard <minyard@acm.org>
Tested-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/platforms/brcm-raspberry-pi.c

index b697fa2c6c0e55770db3ee7f943a2a6ade7d2d82..f5ae58a7d5f22c636168251233b9106ed1b96b73 100644 (file)
@@ -43,6 +43,7 @@ static const struct dt_device_match rpi4_blacklist_dev[] __initconst =
 PLATFORM_START(rpi4, "Raspberry Pi 4")
     .compatible     = rpi4_dt_compat,
     .blacklist_dev  = rpi4_blacklist_dev,
+    .dma_bitsize    = 30,
 PLATFORM_END
 
 /*