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 A2ED2C3DA42 for ; Wed, 10 Jul 2024 10:24:05 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.756763.1165494 (Exim 4.92) (envelope-from ) id 1sRUUN-00030w-5h; Wed, 10 Jul 2024 10:23:55 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 756763.1165494; Wed, 10 Jul 2024 10:23:55 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sRUUN-00030p-2g; Wed, 10 Jul 2024 10:23:55 +0000 Received: by outflank-mailman (input) for mailman id 756763; Wed, 10 Jul 2024 10:23:54 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sRUUL-00030d-Uz for xen-devel@lists.xenproject.org; Wed, 10 Jul 2024 10:23:53 +0000 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [2a00:1450:4864:20::22f]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 80b7f31b-3ea6-11ef-8776-851b0ebba9a2; Wed, 10 Jul 2024 12:23:51 +0200 (CEST) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2eea7e2b0e6so40257621fa.3 for ; Wed, 10 Jul 2024 03:23:51 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c9e2be5056sm7679191a91.0.2024.07.10.03.23.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Jul 2024 03:23:50 -0700 (PDT) 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" X-Inumbo-ID: 80b7f31b-3ea6-11ef-8776-851b0ebba9a2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1720607031; x=1721211831; darn=lists.xenproject.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=fshi/ErnAGLqRELV2vAiVMdugCAU72VzaI1Wr1q7viA=; b=ZBzgKh8itpGo7/ipAii+fPp/aS9iwDQNuQ8bgAXcAqKE1l8i50DzV83m1EEOb+PCxA FTf83RzZpHrnYprTsieWCNWt1i1plkqnmktg/zOn7m7wkOEmHyu2Um5e5orWkCglVz/p CrKoQXfRUa713Rjdjog++813DlLTNZkj1IZnE9Ihd4KvKjtCbirnTD6IqOBmEQ/yoBFd dqvMeDoC2EvUu396zNzCkjXMskVe/O6DV8sa7gtHgsO3lnRSFBdu8rZyz7Zn3IOhUF83 CiAF1R2AUkMJ6UbAWbKYK/OWzHmxF6eIjl0pCJ+GClr78y4HFNS6xFfGvF9/erGp4z/1 hF0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720607031; x=1721211831; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fshi/ErnAGLqRELV2vAiVMdugCAU72VzaI1Wr1q7viA=; b=qUhYJMab43mcAvAdPwY7YeK0CzjQqDHUrhsPzBaVUjkJo6ujA7ZYHZVIda16dNeD+k Wgqx4R0Q6OnIlXvFm+f5S5kV12bHiTldyW8kgv6zuC6figVHZq4OPX8zQc8T73HnvXWx zArx7/ZmpHzlOI3ZK15EHPL4P+xxrUCJrE0/2lUVZM5qHu+uPApBlVy7wlSBsYoSfSmo bbltpen/NorGzm4nLnGTd5RVYwq8mJn8ByvO3U4I/95Ixh7IhKz9YkoCKxmr6MsmE/z8 C/Io6+Tfmx9Rwn46sEowEkz/Fil9crPSukukjPPaOcS7kYdfSCMAwCEox2jzuvUzOpRC gFQQ== X-Forwarded-Encrypted: i=1; AJvYcCUe8uqF2kepssOt31hSlKiOfO6STUKnRYS+WDOxV3UjXUKNjaHSSK6soRMZAzvevIGqqg5OsDQd1Pj4XNaRbFxH16Ka0RNLuPlOGknLLJk= X-Gm-Message-State: AOJu0YxcsrQVwdWSwefgUsHNLbzex657h10G8Oczye+sg1ePKfsNBTBE ZJV+jMBEMZd9lmaRZ4PKnir1w21L/w2m9RLsMXQZ2+Mte510wg86sJt1S0OdKg== X-Google-Smtp-Source: AGHT+IERCTCy9H8RzimGfMnhht+kZeYkyNPkqKrRiGFFxvNF/aLyidBzUuTreZlEZ8ykx6GUvIjpRQ== X-Received: by 2002:a2e:9786:0:b0:2ec:56ce:d51f with SMTP id 38308e7fff4ca-2eeb30db364mr29328351fa.20.1720607031252; Wed, 10 Jul 2024 03:23:51 -0700 (PDT) Message-ID: Date: Wed, 10 Jul 2024 12:23:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 1/5] xen/device-tree: Move Arm's setup.c bootinfo functions to common To: Oleksii Kurochko Cc: Shawn Anastasio , Andrew Cooper , Julien Grall , Stefano Stabellini , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk , "Daniel P. Smith" , xen-devel@lists.xenproject.org References: Content-Language: en-US From: Jan Beulich Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyW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pdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 03.07.2024 12:42, Oleksii Kurochko wrote: > From: Shawn Anastasio > > Arm's setup.c contains a collection of functions for parsing memory map > and other boot information from a device tree. Since these routines are > generally useful on any architecture that supports device tree booting, > move them into xen/common/device-tree. > > Suggested-by: Julien Grall > Signed-off-by: Shawn Anastasio > Signed-off-by: Oleksii Kurochko > --- > Changes in V5: > - add xen/include/xen/bootfdt.h to MAINTAINERS file. > - drop message "Early device tree parsing and". > - After rebase on top of the current staging the following changes were done: > - init bootinfo variable in with BOOTINFO_INIT; > - update the code of dt_unreserved_regions(): > CONFIG_STATIC_SHM related changes and getting of reserved_mem > bootinfo_get_shmem() ?? > - update the code of meminfo_overlap_check(): > add check ( INVALID_PADDR == bank_start ) to if case. > - update the code of check_reserved_regions_overlap(): > CONFIG_STATIC_SHM related changes. > - struct bootinfo was updated ( CONFIG_STATIC_SHM changes ) > - add shared_meminfo ( because of CONFIG_STATIC_SHM ) > - struct struct membanks was update with __struct group so is > neeeded to be included in bootfdt.h > - move BOOTINFO_ACPI_INIT, BOOTINFO_SHMEM_INIT, BOOTINFO_INIT to generic bootfdt.h > - bootinfo_get_reserved_mem(), bootinfo_get_mem(), bootinfo_get_acpi(), > bootinfo_get_shmem() and bootinfo_get_shmem_extra() were moved to xen/bootfdt.h > - s/arm32/CONFIG_SEPARATE_XENHEAP/ > - add inclusion of because there are function in which > are using container_of(). Just to mention it: This is confusing. The series is tagged "v1". I understand you took Shawn's work, which had already undergone revisions. But then imo you want to at least clarify how your v1 relates to his v4 or v5, i.e. then making clear to the reader whether all of the changes above were actually done by you on top of an earlier v4, or whether you took the earlier v5 verbatim. But anyway, this will need looking at by Arm folks. Jan