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 5C599C3DA6E for ; Wed, 20 Dec 2023 13:54:03 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.657847.1026981 (Exim 4.92) (envelope-from ) id 1rFx1E-0001t0-VZ; Wed, 20 Dec 2023 13:53:52 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 657847.1026981; Wed, 20 Dec 2023 13:53:52 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rFx1E-0001st-T0; Wed, 20 Dec 2023 13:53:52 +0000 Received: by outflank-mailman (input) for mailman id 657847; Wed, 20 Dec 2023 13:53:51 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rFx1D-0001sn-LQ for xen-devel@lists.xenproject.org; Wed, 20 Dec 2023 13:53:51 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rFx1D-00067o-Al; Wed, 20 Dec 2023 13:53:51 +0000 Received: from [15.248.2.151] (helo=[10.6.7.47]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1rFx1D-0008PA-4r; Wed, 20 Dec 2023 13:53:51 +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=9HqDhSHp+DV1ck4uC5QA+u3EF2fs8qSL7gsTa92jb2A=; b=zcUgmWUGcnytY3pcERSVYFV6zv KNGTDa2WpRyoeX1h+cQxHlssC/M2bZmubIUE1NPPSHx2gXYoWv8snWvt3RfegXDb3wWPxP4BlFCXr 5HJukAiCWZ/2Rs/kJsAKxAaZay7Iir1W3V7F37BW7KJc2Bz2CmbQ1E2fgQPj7yNT6cwY=; Message-ID: <6a60f94e-a02b-4aed-be60-3f071c8d4e08@xen.org> Date: Wed, 20 Dec 2023 13:53:49 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/7] xen/common: Move Arm's bootfdt to common Content-Language: en-GB To: Shawn Anastasio , xen-devel@lists.xenproject.org Cc: Timothy Pearson , Jan Beulich References: From: Julien Grall In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Shawn, On 15/12/2023 02:43, Shawn Anastasio wrote: > Move Arm's bootfdt.c to xen/common so that it can be used by other > device tree architectures like PPC and RISCV. Only a minor change to > conditionalize a call to a function only available on EFI-supporting > targets was made to the code itself. > > Suggested-by: Julien Grall > Signed-off-by: Shawn Anastasio With the MAINTAINERS file updated (I would add under DEVICE TREE) and one note below: Acked-by: Julien Grall > --- a/xen/arch/arm/bootfdt.c > +++ b/xen/common/device-tree/bootfdt.c > @@ -431,12 +431,15 @@ static int __init early_scan_node(const void *fdt, > { > int rc = 0; > > - /* > - * If Xen has been booted via UEFI, the memory banks are > - * populated. So we should skip the parsing. > - */ > - if ( !efi_enabled(EFI_BOOT) && > - device_tree_node_matches(fdt, node, "memory") ) > + if ( device_tree_node_matches(fdt, node, "memory") ) > +#if defined(CONFIG_ARM_EFI) As discussed in a separate subthread, I would be ok with any of the options proposed. So feel free ot keep my Acked-by once this is settled. Cheers, -- Julien Grall