Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2648061pxj; Mon, 17 May 2021 06:40:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNsRebR69nmhyZkhBGeD8V6sPtqOpJe7rOyDTbaHH0gmLllnIkJwre40xoyW8UQ7uwRxOe X-Received: by 2002:a17:906:8591:: with SMTP id v17mr11069154ejx.378.1621258854313; Mon, 17 May 2021 06:40:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621258854; cv=none; d=google.com; s=arc-20160816; b=G2dJr0caSUOGaju4NjIEmeZIrt4g4B1RQKUM2k+uKESTRMAgw27auUsupzuCImOLwn cnSiqbiI1eWyqZ4TBBEkBTpb5JfpS1piwbbL5QCgTV8R2t4z0u/5ixw0IQCDWO9RjUlT Gd4yfUgvlwL82xV7xFie2WJ5kUobTeyhBULrntsN+oxorJh2Ey5iYThdD6Xb9bis9euR Zd4v4shxA7Txc3IXDAZRmsA3yCWCpUcQMKLFZy661hGJ9cZs1JQECODsDOCTF4vSmF4Z Ai040Tj20cTwGtpkhf07fne/L7+s1dVxNAuan2GAnOdi5XsrTDEBtFhY8vmMo3iCVpPV bVCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=VDBbCHqYiOe+e3O9kt6RJSvRbYkwaWDUP/UqowS6ciQ=; b=ENkYMgMwNYeYViOm2AUSnzxN5Gls2PZkb0fwBDZK8Xnwels4dSjTZlOvS1o782Zmm7 QXg6Z90TqZlx95IQPWs4pkI38E+MQvuUZ5HFSirytEOx2Z/ROWkMGpnoArpy2VVBFRf3 8b2bX4ONsZK2fLZT0BZ2wX+U3giSIl3QXz01mK1RS24p8njO2efNKuE78kOP5sQdkUTL btz0L0C+GuFBP8xzlCLPmeBCvpCEuUATEYOlyl1jQ9AWWIQlOCTySane4sLvgMTRTKNG pKjw3mmuGueg91agkOK9dUhds7RCBZ+psWpmpCNWSuN0UeHhnQ8GF73umpxRzOsdai6j Ljaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fghbKWNQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fm14si5792345ejc.646.2021.05.17.06.40.13; Mon, 17 May 2021 06:40:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fghbKWNQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235539AbhEQICI (ORCPT + 99 others); Mon, 17 May 2021 04:02:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:41552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235692AbhEQIBS (ORCPT ); Mon, 17 May 2021 04:01:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C0FC66105A; Mon, 17 May 2021 08:00:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621238402; bh=P4h/zP4hu3xUeYH1FCb7Jn+H1STMmMvvHTnVqyKxP9Y=; h=Date:From:To:Subject:References:In-Reply-To:From; b=fghbKWNQxTrJdalIvKxa78I7kaT56lZbLJl6dwQA0tfnzaRfdHeJ1x8M8SbTmXM4i H3tmpXCkgbo+IQy54+SxpO3SHvmZzKzWO1LtPc/axqPejNlFGKEcW7Wr5BMz77gmdq WpbEV8bTTVPHxhxDWgQi08LSqu/jCcTDUJj0s3Yw= Date: Mon, 17 May 2021 10:00:00 +0200 From: Greg Kroah-Hartman To: Arnd Bergmann , Dave Airlie , Maciej Kwapulinski , Jonathan Corbet , Derek Kiernan , Dragan Cvetic , Andy Shevchenko , Linux Kernel Mailing List , "open list:DOCUMENTATION" , DRI Development Subject: Re: [PATCH v3 00/14] Driver of Intel(R) Gaussian & Neural Accelerator Message-ID: References: <20210513110040.2268-1-maciej.kwapulinski@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 17, 2021 at 09:40:53AM +0200, Daniel Vetter wrote: > On Fri, May 14, 2021 at 11:00:38AM +0200, Arnd Bergmann wrote: > > On Fri, May 14, 2021 at 10:34 AM Greg Kroah-Hartman > > wrote: > > > On Thu, May 13, 2021 at 01:00:26PM +0200, Maciej Kwapulinski wrote: > > > > Dear kernel maintainers, > > > > > > > > This submission is a kernel driver to support Intel(R) Gaussian & Neural > > > > Accelerator (Intel(R) GNA). Intel(R) GNA is a PCI-based neural co-processor > > > > available on multiple Intel platforms. AI developers and users can offload > > > > continuous inference workloads to an Intel(R) GNA device in order to free > > > > processor resources and save power. Noise reduction and speech recognition > > > > are the examples of the workloads Intel(R) GNA deals with while its usage > > > > is not limited to the two. > > > > > > How does this compare with the "nnpi" driver being proposed here: > > > https://lore.kernel.org/r/20210513085725.45528-1-guy.zadicario@intel.com > > > > > > Please work with those developers to share code and userspace api and > > > tools. Having the community review two totally different apis and > > > drivers for the same type of functionality from the same company is > > > totally wasteful of our time and energy. > > > > Agreed, but I think we should go further than this and work towards a > > subsystem across companies for machine learning and neural networks > > accelerators for both inferencing and training. > > We have, it's called drivers/gpu. Feel free to rename to drivers/xpu or > think G as in General, not Graphisc. > > > We have support for Intel habanalabs hardware in drivers/misc, and there are > > countless hardware solutions out of tree that would hopefully go the same > > way with an upstream submission and open source user space, including > > > > - Intel/Mobileye EyeQ > > - Intel/Movidius Keembay > > - Nvidia NVDLA > > - Gyrfalcon Lightspeeur > > - Apple Neural Engine > > - Google TPU > > - Arm Ethos > > > > plus many more that are somewhat less likely to gain fully open source > > driver stacks. > > We also had this entire discussion 2 years ago with habanalabs. The > hang-up is that drivers/gpu folks require fully open source userspace, > including compiler and anything else you need to actually use the chip. > Greg doesn't, he's happy if all he has is the runtime library with some > tests. All you need is a library, what you write on top of that is always application-specific, so how can I ask for "more"? > These two drivers here look a lot more like classic gpus than habanalabs > did, at least from a quick look they operate with explicit buffer > allocations/registration model. So even more reasons to just reuse all the > stuff we have already. But also I don't expect these drivers here to come > with open compilers, they never do, not initially at least before you > started talking with the vendor. Hence I expect there'll be more > drivers/totally-not-drm acceleration subsystem nonsense. As these are both from Intel, why aren't they using the same open compiler? Why aren't they using the same userspace api as well? What's preventing them from talking to each other about this and not forcing the community (i.e. outsiders) from being the one to force this to happen? > Anyway this horse has been throughroughly beaten to death and more, the > agreement is that accel drivers in drivers/misc must not use any gpu > stuff, so that drivers/gpu people dont end up in a prickly situation they > never signed up for. E.g. I removed some code sharing from habanalabs. > This means interop between gpu and nn/ai drivers will be no-go until this > is resolved, but *shrug*. I'm all for making this unified, but these are not really devices doing graphics so putting it all into DRM always feels wrong to me. The fact that people abuse GPU devices for not graphic usages would indicate to me that that code should be moving _out_ of the drm subsystem :) thanks, greg k-h