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

Re: Help: Information required for AXI DMA passthrough for PL masters in ZCU102 dev kit


  • To: Julien Grall <julien@xxxxxxx>
  • From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>
  • Date: Mon, 10 May 2021 18:49:07 -0700
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=xen.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) 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=X0BzE+ri4XhJJvUDt79O2gfcpl/7AT93OXUoLPnrTTU=; b=c5UyLXIK8AtRc5yP6P3YC86A4ujEA4WGpnfPV20n3b2XPxZnPiPHhy2chdQ0xtL+TCA78w/GL7pJzWRZPGkido06Hb9tXyofmhcEGc/e3jCUGQrq7Pn51I5uyjBij+9XEV+kWa86J7fi/R82LJnxJgZMNfFusuqtFTtMuUr6xa8ekNOgJcFBMr8tSYQqV1riYXGBlYOId3zSosAFc8xSTfI9QtgzY1jRAad9tkK3sWgGheC7m/X2WMcQmONmROqEtVjNy6KJG9i+1uUtbciL46r+aOBz9Z8MZ0qpQrnftRvpzz8Oqp3oyjiNfXRu71y7bbwwDoB3d0gwBd7GGs4iww==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JyUlZlumW2Oh/sKw1dMARo0iyyF3Xrgg0w5LV79Ke1GsgfepM3dgV2tbRe+Zq69KCD9r7Uc0Q0H+QwcjvaKBBbSysFRCcv8YchUJ5HoQ2iyQEjdfEjuHmWTDri4KaEEJy/3/w7K334bsnCx1V323+4Bi3K2x7+glhwoVadqtS/WVvtWgd5935xAUbAy1GjAsctW4ur2m5i1sKdYghuEM7UhN5WjW/hBxTes0CrEdRlDBIK3WCVBukB4Mp6cKiigR5YOBp1/J+WzGzAbgox7DMgTRvuDlmPKeICkqAj0Ioj9MtdvNX7+JhtXvnf1ZsmJRazurh/6muy7gI31FPORCbQ==
  • Cc: Prem Harikrishnan <prem.harikrishnan@xxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "xen-users@xxxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxxx>, <brian.woods@xxxxxxxxxx>, <fnuv@xxxxxxxxxx>, <edgari@xxxxxxxxxx>
  • Delivery-date: Tue, 11 May 2021 01:49:59 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>

On Mon, 10 May 2021, Julien Grall wrote:
> On 26/04/2021 15:41, Prem Harikrishnan wrote:
> > Hello everyone,
> 
> Hi Prem,
> 
> > I am using the latest version of the xilinx mpsoc zcu102 development board
> > and i am trying to create a barematal application that uses the AXI DMA on
> > the programmable logic, using the scatter gather example from the xilinx
> > repository. This works perfectly well for the baremetal application. The
> > diagram below represents the information flow. The AXI DMA and the AXI data
> > FIFO are in the Programable logic (FPGA). This AXI DMA is out of the box IP
> > from Vivado and uses a single channel (Does not use AxUSER) which means the
> > AXI ID cannot manually be set.
> > 
> > 
> > Now i want to make this as a baremetal hypervisor guest, in future this will
> > be replaced by a custom IP with cache colouring enabled. I want to pass
> > through the AXI DMA in the PL. (Not to be used by Dom0)
> > 
> > 
> > I followed this tutorial Baremetal + DomU
> > <https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842536/XEN+EL1+Baremetal+DomU>
> > guest changed the base address to 0x4000000,(1GB allocated to Dom-0) to
> > create my EL1 binary. I used Petalinux 2020.2 to generate my linux, xen
> > image and use tftp to boot.
> > 
> >  From what i understand from the xilinx tutorials Xen+and+PL+Masters
> > <https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842066/Xen+and+PL+Masters>
> > section 3 and MPSOC SMMU
> > <https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841981/Zynq+UltraScale+MPSOC+SMMU>
> > section 4, stream ids are required by the SMMU to get the correct address
> > translation.
> > 
> > I am still unable to figure out how to get the iommu property for my AXI DMA
> > and how to set the dtdev config for my hypervisor guest.
> > 
> > 
> > I can also see some new updates with the XEN 2020.1 and 2020.2 releases
> > which i can be useful to my application
> > 
> >   *   1:1 memory mappings for Xen virtual machines, enabling device
> >     assignments without SMMU
> >   *
> >       Static assignment of PL blocks, including bus-mastering blocks, to
> >     Xen virtual machines
> >   *   Support for PL Device Passthrough to DomU in Xen
> 
> You are usiong a version of Xen that has been customised by Xilinx. So I would
> recommend to contact them directly.
> 
> I have CCed Stefano who might be able to help you.

Hi Julien,

Many thanks for CC'ing me, I missed the email.


Hi Prem,

Let me CC a few people that might be able to help.

 


Rackspace

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