[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ImageBuilder 0/2] Use lopper to generate partial dts


  • To: Ayan Kumar Halder <ayankuma@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Tue, 13 Sep 2022 13:04:54 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sN8VBdMWyZWPYpYA5W4LZYJj/Fc+AssyBaluPAEqZS0=; b=CPGvXQIE0AJf9x29NVt5Skkqs0ZQGRLUxKHssqUzZyUBcxRENxk2HRn6gbPI/I+0q3aIblo6fE6OXQZsV+kn67Jq4l8yIx6fOkBXiBdmFWFyUofbt5fbaXATWFU/kkWzFiauWykgDGxCBCFOiiR3m4pIpsuc3CXja0Ro3PPD9MaJnS5HcP3w1+34eeJ5A2oYbF6Nt1z9QE539M+aojruDW5CIxIzLfyzR6sVIzlaY+I0bvhrfkZJi3IZEwrRztRzdkpZtw03IwOCQhyRb7lAX6afqGR5ulkBegsQvsmNYa7vyq7CwdnRaYctVrShKyRrRQluAuXQKcW4na9En667aw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gg/J8jaubf7InKCqQqLSvF5TY8pmKM3VIUVlWSvIZOn7bhjdQXnKDtVFYcMJ0E4jO7bl0BVidsY3+tyyGZp7M2QWvT0tl/0ECjoVRF7H++agZ+gaXfYItWOk75btNi7WyA4YNKyA2UpKka7XzQnLcnFbR6xaPdqJrfB+emZTfDvtXDxHFFFSTRXnFUz8v2wk89O3G3Q3JtDtXWcjUc6kwFb/Cc63lVUGYikGqJZ/9NmbA8X5pBiCf+VOxdWg4tmMpNNS9NVk/ggCt5pwV3FUIQi7H/Qo3uH2LLckAkEAMAcoJzTGTdoT59SrCggEafmGXqxqdHU48kw6cS2Dk3E9Fg==
  • Cc: <sstabellini@xxxxxxxxxx>
  • Delivery-date: Tue, 13 Sep 2022 11:05:08 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Ayan,

On 12/09/2022 18:27, Ayan Kumar Halder wrote:
> Hi Michal,
> 
> On 12/09/2022 12:59, Michal Orzel wrote:
>> This patch series introduces support to generate automatically passthrough
>> device trees using lopper. This feature should be used with care as the
>> corresponding lopper changes are still in an early support state. Current
>> integration has been tested with several devices from ZynqMP ZCU102 board
>> e.g. serial, spi, ahci, mmc.
>>
>> When using this feature, make sure to use the latest lopper's master branch
>> status [1].
> 
> I am guessing that this is the first time the imagebuilder is using 
> script from an external repo. There might always be a possibility that 
> future changes to lopper (master branch) might not be backward 
> compatible or might break something in imagebuilder.
> 
> As such, will it make things better if lopper is included as a 
> gitsubmodule for imagebuilder. This way a specific revision of lopper 
> will be in sync with a specific revision of imagebuilder.
> 
> Please let me know your thoughts.
> 
I think it could be beneficial in the future but not in the current state.
The reason why is that the lopper changes are in an early support state
(I try to highlight it on each occasion). This means that in the near
future we will be improving lopper extract assists to cover some corner cases.
Adding lopper as a submodule now, would result in a need of additional commits
for the ImageBuilder fetching new lopper changes each time we improve something
in lopper. I think we do not need such overhead at this stage.

Also lopper's README states that "Internal interfaces are subject to change"
so we can assume that the interface given to the user will not change.

> - Ayan
> 
>>
>> [1] https://github.com/devicetree-org/lopper
>>
>> Michal Orzel (2):
>>    Refactor sanity_check_partial_dts
>>    Add support for lopper to generate partial dts
>>
>>   README.md                | 22 ++++++++++--
>>   scripts/common           | 73 +++++++++++++++++++++++++++++-----------
>>   scripts/uboot-script-gen | 17 ++++++++--
>>   3 files changed, 88 insertions(+), 24 deletions(-)
>>

~Michal



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.