Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1268357ybl; Fri, 23 Aug 2019 16:34:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZp6S656lkCXmTvTFE+oL/C0QfJ7t43OdF5ky+Qk4KJFvfuSdzWTz2+UCe/KE842GwWS8p X-Received: by 2002:a17:902:e30d:: with SMTP id cg13mr7549912plb.173.1566603268449; Fri, 23 Aug 2019 16:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566603268; cv=none; d=google.com; s=arc-20160816; b=Z4kt0Wn9gfJHs5uPif2JlNXiPoWI3ILbLin0szUCmPbo9uhMm0lAVa9Sfjn+rJuosT zLv8Wz3lTupq0aChHesWN3BwzMeFRL5fm5di65HZXfRiAXJ1hNNCFk3lBvFgZ+em+860 fQoQnr7Bn29OnTrKvyWDb+AytyJB/UhUwbe4epomFWnV3+mXgnT5FjwTzwVOq/3q88tq D9qcknhRZVbC/78sZJWfKp/jioHl9tujrq3w9zcpuy+EfRj/FxGiGO7xpg+mg2z1TdOp tOGMLtE4mJZZDDA8DAetrwXPU0Sz2Yy9Ecj78lYuNZmq4KhClFR4OlCfuvx7NflnZ55G 831A== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=9rIJBPdIfUN6xLEoUa5wZpFfNrgPrB+/Rspw0wKCY8M=; b=mEXLRwAsEfz2fs9+Tths7WpGGYDeQ3ykTJW2duEzPpYI6bHqaRFT3IXL/K34TxPfeZ rOV86ijqI+yCwb1Iiv3v78kGPGLh27s2SnSwHQ+EwPLUEcEE+q3/PkvpqK4H0FNux8qV zY+YX0v2yx0Q7eVueDkEUIEoDUnEchEOITNI3U149l4ijCMZPYch9n4iCOce8IPB3qXq TqVpIc8YPSyWlnZ1MK22E8+/inHaTFvv5GnGsvk6J7nk44bEcAOJ9z6RiYwFW6nPB1lk EioOSUvA+IlLnVzC5bYa++8FKP7q0tQN0fDm5UIFEJKig7aExcKLwKPzDIeErVAyAWj1 Sqmg== 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 y13si3112504pgp.339.2019.08.23.16.34.13; Fri, 23 Aug 2019 16:34:28 -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 S2436832AbfHWQnE convert rfc822-to-8bit (ORCPT + 99 others); Fri, 23 Aug 2019 12:43:04 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:35900 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2436778AbfHWQnE (ORCPT ); Fri, 23 Aug 2019 12:43:04 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 00F237EA5DA45134DDB5; Sat, 24 Aug 2019 00:42:54 +0800 (CST) Received: from localhost (10.202.226.61) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.439.0; Sat, 24 Aug 2019 00:42:45 +0800 Date: Fri, 23 Aug 2019 17:42:36 +0100 From: Jonathan Cameron To: zhangfei CC: Greg Kroah-Hartman , Arnd Bergmann , Zaibo Xu , , Zhou Wang , "Kenneth Lee" , Subject: Re: [PATCH 2/2] uacce: add uacce module Message-ID: <20190823174236.00005868@huawei.com> In-Reply-To: References: <1565775265-21212-1-git-send-email-zhangfei.gao@linaro.org> <1565775265-21212-3-git-send-email-zhangfei.gao@linaro.org> <20190815175424.00002256@huawei.com> Organization: Huawei X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT X-Originating-IP: [10.202.226.61] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 23 Aug 2019 17:21:33 +0800 zhangfei wrote: > Hi, Jonathan > > Thanks for your careful review and good suggestion. > Sorry for late response, I am checking one detail. > > On 2019/8/16 上午12:54, Jonathan Cameron wrote: > > On Wed, 14 Aug 2019 17:34:25 +0800 > > Zhangfei Gao wrote: > > > >> From: Kenneth Lee > >> > >> Uacce is the kernel component to support WarpDrive accelerator > >> framework. It provides register/unregister interface for device drivers > >> to expose their hardware resource to the user space. The resource is > >> taken as "queue" in WarpDrive. > > It's a bit confusing to have both the term UACCE and WarpDrive in here. > > I'd just use the uacce name in all comments etc. > Yes, make sense > > > >> 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. > >> > >> Uacce also manages unify addresses between the hardware and user space > >> of the process. So they can share the same virtual address in the > >> communication. > >> > >> Signed-off-by: Kenneth Lee > >> Signed-off-by: Zaibo Xu > >> Signed-off-by: Zhou Wang > >> Signed-off-by: Zhangfei Gao > > I would strip this back to which ever case is of most interest (SVA I guess?) > > and only think about adding support for the others if necessary at a later date. > > (or in later patches). > Do you mean split the patch and send sva part first? Yes. Either send them as two series with SVA only in the first one, or a single series with SVA only in the early patches. I want to be able to review one case first then only consider what needs to be added for the others. Thanks, Jonathan