]> xenbits.xensource.com Git - xen.git/commit
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)
commit437b0aa06a014ce174e24c0d3530b3e9ab19b18b
treeae6e935ee0b351f0ac63073f10c84ddcb8e80286
parentca3c17c4fc0bc737865ebb2f3eaa4874889290ad
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 <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