Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1343836imm; Sun, 2 Sep 2018 19:56:19 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ7JhZ5+YzWta/PhnzCiScWwCtA6wedT/KGLaMW5Qvr+vgeN5ROvstzF3MvBK5Lqdp0UsHd X-Received: by 2002:a17:902:7c96:: with SMTP id y22-v6mr21657288pll.332.1535943378984; Sun, 02 Sep 2018 19:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535943378; cv=none; d=google.com; s=arc-20160816; b=NjYRovLSKOGDCR0jEg8pYOTBhtkpe3NCQYUTX8pjIPFwkBnw8G1BRZFMov7fDnzJDf xrRwPx6lXbE3Nh1YfsyW1KrEclTLmmcqAKkWool4WpmFymhK1FaGYq2+o3QqUPz4jWbp HhOzxwJPkaSKA7XpugUnjCbVXNpbF1Pw4Hs3myC37/YMrUIxE0koxGySdF+rQwgjzTj5 vKCO+SDfYkndkhIxYY3FVBmhfksx2/ZVPfhIZp24Jha52P+JreQ2JC5Phw0UEaija9Nx zykmO36MlmIr/kgzQKIDjHfDbDaN8T9Ocp+komKVVxLrXwWdg25HwKpi2cq0iO/gFuJ4 VGRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=fWyWepqHQBvMnBljLMyt03pm2wSivxNxBmNAWmNz42E=; b=HGJV00ALwpmOzexaPRY2zIj1/7Dqag0gWrhRja4jB+OIXSR4IQfQa5Qgk8TbA2VLAX nAFGnh+gsmKX1U4Crwn1S6E3xwXf2/89+PFZm90Qx2+LDYOJvo6qx+lkqgUp3n9JEqcU Hls9isnxDb1LGFVnAKUQy1b/b4RIfDy7ERSNQWw+tdsixnw/oR0nUVvf1o8QJg6L1Fra ESpTZEdQSFqMx7S+wWaPmvlz71QfFfhmLoUCp1LcMqpsSxGvWyWvGg04GRW6Mv0bYGmF X5mzijqfyrSxZ/9tphw31hsyp6nOA0jD1MFJ2w3AoIunjJk0lgOhAs+qjfV3gKk2H5qk j3LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=aV4ViLZu; 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 1-v6si18350381ply.483.2018.09.02.19.56.03; Sun, 02 Sep 2018 19:56:18 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=aV4ViLZu; 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 S1727380AbeICGhM (ORCPT + 99 others); Mon, 3 Sep 2018 02:37:12 -0400 Received: from merlin.infradead.org ([205.233.59.134]:33074 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbeICGhL (ORCPT ); Mon, 3 Sep 2018 02:37:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fWyWepqHQBvMnBljLMyt03pm2wSivxNxBmNAWmNz42E=; b=aV4ViLZu/PjIyJzP8EkEQE8YAo f88H5LdTJ93ZTuP0HZ0kGumyF68+hO5+XjvtvADz+Lx4eGF9PbpmVnq4XawPMO2ZHqXdzaVz/i6U4 YqFjXluq3IUEfI1UqHMHlXiGCxpUJRIKpkTb+uWviKj1unQFD2HajjFUzkz06y8gFcmpalQiE7wfq eJ/YxVfVH7s3wTq26kdwYuOwU1QLwMBI1W0hHMnieHCoRem538zyoUWdNGiPfZ7Ou3YKebw905LmW UA/4MxBPAp16dvJkvh84YyNxUtzd1Gv6rBPUuAVG0Ux8cbWRTNwCXFgO/hPbYz5/kaNMk1EmcaAQG V8438kbw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fweSJ-0005Rl-0N; Mon, 03 Sep 2018 02:19:07 +0000 Subject: Re: [PATCH 6/7] crypto: add sdmdev support to Hisilicon QM 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 References: <20180903005204.26041-1-nek.in.cn@gmail.com> <20180903005204.26041-7-nek.in.cn@gmail.com> From: Randy Dunlap Message-ID: <46e57b2b-756e-e256-5b3c-30749d865512@infradead.org> Date: Sun, 2 Sep 2018 19:19:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180903005204.26041-7-nek.in.cn@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 > + hardware function directly. > + -- ~Randy