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

Re: [Xen-devel] [PATCH V4 8/8] iommu/arm: Add Renesas IPMMU-VMSA support


  • To: Oleksandr Tyshchenko <olekstysh@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
  • Date: Fri, 20 Sep 2019 00:25:16 +0000
  • Accept-language: ja-JP, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; 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=vxSyRGPZrkDR69Yq6weO9qPiSoK5MFjQaIqBLiS+/tE=; b=kXUoC/RU3iLeAVUQPeH0QD/otYut9fs5pFMV2uDVT5U3Yqn+PCFg4ffoSaWm050MJwdq2F9C28ScI8Ph/CWDULFOWvk8zCi804eAmfbcVeLE/gdVmzfj2sqmW3JJWADuFlmXn61piLYlYw2ZCLSInYlqriVvJpeIEE18U7PbNFF7YPBLjYbIYQY8s/2Aw0A6Gsv6rHGgqGpYHP2S9hY/iVbCsbcb+g3OfTi4222zFqjHS+PEerVti1wkTTAufTf7Ir5fRyxl6R4QVvslhsqqkZvJfwQHwhpIj3YztBRuAlVov6v9JFZk7poE5zp2DCdsA5Bc8ZlKN3FafmuOIUbEUA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cRrKtjHpUNya4NZHObfwmi0fbLo9ZpSIJoCtIqph7hR2cdk/kUdKQkpu56rysotYTAdyqV6wftLERzPF7VohOwIdRDDGhaQlBf1WmFUY9CirEsPCe1KVU/mGLAL7qUp0eZ/LK/PZ1M0MKJrC389bpeBVrkFjwGzyocNhmdw8eA02hj5g97EdqF/ka5x1mkBzOq/7/6eCyxDwcl2d174puPqE3k+svZfQvluyGlaTqM+AyXnz1yba96dfkLK+ysRaFwTP135DI5l8VLFpOh+siDvyiVV4zdzyakyhiX+PwrWsX1MFiS8ASXWTyGqZL4rA6vftw/GZ52bG3OdUXTBvcA==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=yoshihiro.shimoda.uh@xxxxxxxxxxx;
  • Cc: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>, "julien.grall@xxxxxxx" <julien.grall@xxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "Volodymyr_Babchuk@xxxxxxxx" <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 20 Sep 2019 00:25:30 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVakj4hQ0JtlRx20yRMZkPw2WqFKczvnEg
  • Thread-topic: [PATCH V4 8/8] iommu/arm: Add Renesas IPMMU-VMSA support

Hi Oleksandr-san,

> From: Oleksandr Tyshchenko, Sent: Saturday, September 14, 2019 12:35 AM
> 
> From: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>
> 
> The IPMMU-VMSA is VMSA-compatible I/O Memory Management Unit (IOMMU)
> which provides address translation and access protection functionalities
> to processing units and interconnect networks.
> 
> Please note, current driver is supposed to work only with newest
> R-Car Gen3 SoCs revisions which IPMMU hardware supports stage 2 translation
> table format and is able to use CPU's P2M table as is if one is
> 3-level page table (up to 40 bit IPA).
> 
> The major differences compare to the Linux driver are:
> 
> 1. Stage 1/Stage 2 translation. Linux driver supports Stage 1
> translation only (with Stage 1 translation table format). It manages
> page table by itself. But Xen driver supports Stage 2 translation
> (with Stage 2 translation table format) to be able to share the P2M
> with the CPU. Stage 1 translation is always bypassed in Xen driver.
> 
> So, Xen driver is supposed to be used with newest R-Car Gen3 SoC revisions
> only (H3 ES3.0, M3-W+, etc.) which IPMMU H/W supports stage 2 translation
> table format.
> 
> 2. AArch64 support. Linux driver uses VMSAv8-32 mode, while Xen driver
> enables Armv8 VMSAv8-64 mode to cover up to 40 bit input address.
> 
> 3. Context bank (sets of page table) usage. In Xen, each context bank is
> mapped to one Xen domain. So, all devices being pass throughed to the
> same Xen domain share the same context bank.
> 
> 4. IPMMU device tracking. In Xen, all IOMMU devices are managed
> by single driver instance. So, driver uses global list to keep track
> of registered IPMMU devices.
> 
> Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>
> CC: Julien Grall <julien.grall@xxxxxxx>
> CC: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>

Thank you for the patch. I have reviewed this patch about the IPMMU hardware 
bits,
so,

Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx> [for the 
IPMMU H/W bits]

Best regard,
Yoshihiro Shimoda


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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