From: Randy Dunlap <rdunlap@infradead.org> To: Kenneth Lee <nek.in.cn@gmail.com>, Jonathan Corbet <corbet@lwn.net>, Herbert Xu <herbert@gondor.apana.org.au>, "David S . Miller" <davem@davemloft.net>, Joerg Roedel <joro@8bytes.org>, Alex Williamson <alex.williamson@redhat.com>, Kenneth Lee <liguozhu@hisilicon.com>, Hao Fang <fanghao11@huawei.com>, Zhou Wang <wangzhou1@hisilicon.com>, Zaibo Xu <xuzaibo@huawei.com>, Philippe Ombredanne <pombredanne@nexb.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Thomas Gleixner <tglx@linutronix.de>, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, iommu@lists.linux-foundation.org, kvm@vger.kernel.org, linux-accelerators@lists.ozlabs.org, Lu Baolu <baolu.lu@linux.intel.com>, Sanjay Kumar <sanjay.k.kumar@intel.com> Cc: linuxarm@huawei.com Subject: Re: [RFC PATCH 3/7] vfio: add spimdev support Date: Wed, 1 Aug 2018 09:23:52 -0700 [thread overview] Message-ID: <d11c7745-2f31-0f33-1bd8-78379dc66e6e@infradead.org> (raw) In-Reply-To: <20180801102221.5308-4-nek.in.cn@gmail.com> On 08/01/2018 03:22 AM, Kenneth Lee wrote: > From: Kenneth Lee <liguozhu@hisilicon.com> > > SPIMDEV is "Share Parent IOMMU Mdev". It is a vfio-mdev. But differ from > the general vfio-mdev: > > 1. It shares its parent's IOMMU. > 2. There is no hardware resource attached to the mdev is created. The > hardware resource (A `queue') is allocated only when the mdev is > opened. > > Currently only the vfio type-1 driver is updated to make it to be aware > of. > > Signed-off-by: Kenneth Lee <liguozhu@hisilicon.com> > Signed-off-by: Zaibo Xu <xuzaibo@huawei.com> > Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com> > --- > drivers/vfio/Kconfig | 1 + > drivers/vfio/Makefile | 1 + > drivers/vfio/spimdev/Kconfig | 10 + > drivers/vfio/spimdev/Makefile | 3 + > drivers/vfio/spimdev/vfio_spimdev.c | 421 ++++++++++++++++++++++++++++ > drivers/vfio/vfio_iommu_type1.c | 136 ++++++++- > include/linux/vfio_spimdev.h | 95 +++++++ > include/uapi/linux/vfio_spimdev.h | 28 ++ > 8 files changed, 689 insertions(+), 6 deletions(-) > create mode 100644 drivers/vfio/spimdev/Kconfig > create mode 100644 drivers/vfio/spimdev/Makefile > create mode 100644 drivers/vfio/spimdev/vfio_spimdev.c > create mode 100644 include/linux/vfio_spimdev.h > create mode 100644 include/uapi/linux/vfio_spimdev.h > > diff --git a/drivers/vfio/spimdev/Kconfig b/drivers/vfio/spimdev/Kconfig > new file mode 100644 > index 000000000000..1226301f9d0e > --- /dev/null > +++ b/drivers/vfio/spimdev/Kconfig > @@ -0,0 +1,10 @@ > +# SPDX-License-Identifier: GPL-2.0 > +config VFIO_SPIMDEV > + tristate "Support for Share Parent IOMMU MDEV" > + depends on VFIO_MDEV_DEVICE > + help > + Support for VFIO Share Parent IOMMU MDEV, which enable the kernel to enables > + support for the light weight hardware accelerator framework, WrapDrive. support the lightweight hardware accelerator framework, WrapDrive. > + > + To compile this as a module, choose M here: the module will be called > + spimdev. -- ~Randy
WARNING: multiple messages have this Message-ID (diff)
From: Randy Dunlap <rdunlap@infradead.org> To: Kenneth Lee <nek.in.cn@gmail.com>, Jonathan Corbet <corbet@lwn.net>, Herbert Xu <herbert@gondor.apana.org.au>, "David S . Miller" <davem@davemloft.net>, Joerg Roedel <joro@8bytes.org>, Alex Williamson <alex.williamson@redhat.com>, Kenneth Lee <liguozhu@hisilicon.com>, Hao Fang <fanghao11@huawei.com>, Zhou Wang <wangzhou1@hisilicon.com>, Zaibo Xu <xuzaibo@huawei.com>, Philippe Ombredanne <pombredanne@nexb.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Thomas Gleixner <tglx@linutronix.de>, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, iommu@lists.linux-foundation.org, kvm@vger.kernel.org, linux-accelerators@lists.ozlabs.org, Lu Baolu <baolu.lu@linux.intel.com>, Sanjay Kumar <sanjay.k.kumar@intel.com> Cc: linuxarm@huawei.com Subject: Re: [RFC PATCH 3/7] vfio: add spimdev support Date: Wed, 1 Aug 2018 09:23:52 -0700 [thread overview] Message-ID: <d11c7745-2f31-0f33-1bd8-78379dc66e6e@infradead.org> (raw) In-Reply-To: <20180801102221.5308-4-nek.in.cn@gmail.com> On 08/01/2018 03:22 AM, Kenneth Lee wrote: > From: Kenneth Lee <liguozhu@hisilicon.com> > > SPIMDEV is "Share Parent IOMMU Mdev". It is a vfio-mdev. But differ from > the general vfio-mdev: > > 1. It shares its parent's IOMMU. > 2. There is no hardware resource attached to the mdev is created. The > hardware resource (A `queue') is allocated only when the mdev is > opened. > > Currently only the vfio type-1 driver is updated to make it to be aware > of. > > Signed-off-by: Kenneth Lee <liguozhu@hisilicon.com> > Signed-off-by: Zaibo Xu <xuzaibo@huawei.com> > Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com> > --- > drivers/vfio/Kconfig | 1 + > drivers/vfio/Makefile | 1 + > drivers/vfio/spimdev/Kconfig | 10 + > drivers/vfio/spimdev/Makefile | 3 + > drivers/vfio/spimdev/vfio_spimdev.c | 421 ++++++++++++++++++++++++++++ > drivers/vfio/vfio_iommu_type1.c | 136 ++++++++- > include/linux/vfio_spimdev.h | 95 +++++++ > include/uapi/linux/vfio_spimdev.h | 28 ++ > 8 files changed, 689 insertions(+), 6 deletions(-) > create mode 100644 drivers/vfio/spimdev/Kconfig > create mode 100644 drivers/vfio/spimdev/Makefile > create mode 100644 drivers/vfio/spimdev/vfio_spimdev.c > create mode 100644 include/linux/vfio_spimdev.h > create mode 100644 include/uapi/linux/vfio_spimdev.h > > diff --git a/drivers/vfio/spimdev/Kconfig b/drivers/vfio/spimdev/Kconfig > new file mode 100644 > index 000000000000..1226301f9d0e > --- /dev/null > +++ b/drivers/vfio/spimdev/Kconfig > @@ -0,0 +1,10 @@ > +# SPDX-License-Identifier: GPL-2.0 > +config VFIO_SPIMDEV > + tristate "Support for Share Parent IOMMU MDEV" > + depends on VFIO_MDEV_DEVICE > + help > + Support for VFIO Share Parent IOMMU MDEV, which enable the kernel to enables > + support for the light weight hardware accelerator framework, WrapDrive. support the lightweight hardware accelerator framework, WrapDrive. > + > + To compile this as a module, choose M here: the module will be called > + spimdev. -- ~Randy -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2018-08-01 16:23 UTC|newest] Thread overview: 192+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-08-01 10:22 [RFC PATCH 0/7] A General Accelerator Framework, WarpDrive Kenneth Lee 2018-08-01 10:22 ` Kenneth Lee 2018-08-01 10:22 ` [RFC PATCH 1/7] vfio/spimdev: Add documents for WarpDrive framework Kenneth Lee 2018-08-01 10:22 ` Kenneth Lee [not found] ` <20180801102221.5308-2-nek.in.cn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2018-08-02 3:14 ` Tian, Kevin 2018-08-02 3:14 ` Tian, Kevin 2018-08-02 3:14 ` Tian, Kevin [not found] ` <AADFC41AFE54684AB9EE6CBC0274A5D191290F04-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org> 2018-08-02 4:22 ` Kenneth Lee 2018-08-02 4:22 ` Kenneth Lee 2018-08-02 4:22 ` Kenneth Lee 2018-08-02 4:41 ` Tian, Kevin 2018-08-02 4:41 ` Tian, Kevin 2018-08-02 4:41 ` Tian, Kevin 2018-08-06 12:27 ` Pavel Machek 2018-08-06 12:27 ` Pavel Machek [not found] ` <20180806122733.GA17232-5NIqAleC692hcjWhqY66xCZi+YwRKgec@public.gmane.org> 2018-08-08 1:43 ` Kenneth Lee 2018-08-08 1:43 ` Kenneth Lee 2018-08-08 1:43 ` Kenneth Lee 2018-08-01 10:22 ` [RFC PATCH 2/7] iommu: Add share domain interface in iommu for spimdev Kenneth Lee 2018-08-01 10:22 ` Kenneth Lee [not found] ` <20180801102221.5308-3-nek.in.cn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2018-08-02 3:17 ` Tian, Kevin 2018-08-02 3:17 ` Tian, Kevin 2018-08-02 3:17 ` Tian, Kevin [not found] ` <AADFC41AFE54684AB9EE6CBC0274A5D191290F49-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org> 2018-08-02 4:15 ` Kenneth Lee 2018-08-02 4:15 ` Kenneth Lee 2018-08-02 4:15 ` Kenneth Lee 2018-08-02 4:39 ` Tian, Kevin 2018-08-02 4:39 ` Tian, Kevin 2018-08-08 9:13 ` Joerg Roedel 2018-08-08 9:13 ` Joerg Roedel 2018-08-08 9:13 ` Joerg Roedel [not found] ` <20180808091354.ppqgineql3pufwwr-zLv9SwRftAIdnm+yROfE0A@public.gmane.org> 2018-08-09 1:09 ` Kenneth Lee 2018-08-09 1:09 ` Kenneth Lee 2018-08-09 1:09 ` Kenneth Lee 2018-08-01 10:22 ` [RFC PATCH 3/7] vfio: add spimdev support Kenneth Lee 2018-08-01 10:22 ` Kenneth Lee 2018-08-01 16:23 ` Randy Dunlap [this message] 2018-08-01 16:23 ` Randy Dunlap [not found] ` <d11c7745-2f31-0f33-1bd8-78379dc66e6e-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org> 2018-08-02 3:07 ` Kenneth Lee 2018-08-02 3:07 ` Kenneth Lee 2018-08-02 3:07 ` Kenneth Lee 2018-08-02 3:21 ` Tian, Kevin 2018-08-02 3:21 ` Tian, Kevin 2018-08-02 3:21 ` Tian, Kevin [not found] ` <AADFC41AFE54684AB9EE6CBC0274A5D191290F7B-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org> 2018-08-02 3:47 ` Kenneth Lee 2018-08-02 3:47 ` Kenneth Lee 2018-08-02 3:47 ` Kenneth Lee 2018-08-02 4:24 ` Tian, Kevin 2018-08-02 4:24 ` Tian, Kevin 2018-08-02 4:24 ` Tian, Kevin 2018-08-02 7:34 ` Kenneth Lee 2018-08-02 7:34 ` Kenneth Lee 2018-08-02 7:34 ` Kenneth Lee 2018-08-02 7:34 ` Kenneth Lee 2018-08-02 8:35 ` Cornelia Huck 2018-08-02 8:35 ` Cornelia Huck [not found] ` <20180802103528.0b863030.cohuck-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2018-08-02 18:43 ` Alex Williamson 2018-08-02 18:43 ` Alex Williamson [not found] ` <20180802124327.403b10ab-1yVPhWWZRC1BDLzU/O5InQ@public.gmane.org> 2018-08-06 1:40 ` Kenneth Lee 2018-08-06 1:40 ` Kenneth Lee 2018-08-06 1:40 ` Kenneth Lee 2018-08-06 15:49 ` Alex Williamson 2018-08-06 15:49 ` Alex Williamson 2018-08-06 15:49 ` Alex Williamson 2018-08-06 15:49 ` Alex Williamson 2018-08-06 16:34 ` Raj, Ashok 2018-08-06 16:34 ` Raj, Ashok 2018-08-06 16:34 ` Raj, Ashok 2018-08-06 16:34 ` Raj, Ashok 2018-08-06 17:05 ` Alex Williamson 2018-08-06 17:05 ` Alex Williamson 2018-08-06 17:05 ` Alex Williamson 2018-08-06 17:05 ` Alex Williamson [not found] ` <20180806110521.0b708e0b-1yVPhWWZRC1BDLzU/O5InQ@public.gmane.org> 2018-08-08 1:32 ` Kenneth Lee 2018-08-08 1:32 ` Kenneth Lee 2018-08-08 1:32 ` Kenneth Lee 2018-08-01 10:22 ` [RFC PATCH 4/7] crypto: add hisilicon Queue Manager driver Kenneth Lee 2018-08-01 10:22 ` Kenneth Lee 2018-08-01 10:22 ` [RFC PATCH 5/7] crypto: Add Hisilicon Zip driver Kenneth Lee 2018-08-01 10:22 ` Kenneth Lee 2018-08-01 10:22 ` [RFC PATCH 6/7] crypto: add spimdev support to Hisilicon QM Kenneth Lee 2018-08-01 10:22 ` Kenneth Lee 2018-08-01 10:22 ` [RFC PATCH 7/7] vfio/spimdev: add user sample for spimdev Kenneth Lee 2018-08-01 10:22 ` Kenneth Lee [not found] ` <20180801102221.5308-1-nek.in.cn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2018-08-01 16:56 ` [RFC PATCH 0/7] A General Accelerator Framework, WarpDrive Jerome Glisse 2018-08-01 16:56 ` Jerome Glisse 2018-08-01 16:56 ` Jerome Glisse [not found] ` <20180801165644.GA3820-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2018-08-02 2:33 ` Tian, Kevin 2018-08-02 2:33 ` Tian, Kevin 2018-08-02 2:33 ` Tian, Kevin [not found] ` <AADFC41AFE54684AB9EE6CBC0274A5D191290E1A-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org> 2018-08-02 4:05 ` Kenneth Lee 2018-08-02 4:05 ` Kenneth Lee 2018-08-02 4:05 ` Kenneth Lee 2018-08-02 4:05 ` Kenneth Lee 2018-08-02 14:22 ` Jerome Glisse 2018-08-02 14:22 ` Jerome Glisse 2018-08-02 14:22 ` Jerome Glisse 2018-08-02 14:22 ` Jerome Glisse [not found] ` <20180802142243.GA3481-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2018-08-03 3:47 ` Kenneth Lee 2018-08-03 3:47 ` Kenneth Lee 2018-08-03 3:47 ` Kenneth Lee 2018-08-03 3:47 ` Kenneth Lee 2018-08-03 14:39 ` Jerome Glisse 2018-08-03 14:39 ` Jerome Glisse 2018-08-03 14:39 ` Jerome Glisse 2018-08-03 14:39 ` Jerome Glisse [not found] ` <20180803143944.GA4079-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2018-08-06 3:12 ` Kenneth Lee 2018-08-06 3:12 ` Kenneth Lee 2018-08-06 3:12 ` Kenneth Lee 2018-08-06 3:12 ` Kenneth Lee 2018-08-06 15:32 ` Jerome Glisse 2018-08-06 15:32 ` Jerome Glisse 2018-08-06 15:32 ` Jerome Glisse 2018-08-06 15:32 ` Jerome Glisse 2018-08-08 1:08 ` Kenneth Lee 2018-08-08 1:08 ` Kenneth Lee 2018-08-08 1:08 ` Kenneth Lee 2018-08-08 1:08 ` Kenneth Lee [not found] ` <11bace0e-dc14-5d2c-f65c-25b852f4e9ca-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2018-08-08 15:18 ` Jerome Glisse 2018-08-08 15:18 ` Jerome Glisse 2018-08-08 15:18 ` Jerome Glisse 2018-08-08 15:18 ` Jerome Glisse 2018-08-09 8:03 ` Kenneth Lee 2018-08-09 8:03 ` Kenneth Lee 2018-08-09 8:03 ` Kenneth Lee 2018-08-09 8:03 ` Kenneth Lee 2018-08-09 8:31 ` Tian, Kevin 2018-08-09 8:31 ` Tian, Kevin 2018-08-09 8:31 ` Tian, Kevin 2018-08-10 1:37 ` Kenneth Lee 2018-08-10 1:37 ` Kenneth Lee 2018-08-10 1:37 ` Kenneth Lee 2018-08-09 14:46 ` Jerome Glisse 2018-08-09 14:46 ` Jerome Glisse 2018-08-09 14:46 ` Jerome Glisse 2018-08-09 14:46 ` Jerome Glisse [not found] ` <20180809144613.GB3386-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2018-08-10 3:39 ` Kenneth Lee 2018-08-10 3:39 ` Kenneth Lee 2018-08-10 3:39 ` Kenneth Lee 2018-08-10 13:12 ` Jean-Philippe Brucker 2018-08-10 13:12 ` Jean-Philippe Brucker 2018-08-10 13:12 ` Jean-Philippe Brucker [not found] ` <0f6bac9b-8381-1874-9367-46b5f4cef56e-5wv7dgnIgG8@public.gmane.org> 2018-08-11 15:26 ` Kenneth Lee 2018-08-11 15:26 ` Kenneth Lee 2018-08-13 9:29 ` Kenneth Lee 2018-08-13 9:29 ` Kenneth Lee 2018-08-13 19:23 ` Jerome Glisse 2018-08-13 19:23 ` Jerome Glisse 2018-08-13 19:23 ` Jerome Glisse 2018-08-14 3:46 ` Kenneth Lee 2018-08-14 3:46 ` Kenneth Lee 2018-08-10 14:32 ` Jerome Glisse 2018-08-10 14:32 ` Jerome Glisse 2018-08-10 14:32 ` Jerome Glisse 2018-08-11 14:44 ` Kenneth Lee 2018-08-11 14:44 ` Kenneth Lee 2018-08-11 14:44 ` Kenneth Lee 2018-08-02 10:10 ` Alan Cox 2018-08-02 10:10 ` Alan Cox 2018-08-02 10:10 ` Alan Cox 2018-08-02 10:10 ` Alan Cox 2018-08-02 12:24 ` Xu Zaibo 2018-08-02 12:24 ` Xu Zaibo 2018-08-02 12:24 ` Xu Zaibo 2018-08-02 12:24 ` Xu Zaibo 2018-08-02 14:46 ` Jerome Glisse 2018-08-02 14:46 ` Jerome Glisse 2018-08-02 14:46 ` Jerome Glisse 2018-08-02 14:46 ` Jerome Glisse [not found] ` <20180802144627.GB3481-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2018-08-03 14:20 ` Alan Cox 2018-08-03 14:20 ` Alan Cox 2018-08-03 14:20 ` Alan Cox 2018-08-03 14:55 ` Jerome Glisse 2018-08-03 14:55 ` Jerome Glisse 2018-08-03 14:55 ` Jerome Glisse 2018-08-06 1:26 ` Kenneth Lee 2018-08-06 1:26 ` Kenneth Lee 2018-08-06 1:26 ` Kenneth Lee 2018-08-02 2:59 ` Tian, Kevin 2018-08-02 2:59 ` Tian, Kevin 2018-08-02 2:59 ` Tian, Kevin [not found] ` <AADFC41AFE54684AB9EE6CBC0274A5D191290EB3-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org> 2018-08-02 3:40 ` Kenneth Lee 2018-08-02 3:40 ` Kenneth Lee 2018-08-02 3:40 ` Kenneth Lee 2018-08-02 4:36 ` Tian, Kevin 2018-08-02 4:36 ` Tian, Kevin 2018-08-02 4:36 ` Tian, Kevin 2018-08-02 4:36 ` Tian, Kevin 2018-08-02 5:35 ` Kenneth Lee 2018-08-02 5:35 ` Kenneth Lee 2018-08-02 5:35 ` Kenneth Lee 2018-08-02 5:35 ` Kenneth Lee
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=d11c7745-2f31-0f33-1bd8-78379dc66e6e@infradead.org \ --to=rdunlap@infradead.org \ --cc=alex.williamson@redhat.com \ --cc=baolu.lu@linux.intel.com \ --cc=corbet@lwn.net \ --cc=davem@davemloft.net \ --cc=fanghao11@huawei.com \ --cc=gregkh@linuxfoundation.org \ --cc=herbert@gondor.apana.org.au \ --cc=iommu@lists.linux-foundation.org \ --cc=joro@8bytes.org \ --cc=kvm@vger.kernel.org \ --cc=liguozhu@hisilicon.com \ --cc=linux-accelerators@lists.ozlabs.org \ --cc=linux-crypto@vger.kernel.org \ --cc=linux-doc@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linuxarm@huawei.com \ --cc=nek.in.cn@gmail.com \ --cc=pombredanne@nexb.com \ --cc=sanjay.k.kumar@intel.com \ --cc=tglx@linutronix.de \ --cc=wangzhou1@hisilicon.com \ --cc=xuzaibo@huawei.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.