Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp277081imm; Thu, 6 Sep 2018 02:13:09 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZDfY0t7XgxS6hO3Xc71Ura9qrDOsTDj6a49popBBeBoW4/C085wYhG2IhnvpwVP3vbNLpO X-Received: by 2002:a63:6c05:: with SMTP id h5-v6mr1686692pgc.367.1536225189356; Thu, 06 Sep 2018 02:13:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536225189; cv=none; d=google.com; s=arc-20160816; b=WVbBdGkC0qEwTRN4ao96uMKr/4OVX0Qz5JHE6lXZbx9DYuesKkLOYfqPvvfdlNxbXb gnuE43VCiAETGx2rq+ptExwcBnBT3FEaNVDsc83X7f2M/TtDn0lKC3w/lZ2dGYSfsc0p LrFWbDvttxKSUTYVmDfUW9r5FwbM6tFjsbMNx/DsvGq2lx3go92sLIBDRop5GjwQU/CI VSdwAquO4SCVo8JQc7CHlY1JxaD65W2qvQhogyViPOXahZHE3v9N04FTPLMB5nH9QPvR phHM2nKVn/aNbVpofUu5kzl7YrLoV3q6vd3K4DLbi1bhaS6tP9NfrdTsNFbbAOMjHfJr bSSg== 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=dE9zLjl7hCqZsg52i/EPwaxWTY93su78CNNdoZl/Hvc=; b=HxfAoHlQX2HcubFc2VDX09B1GuK8OAJmSjWLrKXfwoBUVG2vTgxhDeP31fQyPwgb1X lP1pgTzLRE8d94vKbrPHZnbTg3Cxc6CEUeD3DJJJekG/aNUb+or3IbawarVJz6opt6TR S55d6sAEcyKV4pFJdq2jMWvEhIoAU7DjN8OHiXBuHN1a1ZIGqj8U8UsdOSl0QOJXs4Fy Yf2EESjY53HemVK6ivp90Y7wIU9KoCmfi9VbhBTYr1pjVkijjQ5ZVvxTHX4Qp67G47jh XhYByrH8pOZLnovBlgfbv0H0P60MxnMXCxF1VFliw6hgHoofhNJJej5NFQXf4zWU5qPA 8RiQ== 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 3-v6si4212575plr.488.2018.09.06.02.12.53; Thu, 06 Sep 2018 02:13:09 -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 S1728466AbeIFNp5 (ORCPT + 99 others); Thu, 6 Sep 2018 09:45:57 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:11666 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727817AbeIFNp5 (ORCPT ); Thu, 6 Sep 2018 09:45:57 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id ECB658CFFD7F5; Thu, 6 Sep 2018 17:11:23 +0800 (CST) Received: from localhost (10.67.212.75) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server (TLS) id 14.3.399.0; Thu, 6 Sep 2018 17:11:18 +0800 Date: Thu, 6 Sep 2018 17:09:31 +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 6/7] crypto: add sdmdev support to Hisilicon QM Message-ID: <20180906090931.GD230707@Turing-Arch-b> References: <20180903005204.26041-1-nek.in.cn@gmail.com> <20180903005204.26041-7-nek.in.cn@gmail.com> <46e57b2b-756e-e256-5b3c-30749d865512@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <46e57b2b-756e-e256-5b3c-30749d865512@infradead.org> 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:19:03PM -0700, Randy Dunlap wrote: > Date: Sun, 2 Sep 2018 19:19:03 -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 6/7] crypto: add sdmdev support to Hisilicon QM > User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 > Thunderbird/52.9.1 > Message-ID: <46e57b2b-756e-e256-5b3c-30749d865512@infradead.org> > > 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 CRYPTO_DEV_HISI_SEC > > To compile this as a module, choose M here: the module > > will be called hisi_sec. > > > > +config CRYPTO_DEV_HISI_SDMDEV > > + bool "Enable SDMDEV interface" > > + depends on CRYPTO_DEV_HISILICON > > + select VFIO_SDMDEV > > + help > > + Enable this enable the SDMDEV, "shared IOMMU Domain Mediated Device" > > At a minimum: > Enable this to enable the SDMDEV, > > although that could be done better. Maybe just: > Enable the SDMDEV "shared IOMMU Domain Mediated Device" > > > > + interface for all Hisilicon accelerators if they can. The SDMDEV > > probably drop "if they can": accelerators. The SDMDEV interface > > > + enable the WarpDrive user space accelerator driver to access the > > enables Thank you, will change them all in the coming version. > > > + hardware function directly. > > + > > > -- > ~Randy -- -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!