Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp639979ybe; Wed, 4 Sep 2019 05:39:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5gV6b/pcqCO96MTvA5pX75MfOamsJHBguXAoSKzA8eTzCxmwXiCHrhHmCNvx4xw+2vagU X-Received: by 2002:a63:5d54:: with SMTP id o20mr35338993pgm.413.1567600754121; Wed, 04 Sep 2019 05:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567600754; cv=none; d=google.com; s=arc-20160816; b=OhTM2wgxkr8dckBEa7eNLTUmO4QPOZDkjwUDU5FZZNQxUqW0XOe4XV7ok4wHqla0qT o9+RqIAo8+BCHodJVBPxkRtfERQMDEONG67oS9y3GPCENi8nKPMW79CyMOlhcTw8Vpv1 l3tK4O5FK8cGamm4Np50///RQyeWsbLOITKT1cGrNnNo0OuJO0eFOLXbaPaVJkcJ5h0b ZpZUR5lJzd3f/km30XD8sPmoOHVcyU9Vn/vWXAcwcG9E2BrekYPVKIcSeRP3WMixTUYe Z81oUGULjCcC/zF0WHr/2hAZJsHItEOX6xyWs9q3qjHyxnIXBGdyqLBXV9sbSA0WEmpS JaMQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=N07omnukxnRtmdKWAm/VyrgWt8AvJgpVJG+dxIumRC8=; b=al+LSoPm7rIxFryhQRVYcRJVMkAxRRFBO3w8aX0MEkeppqPr4RavC6Xf35OxBPF/1S z3WHktNXoXgfQE5/OETlWBgP+aIushI80Jdk4Lrepss5BPURIu1MT4EX3YAYfmPBjweD t6F/Vki+dmblFJ+PZ27wwkfUPLDfvnSn07AlzECQxjGQ1384iPcnbFQHPSKI0dHJGECm h7s4BoqWuOnhkwFCL8i1dcmveyQpNjMvAG7IJF4m60ZcFSJXgaqxZ+cI9YoE4K5yVT3P rsezQ2Y+6XCNxcfxQAFUkx8TJWeZJL3Ub9L8suuM9+0fQju9oCGEV52Ryvv0OXNmVt6v xbMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qJAtL59U; 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 j33si17599716pld.27.2019.09.04.05.38.57; Wed, 04 Sep 2019 05:39:14 -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=pass header.i=@kernel.org header.s=default header.b=qJAtL59U; 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 S1730022AbfIDMiG (ORCPT + 99 others); Wed, 4 Sep 2019 08:38:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:57086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725938AbfIDMiG (ORCPT ); Wed, 4 Sep 2019 08:38:06 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 45E1121883; Wed, 4 Sep 2019 12:38:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567600685; bh=8RhsG85jcNMg6U4ayFkiWlCA5D7lmQsDEdfiybItXnI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qJAtL59U6k8VEX4++w4sf0SHJA6YrxPHa8H2pn290hOY3yKi7I/fQSdUNsl+ku+3l Io4ArL+dkwRZRkJq2caxjpvffEXmL35SAYmUCS2M1UwfhfyyKEAXOH1DbgGprgJFz9 ygml1f1dtjWfXlSV6veFPfYiFxPvrcdpo1IJPLmU= Date: Wed, 4 Sep 2019 14:38:03 +0200 From: Greg Kroah-Hartman To: Zhangfei Gao Cc: Arnd Bergmann , jonathan.cameron@huawei.com, kenneth-lee-2012@foxmail.com, Wangzhou , linux-accelerators@lists.ozlabs.org, linux-kernel@vger.kernel.org, Kenneth Lee , Zaibo Xu Subject: Re: [PATCH v3 2/2] uacce: add uacce driver Message-ID: <20190904123803.GC5043@kroah.com> References: <1567482778-5700-1-git-send-email-zhangfei.gao@linaro.org> <1567484087-8071-1-git-send-email-zhangfei.gao@linaro.org> <1567484087-8071-2-git-send-email-zhangfei.gao@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1567484087-8071-2-git-send-email-zhangfei.gao@linaro.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 03, 2019 at 12:14:47PM +0800, Zhangfei Gao wrote: > From: Kenneth Lee > > 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. > Since unified address, hardware and user space of process can share the > same virtual address in the communication. > > Uacce create a chrdev for every registration, the queue is allocated to > the process when the chrdev is opened. Then the process can access the > hardware resource by interact with the queue file. By mmap the queue > file space to user space, the process can directly put requests to the > hardware without syscall to the kernel space. > > Signed-off-by: Kenneth Lee > Signed-off-by: Zaibo Xu > Signed-off-by: Zhou Wang > Signed-off-by: Zhangfei Gao > --- > Documentation/ABI/testing/sysfs-driver-uacce | 47 ++ > drivers/misc/Kconfig | 1 + > drivers/misc/Makefile | 1 + > drivers/misc/uacce/Kconfig | 13 + > drivers/misc/uacce/Makefile | 2 + > drivers/misc/uacce/uacce.c | 1096 ++++++++++++++++++++++++++ > include/linux/uacce.h | 172 ++++ > include/uapi/misc/uacce.h | 39 + > 8 files changed, 1371 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-driver-uacce > 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.h > > diff --git a/Documentation/ABI/testing/sysfs-driver-uacce b/Documentation/ABI/testing/sysfs-driver-uacce > new file mode 100644 > index 0000000..ee0a66e > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-driver-uacce > @@ -0,0 +1,47 @@ > +What: /sys/class/uacce/hisi_zip-/id > +Date: Sep 2019 > +KernelVersion: 5.3 5.3 will be released in a week or so, without this file in it, so that's not ok here :(