Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 5D786C04FFE for ; Tue, 14 May 2024 21:06:15 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.721789.1125461 (Exim 4.92) (envelope-from ) id 1s6zLa-0002mK-Q4; Tue, 14 May 2024 21:06:06 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 721789.1125461; Tue, 14 May 2024 21:06:06 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1s6zLa-0002mD-Ne; Tue, 14 May 2024 21:06:06 +0000 Received: by outflank-mailman (input) for mailman id 721789; Tue, 14 May 2024 21:06:05 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1s6zLZ-0002m6-4K for xen-devel@lists.xenproject.org; Tue, 14 May 2024 21:06:05 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1s6zLY-0007C2-Q2; Tue, 14 May 2024 21:06:04 +0000 Received: from gw1.octic.net ([88.97.20.152] helo=[10.0.1.244]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1s6zLY-0001Gi-KP; Tue, 14 May 2024 21:06:04 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" 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:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=Rp0QZ7JIHQgrzyYBjdX1OjwwMVcId1x6df9RifvwlRU=; b=bUg8lZ4uOAHk83LnR7kMqPOiJq jAxERM5lvurVpFmX7gTXW8ntczcMVEN9BEN03pLF9S+rmixFvOODle8m/KunRSL9SaNxUGPJisDRO nOgrA2mJ3wlKdtuPVvgndBDEcapyUrSxnsiDQbgL7/RRLX+H6lzqswJOiCddElctf5oA=; Message-ID: Date: Tue, 14 May 2024 22:06:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 1/2] xen/arm: Add DT reserve map regions to bootinfo.reserved_mem Content-Language: en-GB To: Luca Fancellu Cc: Xen-devel , Stefano Stabellini , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk References: <20240425131119.2299629-1-luca.fancellu@arm.com> <20240425131119.2299629-2-luca.fancellu@arm.com> <0A931CEA-59CA-4B1F-A8E4-A4CB990C0476@arm.com> From: Julien Grall In-Reply-To: <0A931CEA-59CA-4B1F-A8E4-A4CB990C0476@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi, On 14/05/2024 08:53, Luca Fancellu wrote: > Hi Julien, > > Thanks for having a look on the patch, > >> On 13 May 2024, at 22:54, Julien Grall wrote: >> >> Hi Luca, >> >> On 25/04/2024 14:11, Luca Fancellu wrote: >>> Currently the code is listing device tree reserve map regions >>> as reserved memory for Xen, but they are not added into >>> bootinfo.reserved_mem and they are fetched in multiple places >>> using the same code sequence, causing duplication. Fix this >>> by adding them to the bootinfo.reserved_mem at early stage. >> >> Do we have enough space in bootinfo.reserved_mem for them? > > So we have 255 banks, in my experience I would say I’ve never saw too many reserved regions > in the DT, maybe a couple, but I’ve always had to deal with embedded platforms. > > I’ve tested this one with ADLINK AVA board, n1sdp, Juno, raspberry pi, qemu, fvp. > > In your experience, have you seen any numbers that could be concerning? I know in the past we had to bump the memory banks a few times. But as you tested on a few platforms, I think we should be ok. It would be best if this patch goes sooner than later to allow wider testing before we release 4.19. Acked-by: Julien Grall Cheers, -- Julien Grall