[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for-4.14 3/3] xen/arm: plat: Allocate as much as possible memory below 1GB for dom0 for RPI


  • To: "julien@xxxxxxx" <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Mon, 18 May 2020 20:36:08 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NJnt6gnt51F/31z+7R1URZkHQnPNV1KHLm19piMf+c0=; b=Cvec6Zu8PLZ7JrLIKCTT6JOcyCEr1egTWhaPSOh8y508WybppQS3vMeEbeo85qSFFQVNjUKi6A8ktZuZW5sw/4Y8XHQEF+HXFHODntUzg63r9EC7NJX0r8lW0z1fRYP4ye3Cqi3b99vjLZM48a/Ix/QERoQai+Vws6k4XshuzXv5D2VahWFoeTPpbqdOrFDfUm+24Cc5+kz47DW0U04P26v6sSmJozmPkCg8nanRuVbdBhkNppjqiSq160EQgYT8spZC7ud1qHJbgUDzmrrAO9OnpdSWHy4aEqh33Dgz7v6imt07TG6NSkyLse2+kN9S75u9Ts1ViCamHqYoMJvQtg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BdYx+gfyM/FEpXd3AKqZafCUUn+j1r6IUAgSXeg0oMhfc959lJAjTD/RmqM77WoiDUIylxN7KkuAVpwdZs4cAlDI5N37EXRz0r6tvBnMUL4v+wN1NeN6yY5A1qUh6iLTTRbUjlJ/ELSkqE0LGZcQfeoNLLettQwwwm7adLBcSmaY9bRr8YS8oFW7MWlOaWioOd9IRvZ/gzI46Mf8S9iFQL7imdmELv8d2A+rL7HJ41ybP06BJEWQvQhoEdayA2TOIEUpk6Q9QJFLBVqC/q/pItYTX5ZMymqIQ/CBAz7KTBXZvGIWEJ3I2BLRrVFsUMW/54zgV729sxnEl9DulXC/KQ==
  • Authentication-results: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=epam.com;
  • Cc: "jeff.kubascik@xxxxxxxxxxxxxxx" <jeff.kubascik@xxxxxxxxxxxxxxx>, "jgrall@xxxxxxxxxx" <jgrall@xxxxxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "roman@xxxxxxxxxx" <roman@xxxxxxxxxx>, "minyard@xxxxxxx" <minyard@xxxxxxx>
  • Delivery-date: Mon, 18 May 2020 20:36:23 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHWLQfDNIfgFSjSGUyub+p/1yhn8KiuTdqA
  • Thread-topic: [PATCH for-4.14 3/3] xen/arm: plat: Allocate as much as possible memory below 1GB for dom0 for RPI

Hi Julien,

On Mon, 2020-05-18 at 12:30 +0100, Julien Grall wrote:
> From: Julien Grall <jgrall@xxxxxxxxxx>
> 
> 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@xxxxxxxxxx>
> Reported-by: Corey Minyard <minyard@xxxxxxx>
> ---
>  xen/arch/arm/platforms/brcm-raspberry-pi.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/xen/arch/arm/platforms/brcm-raspberry-pi.c 
> b/xen/arch/arm/platforms/brcm-raspberry-pi.c
> index b697fa2c6c0e..ad5483437b31 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    = 10,

I'm confused. Should it be 30?

>  PLATFORM_END
>  
>  /*

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.