Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp277746imm; Thu, 6 Sep 2018 02:14:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaXeBVU2+8OlVXRTWd5lAefm0/WnjUkpIOv7O8S5muCfhB3cHWOZn5lz7/paekualAlx04I X-Received: by 2002:a63:b207:: with SMTP id x7-v6mr1762751pge.401.1536225240405; Thu, 06 Sep 2018 02:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536225240; cv=none; d=google.com; s=arc-20160816; b=TgeRhGQUmgXgdEygYUzvuomREOsdFD1PQ5/r40eOpuuEvNFOWV0UfhaeGy92PvCyXe 3iBa0UVkA2VjghLucMthiF+jCjlS/0nWvtUIHWMnhRrQfRnk/tY8W/YvbRE1GlOoHfIA onR+LB9X7IBRPtTop+PVpNT/EeJ+45mNPoeB54dX61GSBPypbaUFvi7iur2k9Y0eZOgN m06xxA5GAAg9JtzcIUBf15evmGc15TPM/d/hTSIO6XPr93YSrkYKZbI53Q+FHs4fV545 wciWdMQnfEDChx9PEwukkzptTeVPHGyUJeYhPNpiCH+MlvNZJcHRdgPp29vZw15ylA4e fBoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=wBIoAh3p4a+g3OeM2VaD3gLztrmbaWPDGaEHrxAAXRk=; b=vcBkxGJBCBG+1WhtLI76rlcGL8D1wrq9Np4ecVoceb58Exm5/JiNPZjatBw8McsD0O 6t+XG3wD58sgdRTGEUihjCax+L3PGwUi7vlQcKztUCVOvMBMD5gQu6QdwjGU12nvQILD Z9MaUziMyVruzFs4cMiNNC2BH4xlBr9I2N8p8dHSfxp4aP6oN3XM7tLpXoM6iP0kA7j1 ZMzlyGpgogzIokdXPMp3QqJg4rD1vj/DF7yzoZYFoIOV4KONjbegWS3IfTThrfw5EOTY 7HAg20BTG5VJpuT/iZHLU+7cCWyOx8THrbX2XWSy3zsrWK1ZZzkUh5cHAlwZw1KN+czC E+Dg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p9-v6si5233602pll.298.2018.09.06.02.13.45; Thu, 06 Sep 2018 02:14:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728461AbeIFNrC (ORCPT + 99 others); Thu, 6 Sep 2018 09:47:02 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:11646 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728262AbeIFNrB (ORCPT ); Thu, 6 Sep 2018 09:47:01 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id E36316073E78D; Thu, 6 Sep 2018 17:12:28 +0800 (CST) Received: from localhost (10.67.212.75) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server (TLS) id 14.3.399.0; Thu, 6 Sep 2018 17:12:20 +0800 Date: Thu, 6 Sep 2018 17:10:32 +0800 From: Kenneth Lee To: Randy Dunlap CC: Kenneth Lee , Jonathan Corbet , Herbert Xu , "David S . Miller" , Joerg Roedel , Alex Williamson , Hao Fang , Zhou Wang , Zaibo Xu , Philippe Ombredanne , Greg Kroah-Hartman , Thomas Gleixner , , , , , , , Lu Baolu , Sanjay Kumar , Subject: Re: [PATCH 7/7] vfio/sdmdev: add user sample Message-ID: <20180906091032.GE230707@Turing-Arch-b> References: <20180903005204.26041-1-nek.in.cn@gmail.com> <20180903005204.26041-8-nek.in.cn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > To: Kenneth Lee , Jonathan Corbet , > Herbert Xu , "David S . Miller" > , Joerg Roedel , Alex Williamson > , Kenneth Lee , Hao > Fang , Zhou Wang , Zaibo Xu > , Philippe Ombredanne , Greg > Kroah-Hartman , Thomas Gleixner > , 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 , > Sanjay Kumar > CC: linuxarm@huawei.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: > > 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. 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 > > Signed-off-by: Kenneth Lee > > Signed-off-by: Hao Fang > > Signed-off-by: Zhou Wang > > --- > > 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!