From: Julien Grall Date: Sat, 16 May 2020 19:16:57 +0000 (+0100) Subject: xen/arm: plat: Allocate as much as possible memory below 1GB for dom0 for RPI X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~206 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=437b0aa06a014ce174e24c0d3530b3e9ab19b18b;p=xen.git xen/arm: plat: Allocate as much as possible memory below 1GB for dom0 for RPI 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 Reported-by: Corey Minyard Tested-by: Corey Minyard Reviewed-by: Stefano Stabellini --- diff --git a/xen/arch/arm/platforms/brcm-raspberry-pi.c b/xen/arch/arm/platforms/brcm-raspberry-pi.c index b697fa2c6c..f5ae58a7d5 100644 --- a/xen/arch/arm/platforms/brcm-raspberry-pi.c +++ b/xen/arch/arm/platforms/brcm-raspberry-pi.c @@ -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 /*