Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp791818pxb; Wed, 20 Jan 2021 22:49:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyM5kOuJdgFogTSURgwcS1kQk60bbxs5SgxjbP8ZrCeVuuC8AGaSpExbR5tsHHAE9zEzD+4 X-Received: by 2002:a17:907:96a2:: with SMTP id hd34mr8679118ejc.494.1611211743814; Wed, 20 Jan 2021 22:49:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611211743; cv=none; d=google.com; s=arc-20160816; b=zINFJw9TvQVgJREHntbHn26UIly3XsCkSXXeSBcmWUNXbyFMPzyuZDCpSRM3ofh8hd g4LoqpG5KrJuXyhMEusTL33ZwChRPOPlDy9o6HsfPyUEozSngSZnShGNQ0uaGbfu4SDH hn6acK7H57++GLr0DQ+PEgczG9n3rjzjZ74CttGlQO5aRfWe1JhkgtS0VHcGWZ/49+vf tAClrMIzoFw6KnkIylM3hVryFhGdguZBJcARURlY9o2IB3pd92OSSWuvMmG9Lby9mscQ GnzrA+LWEqCB4kf/kjpLlewHqy/LGSIpriSj9Qp4lv31jniPTmsJhWEXWO2ARcr1S0UZ Xcrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bLwCSAnOkEIrDD0FRAUv7QlwHComBSKUkSPM9PaMqWo=; b=AI4Ri85WSMZI7zXGB6m3JegEmivY8QIS7up5P3FHlpZOtSiwI38EgLVi3rDv3ENAGW lkxV1PlLk6gEYxM8C+Ga0SS7XhpWoGNky9wofA4ul+IeVzaGNwGe6tzDq9AgiggzDuwp Vn7O6nIH4h44RcbX666lfjtE/NcA+W7eR6B0FtSvXrci67v+JcTcAODr4lbpC958D/Sa oSBhZAynPd5HjUwMWH/QN7DhSf70plw/cydPzgj4ti1ZAeHGTRrQ7pqjo9KJrNK85v5R 21mshpLSbfuO3dZFiXEt8+jYnNCtMB7y+EAr0QxTBT7ySbSU3yBTkDWSMK3VpBN2rKs7 BCiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gibson.dropbear.id.au header.s=201602 header.b=RQfOYrX8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si1489871ejv.329.2021.01.20.22.48.40; Wed, 20 Jan 2021 22:49:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gibson.dropbear.id.au header.s=201602 header.b=RQfOYrX8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727114AbhAUGpY (ORCPT + 99 others); Thu, 21 Jan 2021 01:45:24 -0500 Received: from ozlabs.org ([203.11.71.1]:38525 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbhAUGog (ORCPT ); Thu, 21 Jan 2021 01:44:36 -0500 Received: by ozlabs.org (Postfix, from userid 1007) id 4DLtCB6Lv7z9sRR; Thu, 21 Jan 2021 17:43:50 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1611211430; bh=7D2iM5ol0oQXma1CA9p7NiGgC5W035XE4aOk2Xmry8M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RQfOYrX8+zmVI4/7f8vppDZf7NEO3LNTO9HSEB7xv7aks75Pxeikar4Y5w1ARXO1d MBzcmr0IWhqhkpPpAF3Fl/+3QyVD9EJsKYWb41gPlKbCAlnpHHIjs+3ArYdnyWaZ3M oxYNr46mY1pULRcoIjyvqJCc1sgYcc6+UTALyKTw= Date: Thu, 21 Jan 2021 17:34:38 +1100 From: David Gibson To: Viresh Kumar Cc: Frank Rowand , Rob Herring , Pantelis Antoniou , Vincent Guittot , Masahiro Yamada , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bill Mills , anmar.oueja@linaro.org Subject: Re: [PATCH V5 5/5] of: unittest: Statically apply overlays using fdtoverlay Message-ID: <20210121063438.GJ5174@yekko.fritz.box> References: <696c137461be8ec4395c733c559c269bb4ad586e.1611124778.git.viresh.kumar@linaro.org> <20210121005145.GF5174@yekko.fritz.box> <7d6adfd9-da1e-d4ca-3a04-b192f0cf36b0@gmail.com> <20210121053426.4dw5oqz7qb4y7hvm@vireshk-i7> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wRtZRu2mMGBZ6YQ7" Content-Disposition: inline In-Reply-To: <20210121053426.4dw5oqz7qb4y7hvm@vireshk-i7> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --wRtZRu2mMGBZ6YQ7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 21, 2021 at 11:04:26AM +0530, Viresh Kumar wrote: > On 20-01-21, 23:14, Frank Rowand wrote: > > It is a convenient FDT to use because it provides the frame that the ov= erlays > > require to be applied. It is fortunate that fdtoverlay does not reject= the use > > of an FDT with overlay metadata as the base blob. >=20 > > This is probably a good idea instead of depending on the leniency of fd= toverlay. >=20 > I believe fdtoverlay allows that intentionally, that would be required > for the cases where we have a hierarchy of extension boards or > overlays. Um.. no. > A platform can have a base dtb (with /plugin/;), then we can have an > overlay (1) for an extension board (with /plugin/;) and then an > overlay (2) for an extension board for the previous extension board. >=20 > In such a case overlay-(2) can't be applied directly to the base dtb > as it may not find all the nodes it is trying to update. And so > overlay-(2) needs to be applied to overlay-(1) and then the output of > this can be applied to the base dtb. No, this is the wrong way around. The expected operation here is that you apply overlay (1) to the base tree, giving you, say, output1.dtb. output1.dtb is (effectively) a base tree itself, to which you can then apply overlay-(2). What you're talking about is "merging" overlays: combingin overlay (1) and (2) into overlay-(X) which would have the same effect applied to base.dtb as (1) and (2) applied in sequence. Merging overlays is something that could make sense, but fdtoverlay will not do it at present. > This is very similar to what I tried with the intermediate.dtb > earlier. >=20 --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --wRtZRu2mMGBZ6YQ7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdfRlhq5hpmzETofcbDjKyiDZs5IFAmAJIH4ACgkQbDjKyiDZ s5KrnRAAgnRANEqiGa9LnP9kEhlZSHac8+LrVLbu/NYiWSkmK30e98XIlTxGgeOf 1A+sOQpK7QoZw4SVtsA5QCYA69fio1FLxjaJIs8fJPQuNXqiH/6S0riH7BtdqFQ0 r1NGrgHaL2nFpuVm2HH7pAyg3TEpYhgx0SWxVbdjXHDQl5E/JoL3zhoh40H0ur45 Ef1tNNaHZKoK8fJBm0l/rTUxSW8oMVZ3+wiMawR+Z3sGQnn1+NFU2aRRN/W4gPc0 2eUliZoZwxWSFWziOEyJxiNqSuYlGqtQ/G3JeVkrvZAGHM08+Q4sPK3H7/En8v8o wvcT2CV92YRX3+g1HALUfJ+Nw9xq6fZhap56iVEp7xHNg1tM3kMzHtJLLlTpDMJW qHqXZTUsY3fJe/VnZ+mm9Z9QlzQpRyR+nkM+xKVKs4LqoheM5VMP0PXY0F5OZ1XP v9I2UaBId99AW4M6fPOVZ9Gj/DwKlbi2sBxl9m6qPK8zcA6DCA7wc3g1Pr4hyEl4 kYKTvw3vUKOBTE7wcW6WDvqbIuVFq0piqoIaWb58t4i5nT9wM+P3KAzZqRXNLxmV MF5cAduCI1j5cCyRHTy61mJ7dE1blzCLpd0thggr3o9NaTLwBfMcc4WofSYlPvp3 3syXvfdu4yPZHGatVCQxnK1FOvAhecacMMINM7WXwR7zt6K4ugE= =0YJH -----END PGP SIGNATURE----- --wRtZRu2mMGBZ6YQ7--