Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB219C433E0 for ; Tue, 19 May 2020 17:07:46 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8CB7B207D3 for ; Tue, 19 May 2020 17:07:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=xen.org header.i=@xen.org header.b="zkYjjoc7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8CB7B207D3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jb5iJ-0002Hn-BW; Tue, 19 May 2020 17:07:35 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jb5iI-0002Hf-2w for xen-devel@lists.xenproject.org; Tue, 19 May 2020 17:07:34 +0000 X-Inumbo-ID: 3ab6facd-99f3-11ea-a955-12813bfff9fa Received: from mail.xenproject.org (unknown [104.130.215.37]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 3ab6facd-99f3-11ea-a955-12813bfff9fa; Tue, 19 May 2020 17:07:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zBPupmTA7a2M6q+7ZyaoHEWiEA41qdpUVWh+L9qVbtQ=; b=zkYjjoc7eDBzN1/TzLxwSokr0V f4NbHPkQlInE3iuM49kKGFxnJFHoAqtEBVvF5YQb9RXfADDHWng11TD37EyH+sAW/zqq7Og6GaUJQ 7BgvSo1BB7FcySKzocW4c+qgWvpQb+z61LPWxpCLntTyEGHagureR0pi/C0snrv4+I/E=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jb5iF-0006RF-3p; Tue, 19 May 2020 17:07:31 +0000 Received: from 54-240-197-225.amazon.com ([54.240.197.225] helo=a483e7b01a66.ant.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1jb5iE-00030w-3J; Tue, 19 May 2020 17:07:30 +0000 Subject: Re: [PATCH for-4.14 3/3] xen/arm: plat: Allocate as much as possible memory below 1GB for dom0 for RPI To: minyard@acm.org, Volodymyr Babchuk References: <20200518113008.15422-1-julien@xen.org> <20200518113008.15422-4-julien@xen.org> <20200519000242.GA3948@minyard.net> From: Julien Grall Message-ID: Date: Tue, 19 May 2020 18:07:28 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200519000242.GA3948@minyard.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: "xen-devel@lists.xenproject.org" , "jgrall@amazon.com" , "sstabellini@kernel.org" , "roman@zededa.com" , "jeff.kubascik@dornerworks.com" Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Hi Corey, On 19/05/2020 01:02, Corey Minyard wrote: > On Mon, May 18, 2020 at 08:36:08PM +0000, Volodymyr Babchuk wrote: >> Hi Julien, >> >> On Mon, 2020-05-18 at 12:30 +0100, Julien Grall wrote: >>> From: Julien Grall >>> >>> 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 >>> --- >>> 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? > > Indeed it should. I just tested this series, and Linux fails to boot > with this set to 10. With it set to 30 it works. > > With this set to 30, you can have a: > > Tested-by: Corey Minyard > > for all three patches. Thank you for the testing! I will fix the bug and resend the series. Cheers, -- Julien Grall