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

Re: AW: AW: AW: AW: AW: AW: Xen data from meta-virtualization layer


  • To: Leo Krueger <leo.krueger@xxxxxxxx>, <Zhiqiang.Hou@xxxxxxx>
  • From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>
  • Date: Tue, 24 Nov 2020 18:14:51 -0800
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=zal.aero smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.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-SenderADCheck; bh=aA/fEOkvpH27qOdfBIo5qS26KGKmo1TlvffLgTTtNdw=; b=W6ZfpPISgHXfn8Fdouye33BS3EDxHAN5NjsgTJ0kIqnpBqATSqSZn24WMEdrwYNj96sWWgvOpnN+56GTcmc9irLqtcLo/+dw/gwe2n1y67KDnFmAypJmdchI+xQkwKEG/ynnScE1kAMXeaDfOblBGT05zU/AQdZJfD4Y+m9xb9gNNETZUKxit4E0ziQgClejq2T2tyein1Oms8jKzCbzQQwsKYDcGdYgiSNfYRHtNXItEm1twGCH2eZpoj+HQ3eg56KVQ2edn/fiCX3r3hkDdztO6o7bXkao36n258XKxq5lSsM57S0XEv49IpjQTi4e4CbmbIouQ/S2p3JIWDOB4g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fkFWj09wNen4ukgQ1GCEBn2e29YOEkZKehzQd582b+qVDRc9GIwCzoNguIL0yESG8ZKa1bKkGgs29uolf1mxAN1t/kER5q1RDH2XZExbe+9pdsSvsWAHR3e7NvN7vuc3QHHWF7pyCRTPJ4Z3jHJBp+FssbX8WAI1Op2J4SjpyVbZ77LJBx4tchexVcQ9lwpEUV25K78s9fFt+xaaJjtH8NdDDfcFIaz0QUuSAAbL1M62gqolKHKzBWMeV90+zJKpAO59heln1l7mXZIKGOrpOwq6YRwm7csXXurwpnfPhz/CtI23/3+QJPV+KRnwkBJ8a1wkhxpXhtPzV570Ssndbw==
  • Cc: Julien Grall <julien@xxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>, Peng Fan <peng.fan@xxxxxxx>, "brucea@xxxxxxxxxx" <brucea@xxxxxxxxxx>, Cornelia Bruelhart <cornelia.bruelhart@xxxxxxxx>, "oleksandr_andrushchenko@xxxxxxxx" <oleksandr_andrushchenko@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "Bertrand.Marquis@xxxxxxx" <Bertrand.Marquis@xxxxxxx>
  • Delivery-date: Wed, 25 Nov 2020 02:15:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

+ Zhiqiang Hou

On Tue, 24 Nov 2020, Leo Krueger wrote:
> > >>> On Tue, 17 Nov 2020, Leo Krueger wrote:
> > >>>> Hi,
> > >>>>
> > >>>> I enabled CONFIG_HAS_ITS (what a stupid mistake by me to not set it
> > >>>> before...) but then had to add the following node to my device tree
> > >>>>
> > >>>>        gic_lpi_base: syscon@0x80000000 {
> > >>>>                compatible = "gic-lpi-base";
> > >>
> > >> I couldn't find this compatible defined/used in Linux 5.10-rc4. @Leo,
> > >> could you clarify which flavor/version of Linux you are using?
> > >
> > > It is Linux 4.19 from Yocto (Warror release). XEN 4.13.2.
> > 
> > Do you have a link to the Linux tree? Is there any additional patches on 
> > top of
> > vanilla?
> 
> Linux tree is found here: 
> https://github.com/kontron/linux-smarc-sal28/commits/master-LSDK-19.09
> (up to the latest commit in that branch)

[...]

> > Looking at the DT changes in [0], it looks like the node is not a child of 
> > gic@.
> > So I think Xen will map the region to Dom0.
> > 
> > There are two things that I can notice:
> >    1) This region is RAM, but I can't find any reserve node. Is there any 
> > specific
> > code in Linux to reserve it?
> >    2) The implementation in U-boot seems to suggest that the firmware will
> > configure the LPIs and then enable it. If that's the case, then Xen needs to
> > re-use the table in the DT rather than allocating a new one.

That Linux tree has no mentions of gic-lpi-base. That means that
gic-lpi-base is only used in u-boot, not in Linux. In particular the
most relevant commit is af288cb291da3abef6be0875527729296f7de7a0. 

In regards to the reserved-memory regions, maybe we are not seeing them
because Leo posted the host device tree, not the one passed at runtime
from u-boot to Linux?

If so, Leo, could you please boot Linux on native (no Xen) and get the
device tree from there at runtime using dtc -I fs -O dts
/proc/device-tree ?


However, the name of the reserved-memory region created by u-boot seems
to be "lpi_rd_table". I cannot find any mentions of lpi_rd_table in the
Linux kernel tree either.

Zhiqiang, Leo is trying to boot Xen on sAL28. Linux booting on Xen
throws errors in regards to GIC/ITS initialization. On other hardware
Xen can use and virtualize GICv3 and ITS just fine. Could you please
explain what is different about sAL28 and how Xen/Linux is expected to
use the lpi_rd_table reserved-memory region?



 


Rackspace

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