Re: [PATCH 3/7] vfio: add sdmdev support

2018-09-02 Thread Lu Baolu
Hi, On 09/03/2018 08:52 AM, Kenneth Lee wrote: From: Kenneth Lee SDMDEV is "Share Domain Mdev". It is a vfio-mdev. But differ from the general vfio-mdev, it shares its parent's IOMMU. If Multi-PASID support is enabled in the IOMMU (not yet in the current kernel HEAD), multiple process can

Re: [PATCH 2/5 V6] x86/ioremap: strengthen the logic in early_memremap_pgprot_adjust() to adjust encryption mask

2018-09-02 Thread Dave Young
On 08/31/18 at 04:19pm, Lianbo Jiang wrote: > For kdump kernel, when SME is enabled, the acpi table and dmi table will need > to be remapped without the memory encryption mask. So we have to strengthen > the logic in early_memremap_pgprot_adjust(), which makes us have an > opportunity > to adjust

Re: [RFCv2 PATCH 0/7] A General Accelerator Framework, WarpDrive

2018-09-02 Thread Lu Baolu
Hi, On 09/03/2018 08:51 AM, Kenneth Lee wrote: From: Kenneth Lee WarpDrive is an accelerator framework to expose the hardware capabilities directly to the user space. It makes use of the exist vfio and vfio-mdev facilities. So the user application can send request and DMA to the hardware

Re: [PATCH 7/7] vfio/sdmdev: add user sample

2018-09-02 Thread Randy Dunlap
On 09/02/2018 05:52 PM, Kenneth Lee wrote: > From: Kenneth Lee > > This is the sample code to demostrate how WrapDrive user application > should be. > > It contains: > > 1. wd.[ch], the common library to provide WrapDrive interface. WarpDrive > 2.

Re: [PATCH 6/7] crypto: add sdmdev support to Hisilicon QM

2018-09-02 Thread Randy Dunlap
On 09/02/2018 05:52 PM, Kenneth Lee wrote: > diff --git a/drivers/crypto/hisilicon/Kconfig > b/drivers/crypto/hisilicon/Kconfig > index 1d155708cd69..b85fab48fdab 100644 > --- a/drivers/crypto/hisilicon/Kconfig > +++ b/drivers/crypto/hisilicon/Kconfig > @@ -17,6 +17,16 @@ config

Re: [PATCH 4/7] crypto: add hisilicon Queue Manager driver

2018-09-02 Thread Randy Dunlap
On 09/02/2018 05:52 PM, Kenneth Lee wrote: > diff --git a/drivers/crypto/hisilicon/Kconfig > b/drivers/crypto/hisilicon/Kconfig > index 8ca9c503bcb0..02a6eef84101 100644 > --- a/drivers/crypto/hisilicon/Kconfig > +++ b/drivers/crypto/hisilicon/Kconfig > @@ -1,4 +1,8 @@ > #

Re: [PATCH 3/7] vfio: add sdmdev support

2018-09-02 Thread Randy Dunlap
On 09/02/2018 05:52 PM, Kenneth Lee wrote: > diff --git a/drivers/vfio/sdmdev/Kconfig b/drivers/vfio/sdmdev/Kconfig > new file mode 100644 > index ..51474272870d > --- /dev/null > +++ b/drivers/vfio/sdmdev/Kconfig > @@ -0,0 +1,10 @@ > +# SPDX-License-Identifier: GPL-2.0 > +config

[PATCH 6/7] crypto: add sdmdev support to Hisilicon QM

2018-09-02 Thread Kenneth Lee
From: Kenneth Lee This commit add spimdev support to the Hislicon QM driver, any accelerator that use QM can expose its queues to the user space. Signed-off-by: Kenneth Lee Signed-off-by: Zhou Wang Signed-off-by: Hao Fang Signed-off-by: Zaibo Xu --- drivers/crypto/hisilicon/Kconfig | 10

[PATCH 7/7] vfio/sdmdev: add user sample

2018-09-02 Thread Kenneth Lee
From: Kenneth Lee This is the sample code to demostrate how WrapDrive user application should be. It contains: 1. wd.[ch], the common library to provide WrapDrive interface. 2. drv/*, the user driver to access the hardware upon spimdev 3. test/*, the test application to use WrapDrive interface

[PATCH 1/7] vfio/sdmdev: Add documents for WarpDrive framework

2018-09-02 Thread Kenneth Lee
From: Kenneth Lee WarpDrive is a common user space accelerator framework. Its main component in Kernel is called sdmdev, Share Domain Mediated Device. It exposes the hardware capabilities to the user space via vfio-mdev. So processes in user land can obtain a "queue" by open the device and

[RFCv2 PATCH 0/7] A General Accelerator Framework, WarpDrive

2018-09-02 Thread Kenneth Lee
From: Kenneth Lee WarpDrive is an accelerator framework to expose the hardware capabilities directly to the user space. It makes use of the exist vfio and vfio-mdev facilities. So the user application can send request and DMA to the hardware without interaction with the kernel. This removes the

[PATCH 4/7] crypto: add hisilicon Queue Manager driver

2018-09-02 Thread Kenneth Lee
From: Kenneth Lee Hisilicon QM is a general IP used by some Hisilicon accelerators. It provides a general PCIE interface for the CPU and the accelerator to share a group of queues. This commit includes a library used by the accelerator driver to access the QM hardware. Signed-off-by: Kenneth

[PATCH 3/7] vfio: add sdmdev support

2018-09-02 Thread Kenneth Lee
From: Kenneth Lee SDMDEV is "Share Domain Mdev". It is a vfio-mdev. But differ from the general vfio-mdev, it shares its parent's IOMMU. If Multi-PASID support is enabled in the IOMMU (not yet in the current kernel HEAD), multiple process can share the IOMMU by different PASID. If it is not

[PATCH 2/7] iommu: Add share domain interface in iommu for sdmdev

2018-09-02 Thread Kenneth Lee
From: Kenneth Lee This patch add sharing interface for a iommu_group. The new interface: iommu_group_share_domain() iommu_group_unshare_domain() can be used by some virtual iommu_group (such as iommu_group of sdmdev) to share their parent's iommu_group. When the domain of a

[GIT PULL] dma mapping fixes for 4.19-rc2

2018-09-02 Thread Christoph Hellwig
The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) are available in the Git repository at: git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-4.19-2 for you to fetch changes up to