[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180906091032.GE230707@Turing-Arch-b>
Date: Thu, 6 Sep 2018 17:10:32 +0800
From: Kenneth Lee <liguozhu@...ilicon.com>
To: Randy Dunlap <rdunlap@...radead.org>
CC: Kenneth Lee <nek.in.cn@...il.com>,
Jonathan Corbet <corbet@....net>,
Herbert Xu <herbert@...dor.apana.org.au>,
"David S . Miller" <davem@...emloft.net>,
Joerg Roedel <joro@...tes.org>,
Alex Williamson <alex.williamson@...hat.com>,
Hao Fang <fanghao11@...wei.com>,
Zhou Wang <wangzhou1@...ilicon.com>,
Zaibo Xu <xuzaibo@...wei.com>,
Philippe Ombredanne <pombredanne@...b.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
<linux-doc@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-crypto@...r.kernel.org>, <iommu@...ts.linux-foundation.org>,
<kvm@...r.kernel.org>, <linux-accelerators@...ts.ozlabs.org>,
Lu Baolu <baolu.lu@...ux.intel.com>,
Sanjay Kumar <sanjay.k.kumar@...el.com>, <linuxarm@...wei.com>
Subject: Re: [PATCH 7/7] vfio/sdmdev: add user sample
On Sun, Sep 02, 2018 at 07:25:12PM -0700, Randy Dunlap wrote:
> Date: Sun, 2 Sep 2018 19:25:12 -0700
> From: Randy Dunlap <rdunlap@...radead.org>
> To: Kenneth Lee <nek.in.cn@...il.com>, Jonathan Corbet <corbet@....net>,
> Herbert Xu <herbert@...dor.apana.org.au>, "David S . Miller"
> <davem@...emloft.net>, Joerg Roedel <joro@...tes.org>, Alex Williamson
> <alex.williamson@...hat.com>, Kenneth Lee <liguozhu@...ilicon.com>, Hao
> Fang <fanghao11@...wei.com>, Zhou Wang <wangzhou1@...ilicon.com>, Zaibo Xu
> <xuzaibo@...wei.com>, Philippe Ombredanne <pombredanne@...b.com>, Greg
> Kroah-Hartman <gregkh@...uxfoundation.org>, Thomas Gleixner
> <tglx@...utronix.de>, linux-doc@...r.kernel.org,
> linux-kernel@...r.kernel.org, linux-crypto@...r.kernel.org,
> iommu@...ts.linux-foundation.org, kvm@...r.kernel.org,
> linux-accelerators@...ts.ozlabs.org, Lu Baolu <baolu.lu@...ux.intel.com>,
> Sanjay Kumar <sanjay.k.kumar@...el.com>
> CC: linuxarm@...wei.com
> Subject: Re: [PATCH 7/7] vfio/sdmdev: add user sample
> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
> Thunderbird/52.9.1
> Message-ID: <ff75ff6a-2cd8-b25e-8d19-52e8f57141da@...radead.org>
>
> On 09/02/2018 05:52 PM, Kenneth Lee wrote:
> > From: Kenneth Lee <liguozhu@...ilicon.com>
> >
> > 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. drv/*, the user driver to access the hardware upon spimdev
> > 3. test/*, the test application to use WrapDrive interface to access the
>
> WarpDrive
>
> > hardware queue(s) of the accelerator.
> >
> > The Hisilicon HIP08 ZIP accelerator is used in this sample.
> >
> > Signed-off-by: Zaibo Xu <xuzaibo@...wei.com>
> > Signed-off-by: Kenneth Lee <liguozhu@...ilicon.com>
> > Signed-off-by: Hao Fang <fanghao11@...wei.com>
> > Signed-off-by: Zhou Wang <wangzhou1@...ilicon.com>
> > ---
> > samples/warpdrive/AUTHORS | 2 +
> > samples/warpdrive/ChangeLog | 1 +
> > samples/warpdrive/Makefile.am | 9 +
> > samples/warpdrive/NEWS | 1 +
> > samples/warpdrive/README | 32 +++
> > samples/warpdrive/autogen.sh | 3 +
> > samples/warpdrive/cleanup.sh | 13 ++
> > samples/warpdrive/configure.ac | 52 +++++
> > samples/warpdrive/drv/hisi_qm_udrv.c | 223 ++++++++++++++++++
> > samples/warpdrive/drv/hisi_qm_udrv.h | 53 +++++
> > samples/warpdrive/test/Makefile.am | 7 +
> > samples/warpdrive/test/comp_hw.h | 23 ++
> > samples/warpdrive/test/test_hisi_zip.c | 206 +++++++++++++++++
> > samples/warpdrive/wd.c | 309 +++++++++++++++++++++++++
> > samples/warpdrive/wd.h | 154 ++++++++++++
> > samples/warpdrive/wd_adapter.c | 74 ++++++
> > samples/warpdrive/wd_adapter.h | 43 ++++
> > 17 files changed, 1205 insertions(+)
> > create mode 100644 samples/warpdrive/AUTHORS
> > create mode 100644 samples/warpdrive/ChangeLog
> > create mode 100644 samples/warpdrive/Makefile.am
> > create mode 100644 samples/warpdrive/NEWS
> > create mode 100644 samples/warpdrive/README
> > create mode 100755 samples/warpdrive/autogen.sh
> > create mode 100755 samples/warpdrive/cleanup.sh
> > create mode 100644 samples/warpdrive/configure.ac
> > create mode 100644 samples/warpdrive/drv/hisi_qm_udrv.c
> > create mode 100644 samples/warpdrive/drv/hisi_qm_udrv.h
> > create mode 100644 samples/warpdrive/test/Makefile.am
> > create mode 100644 samples/warpdrive/test/comp_hw.h
> > create mode 100644 samples/warpdrive/test/test_hisi_zip.c
> > create mode 100644 samples/warpdrive/wd.c
> > create mode 100644 samples/warpdrive/wd.h
> > create mode 100644 samples/warpdrive/wd_adapter.c
> > create mode 100644 samples/warpdrive/wd_adapter.h
>
> > diff --git a/samples/warpdrive/README b/samples/warpdrive/README
> > new file mode 100644
> > index 000000000000..3adf66b112fc
> > --- /dev/null
> > +++ b/samples/warpdrive/README
> > @@ -0,0 +1,32 @@
> > +WD User Land Demonstration
> > +==========================
> > +
> > +This directory contains some applications and libraries to demonstrate how a
> > +
> > +WrapDrive application can be constructed.
>
> WarpDrive
>
> > +
> > +
> > +As a demo, we try to make it simple and clear for understanding. It is not
> > +
> > +supposed to be used in business scenario.
> > +
> > +
> > +The directory contains the following elements:
> > +
> > +wd.[ch]
> > + A demonstration WrapDrive fundamental library which wraps the basic
>
> WarpDrive
>
> > + operations to the WrapDrive-ed device.
>
> WarpDrive
>
> > +
> > +wd_adapter.[ch]
> > + User driver adaptor for wd.[ch]
> > +
> > +wd_utils.[ch]
> > + Some utitlities function used by WD and its drivers
> > +
> > +drv/*
> > + User drivers. It helps to fulfill the semantic of wd.[ch] for
> > + particular hardware
> > +
> > +test/*
> > + Test applications to use the wrapdrive library
>
> warpdrive
>
> --
> ~Randy
Thank you, will change them all in the coming version.
--
-Kenneth(Hisilicon)
================================================================================
本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
This e-mail and its attachments contain confidential information from HUAWEI,
which is intended only for the person or entity whose address is listed above.
Any use of the
information contained herein in any way (including, but not limited to, total or
partial disclosure, reproduction, or dissemination) by persons other than the
intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify
the sender by phone or email immediately and delete it!
Powered by blists - more mailing lists