Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2303551ybp; Thu, 10 Oct 2019 05:33:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxEdGQtC++zCYzJpDBHkPKBdum75NCdr2HA32TPk/1SnsTokGUmwhqQXK85W+YAsdJztFzo X-Received: by 2002:a17:906:3751:: with SMTP id e17mr8055411ejc.269.1570710830411; Thu, 10 Oct 2019 05:33:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570710830; cv=none; d=google.com; s=arc-20160816; b=ffRZ9CpRlr74fkUw5s0MWFAWJMiAs+TPG/+dpPD5k/ws1xipv5swxdH9jn9+aQzQL8 +GuKa6jZVuyMQdO+Lsy0eHpnmjNpxzAwK2XEn4cd/U+34SYAhAlfoDtrFRCx1yH3ujtZ phnZqUDGrHodHIkohIkNFLEeBzGAAM1UxlU7SkrqVmyR9bpBkw/uzBs3MfGtUxrhkXx0 7XmEWgzpZ0e6DGEIRePUBnsCL6hD+hLyTNRB2HG+ZRvPpb16vpuDE1Pj+HgUUX7iP+6r ZBoiZ4nxeT99qHxh0OhLOXucIWy42sptum5l5FkX3W51fi1Yvwh0Q9UVcyXr2WvP+TS3 fhQQ== 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=rXdwQ8IoEQofXsk4S7H2zfSsuu9SfU7tZDyZ79w4DUw=; b=MDLAE89nPjP3aOhGtCjqvk+KpM+KsaH0mZ9a4P8g/WGv42iWEsef5EkV7w9jdb5QFY zBkB1xZ4x8wBG5ce+FwPBcBZrj6chmoeVYu7iUddXrQJWY6zqebNgbEjkgz3W0sgTX94 HCwbuAOqcBFbhoiO7Km39//2vdjDJvSy2bNd/xklJElpU02RBqoQ+myKFYPgX5uoZ5lW G+4WUo+tIlwq2sJ1p0fTuh3qUJYla7TD5W+UKM6sAvvUKt6EZ5GQjktyy0srw0fy7tQq geINARTSHolV1x8oI1KjQDo3x7Pk+JYuAl2Bhh8LnVKSkdaZJM/aU9zAqKnxJSo2J5em vQkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=b17VOrZX; 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 e4si3070802ejd.32.2019.10.10.05.33.26; Thu, 10 Oct 2019 05:33:50 -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=b17VOrZX; 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 S2387420AbfJJMdD (ORCPT + 99 others); Thu, 10 Oct 2019 08:33:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:45990 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbfJJMdD (ORCPT ); Thu, 10 Oct 2019 08:33:03 -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 5543120B7C; Thu, 10 Oct 2019 12:33:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570710782; bh=QQuI/HtU7JQ5P/P+YFgxZHiWEkZ1bQRUlcfBi244Tf0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b17VOrZXBIUY2jMy/zCZMuXLACb95NdVlFoDe693SRI8/DJu8IwHFQQrREjwHPC2P w+EhEo26rexSmBj8w5rulBy4arT7o2aInmo3CHJcrHeQ1QrnV+4BF2ACQQ5lY5ZBIJ w19nLC4Jz1jXq2xO8M09lRllfEoejQmywKe4kprk= Date: Thu, 10 Oct 2019 14:33:00 +0200 From: Greg Kroah-Hartman To: Zhangfei Gao Cc: Arnd Bergmann , jonathan.cameron@huawei.com, grant.likely@arm.com, jean-philippe , ilias.apalodimas@linaro.org, francois.ozog@linaro.org, kenneth-lee-2012@foxmail.com, Wangzhou , linux-accelerators@lists.ozlabs.org, linux-kernel@vger.kernel.org, Kenneth Lee , Zaibo Xu Subject: Re: [RESEND PATCH v4 2/2] uacce: add uacce driver Message-ID: <20191010123300.GA730639@kroah.com> References: <1570634502-20923-1-git-send-email-zhangfei.gao@linaro.org> <1570634502-20923-3-git-send-email-zhangfei.gao@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1570634502-20923-3-git-send-email-zhangfei.gao@linaro.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 09, 2019 at 11:21:42PM +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 No one is using these new apis you are creating, so we can not judge if they are correct or not. Please submit this as a patch series with a driver that is actually going to use this api. thanks, greg k-h