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

Re: [Xen-users] Help on passthrough serial device to BareMetal DOMU


  • To: Julien Grall <julien.grall@xxxxxxx>
  • From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>
  • Date: Wed, 31 Jul 2019 15:00:22 -0700 (PDT)
  • Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass (sender ip is 149.199.60.100) smtp.rcpttodomain=arm.com 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=ddZiN35JqG0qIa/rOu1OPUb+BbrRAJwb3U6fvPsw1ac=; b=UnW3cvfWJ5Q8vccQiY054ulyPYSeTQ+OTzNAWfwCTpRbF8cUh2B30gaMtpD2yDBmF00ytSk8/IdnoGAM5uMayUNtfiz+kD69A8W10ek4kNCqydQ+RHdxQ+c4KM15H5/1izm7DjY0Kdqmkkg03RyHvZYhuRqrgFJd8hwd1YoYSBKq3FFauwaWr2DNN+T8RH2MhaPwNJ7IVIl1I91Xeo69Nelf8Qa9BdQb1Bkvu2K5nvj2hJe7uIuOsMnMDVBf8rn09bULuhMiLfz0KmzGLpdGNI0g97wmsHYXWYVyuzI2jhoWbLys56L5Kl6D5tD7z3UOEyjChlF4gik9OPLbsHfhvQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n+I6BeXoDAk75MCIfWRkqQwW7ebsgazxxN6oaZ0vwgX1OlSY8qWVjy8QlZ0nMBvB1Mb4QBAKdMQKxAmy6OuJojc4bYZ+I8OnSNwQlD1/fJZIUBMU4S6JXAElUc5cC15EK0iqD25OwmCrNx8Yd1YZB35SGy1N2wdK52pXnnQSnhTulAE5CwTJFcSv+WywkNj6ndT9DElibQSTtbrfbATTcZ/38YwJwBKqOpxoPcpq61plxY1rEi7rhsNAR3LNyBM/wBNPjScoM7i6qMFVP75N/n28h6w0T7YpAk0XCUd2rqtnamNesvYiOfwiY8X4c8hZyFUSQVx4d+riRC1pKVPcaw==
  • Authentication-results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=bestguesspass action=none header.from=xilinx.com;
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxxx, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Jan Cordes <jancordes95@xxxxxx>, Sarah Newman <srn@xxxxxxxxx>
  • Delivery-date: Thu, 01 Aug 2019 14:30:05 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>

On Tue, 30 Jul 2019, Julien Grall wrote:
> (+ Stefano)
> 
> Hi,
> 
> On 26/07/2019 16:35, Sarah Newman wrote:
> > On 7/26/19 7:27 AM, Jan Cordes wrote:
> > > Hello everybody,
> > > 
> > > we are fairly new to XEN and have a few questions regarding our XEN
> > > setup on Xilinx ZCU102 Board. We want to pass through the UART1 device
> > > to a bare metal guest. The way Xilinx proposed in their documentation to
> > > XEN BareMetal Guests is to add the following via an .dtsi file to the
> > > device tree:
> > > 
> > > &&uart1 {
> > >     xen,passthrough = <0x1>;
> > > };

Yes, this is the only change required to the host device tree (with only
one '&'). You can also add "xen,passthrough = <0x1>;" by hand under the
uart node that you want to assign to the baremetal guest:

        serial@ff010000 {
            u-boot,dm-pre-reloc;
            compatible = "cdns,uart-r1p12", "xlnx,xuartps";
            status = "okay";
            interrupt-parent = <0x4>;
            interrupts = <0x0 0x16 0x4>;
            reg = <0x0 0xff010000 0x0 0x1000>;
            clock-names = "uart_clk", "pclk";
            power-domains = <0x26 0x22>;
            clocks = <0x3 0x39 0x3 0x1f>;
            pinctrl-names = "default";
            pinctrl-0 = <0x38>;
            cts-override;
            device_type = "serial";
            port-number = <0x1>;
            xen,passthrough = <0x1>;
        };

and recompile the device tree with:

dtc -I dts -O dtb mpsoc.dts > mpsoc.dtb


> > > Unfortunately, this does not work for us, we don't get any output on our
> > > serial console.
> > > 
> > > We are using the config file which was provided by xilinx:
> > > 
> > > 
> > > #Guest name
> > >    name = "hello_world"
> > > # Kernel image to boot
> > >    kernel = "xapp_hello_world_el1.bin"
> > > # Kernel command line options - Allocate 8MB
> > >    memory = 8
> > > # Number of VCPUS
> > >    vcpus = 1
> > > # Pin to CPU 0
> > >    cpus = [1]
> > >    irqs = [ 54 ]
> > >    iomem = [ "0xff010,1" ]
> > > 
> > > Maybe someone can give a few tips, which steps are necessary to pass a
> > > device to a bare metal DOMU, or point out where we missed something.

This is correct.

My guess is that the device tree change above wasn't applied correctly
somehow?
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-users

 


Rackspace

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