Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2534568ybv; Fri, 21 Feb 2020 17:53:41 -0800 (PST) X-Google-Smtp-Source: APXvYqwMonLwwZja8nZw0Nh8VQld5Yz0rF2AHi/25TR2Sw8EpSJTSV+u0pN4WuPaSv3gS8inlY26 X-Received: by 2002:a05:6830:200d:: with SMTP id e13mr31265276otp.364.1582336421511; Fri, 21 Feb 2020 17:53:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582336421; cv=none; d=google.com; s=arc-20160816; b=yq+qAfPHqm+OOG5yxvSK0bDMks6X8mo9MLjixndcwy4WJKyoqfN6mXQ98zFRIQAxNh VA7DVUZU1+fYvuKDZKYfNo8jUuo38rrzkYlhLoZo2rKSWFfqpuDXFP/GdEGKsfQXfB0f +TAOPK2MQSEVpL1E9yUlbCrS8+J5jIqCffNYaQ4eWsV06eP1too+S/Tkzls4Wor/YDhw YNdAxGKSXwXzmEOFLdT8E6yx1eEX18k4RgNndqnAUTU2VuydnysmAe041KyIZWmxeyz3 /yY4EjZBnW7DuJqqLDJ46On3z9KFWfHP+5PhvfRXK5ZOeAgYSa30wml6YVk+LTborok6 EdNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=t2WN9Y6i+1sMeMmerTg/sIx0hN9tYd17GbQLJc7KWJ4=; b=r+jkWnE/nTB+fAGXeS48f2p5QOfG/VnYaefU7LN6Dkjiqo/QCk2nHgCb07i47UJGzl JV5WYKlogwmqbhLXEdMruacUsITm7TjGos97b5ulEGM56aKaV/67g9cXvOGWUa2O34ll 5W6WDy4gVUupd1RS4SQLxke0rGUUs0f6A7XJ2IjiSZ7PW5/TWjqadT502okLwuQSgj/e +07izYH8AOzZcSdgiAer6mNAkT7ASrwMnxDgJJRSfjXX7gOB79hUL7YRPE6Z2Aj543Sd NrfRTHtNuJaJxmiyuMB0lIA6bB44qOaCqIn6NA8lEsx50kMzlxQ5GQfy84mV8WDaf8s5 Eayw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mPktKWlv; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w18si2475795otl.54.2020.02.21.17.53.28; Fri, 21 Feb 2020 17:53:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mPktKWlv; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727907AbgBVBxY (ORCPT + 99 others); Fri, 21 Feb 2020 20:53:24 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:37718 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726842AbgBVBxY (ORCPT ); Fri, 21 Feb 2020 20:53:24 -0500 Received: by mail-pl1-f195.google.com with SMTP id c23so1637712plz.4 for ; Fri, 21 Feb 2020 17:53:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=t2WN9Y6i+1sMeMmerTg/sIx0hN9tYd17GbQLJc7KWJ4=; b=mPktKWlv91J8zSVtP4T+e9BPp7EcbGwMkei5J/fBl3dBCAU7bzR0Gh9Hrdv25yYi9+ KU5dPtNWsjM864SJ4zW/iT/MwY+dXe6EBn0QPYv5gaUfd537Ik6FOLz1nio5+5SPCACT H2zaNJsEkotdbxpnuzIDFodkNIKHUn62v1WuYFB7Flw6y4uugwe6ciVDBaAg/3DQTr7D yOYIWYs2ParfrKfXw8THe7ekRhRjoaUOIX3j0RtXRMw4/Rq89Y6QFmzWMmwrbXk9G6ZW YkPaP40q2o4cISWp+2fU2CXkLpsLcTJ/q7B27GoHMbSVvdbUrMMlVXIb/VXBqn2foHKb ww8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=t2WN9Y6i+1sMeMmerTg/sIx0hN9tYd17GbQLJc7KWJ4=; b=D3lIwnhhCHS8DumhT/ntPtkiT6ExbKmqYpn5H/Kjc14BvD/0FdmJkJmbFDbbGMec43 14wsmcy2Bd15rmQ5NRukyRMfcfCBpRlvscUqkjYSpkZRGWwh9xuGRt1trhFYWi+plYkd zcmD6GBGRdw98RiwWt0tr+2Ym3Hqi90o4hUJhwk25OVL6Xfkl9tTxdfgeRPbcsf0pr8Y T0UdLfE3w/LVQvCtSxBcCohOISimbqnsj4Euyg5p1iI4+mjC9Zi0qbBbnj8jOiBNcWua /evKn7HQ5IKsTZFoWWtJJvwmj8X6LAnw1/BQ0MKIcwQ4wmODsG8cCdHh8//bsw2yFNUf 5zyw== X-Gm-Message-State: APjAAAXxmDOLXUVoDb6Ggg2pWE6mSoMqiMeKYrG+/l3Htc4hnBAf/pVe rvti8ol7HDT1iFXtCLtQfV0gyw== X-Received: by 2002:a17:90a:cf08:: with SMTP id h8mr6352327pju.81.1582336401930; Fri, 21 Feb 2020 17:53:21 -0800 (PST) Received: from ?IPv6:240e:362:47d:ee00:e13e:da52:2837:6aff? ([240e:362:47d:ee00:e13e:da52:2837:6aff]) by smtp.gmail.com with ESMTPSA id 78sm1436422pge.58.2020.02.21.17.52.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Feb 2020 17:53:21 -0800 (PST) Subject: Re: [PATCH v13 0/4] Add uacce module for Accelerator To: Herbert Xu Cc: Greg Kroah-Hartman , Arnd Bergmann , jonathan.cameron@huawei.com, dave.jiang@intel.com, grant.likely@arm.com, jean-philippe , Jerome Glisse , ilias.apalodimas@linaro.org, francois.ozog@linaro.org, kenneth-lee-2012@foxmail.com, Wangzhou , "haojian . zhuang" , guodong.xu@linaro.org, linux-accelerators@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, iommu@lists.linux-foundation.org References: <1581407665-13504-1-git-send-email-zhangfei.gao@linaro.org> <20200222014148.GC19028@gondor.apana.org.au> From: zhangfei Message-ID: <9048453c-530a-9063-b266-faa8d434015b@linaro.org> Date: Sat, 22 Feb 2020 09:52:41 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20200222014148.GC19028@gondor.apana.org.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2020/2/22 上午9:41, Herbert Xu wrote: > On Tue, Feb 11, 2020 at 03:54:21PM +0800, Zhangfei Gao wrote: >> Uacce (Unified/User-space-access-intended Accelerator Framework) targets to >> provide Shared Virtual Addressing (SVA) between accelerators and processes. >> So accelerator can access any data structure of the main cpu. >> This differs from the data sharing between cpu and io device, which share >> data content rather than address. >> Because of unified address, hardware and user space of process can share >> the same virtual address in the communication. >> >> Uacce is intended to be used with Jean Philippe Brucker's SVA >> patchset[1], which enables IO side page fault and PASID support. >> We have keep verifying with Jean's sva patchset [2] >> We also keep verifying with Eric's SMMUv3 Nested Stage patches [3] >> >> This series and related zip & qm driver >> https://github.com/Linaro/linux-kernel-warpdrive/tree/v5.6-rc1-uacce-v13 >> >> The library and user application: >> https://github.com/Linaro/warpdrive/tree/wdprd-upstream-v13 >> >> >> Kenneth Lee (2): >> uacce: Add documents for uacce >> uacce: add uacce driver >> >> Zhangfei Gao (2): >> crypto: hisilicon - Remove module_param uacce_mode >> crypto: hisilicon - register zip engine to uacce >> >> Documentation/ABI/testing/sysfs-driver-uacce | 39 ++ >> Documentation/misc-devices/uacce.rst | 176 ++++++ >> drivers/crypto/hisilicon/qm.c | 239 ++++++- >> drivers/crypto/hisilicon/qm.h | 11 + >> drivers/crypto/hisilicon/zip/zip_main.c | 49 +- >> drivers/misc/Kconfig | 1 + >> drivers/misc/Makefile | 1 + >> drivers/misc/uacce/Kconfig | 13 + >> drivers/misc/uacce/Makefile | 2 + >> drivers/misc/uacce/uacce.c | 617 +++++++++++++++++++ >> include/linux/uacce.h | 161 +++++ >> include/uapi/misc/uacce/hisi_qm.h | 23 + >> include/uapi/misc/uacce/uacce.h | 38 ++ >> 13 files changed, 1337 insertions(+), 33 deletions(-) >> create mode 100644 Documentation/ABI/testing/sysfs-driver-uacce >> create mode 100644 Documentation/misc-devices/uacce.rst >> create mode 100644 drivers/misc/uacce/Kconfig >> create mode 100644 drivers/misc/uacce/Makefile >> create mode 100644 drivers/misc/uacce/uacce.c >> create mode 100644 include/linux/uacce.h >> create mode 100644 include/uapi/misc/uacce/hisi_qm.h >> create mode 100644 include/uapi/misc/uacce/uacce.h > All applied. Thanks. That's Great, Thanks Herbert for the great help.