Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3803759pxj; Tue, 15 Jun 2021 09:00:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx21SQUA+FZhglAGdaNAiM9JI1AdbhBbtkK97rr2/54sJGJtOuA/ExpFAoK+6Lae9ERow2r X-Received: by 2002:a17:906:2d51:: with SMTP id e17mr237282eji.500.1623772835488; Tue, 15 Jun 2021 09:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623772835; cv=none; d=google.com; s=arc-20160816; b=X9lpSgeVNMJwAGjVTbZ7mLhif8XUYXfcXx60rC935YVwF3qIDK6DZkuBpKRoZJy2HR zpRX7ww954rk6yEuSrmleJR2VOoNWFXLMXrK0hs7rGGjLgGQKWrJek+5yNCjLbwxLdoD pqgDijwQmyv6439aDZ/Dr3521FQMYE8Fk3Cy8bXgJXSZ4uQEFCg4U0DYKa0G3VAJ/DP6 oIQvGOpPLtvvYPVwmfBfJkEGZi3dvNwdrQRPvBZNpjLh9ZoTE8j4HbTiiICMTbY61i6F L2CjZZSALUiHwjer8nLVg3XMhIWCLyxUBLKOK34zuiZMrOTCdkEsnl7hm3iJvVXLtTkZ i7wA== 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:cc:to:from:date:dkim-signature; bh=Da4F8xVtbYhFTThMeVKMasDcU8xHCoFeTh1mvyffAeo=; b=XMLJwbwlusxkAO0gTjxyIuMIy03SmJE5fKoMV/EPDoGJhuJThnBHpSA1IBQgE6Tx6j ADsuoxOktJCFB+pI7IONFiwhu0XCHFv6jUyaCNMw2Wt5wAY/eUrJKGilChLpynIROo5j UCcGDIz1X2XvGzN6mBVCH+t4RhnjZaX/F/TayYsfNepf9U/ITu0361YkSmCVjbhEybKh jBEnowKS0/d5s0PgNCWIX3pOTtuD8H9zISwLWVBFi25E7WhCGP5qF+Mgxcuiu3SrU4mf jtIPWsrLmxIu0stkFlpYBLslvZxF3KerNCptl75Kowbp200Mbsq7AT48cFj8xaJjoM4d 2hMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HbsqM6Wm; 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 pj12si14303610ejb.371.2021.06.15.09.00.11; Tue, 15 Jun 2021 09:00:35 -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=HbsqM6Wm; 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 S232667AbhFOP6l (ORCPT + 99 others); Tue, 15 Jun 2021 11:58:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:53128 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232224AbhFOP4W (ORCPT ); Tue, 15 Jun 2021 11:56:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AC0136142E; Tue, 15 Jun 2021 15:54:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623772458; bh=r0ldxIgnVptKvktdaumFeqndWM3HUh9JGLZIgdw7Ze0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HbsqM6WmkalyEE4zfkMUNbxuOz9T7wdg/X+rk2W82im0zXLxu1fNUSyK2WKTsVYQm Gv7nOzd/sPaM6yJdQp2MoxXMFK2ubb/akBfr2ldz3K5TZtaqxlh3ukQAo7WKDxe28I rDLl6Yaa+UZF02sS/trIa5uffQJ7fBt/jTHUVTxs= Date: Tue, 15 Jun 2021 17:54:16 +0200 From: Greg KH To: Guy Zadicario Cc: "linux-kernel@vger.kernel.org" , "olof@lixom.net" , "alexander.shishkin@linux.intel.com" , "Shevchenko, Andriy" , "Shefi-simchon, Yochai" Subject: Re: [PATCH v2 00/15] misc: nnpi: New PCIe driver for Intel's NNP-I pcie device Message-ID: References: <20210513085725.45528-1-guy.zadicario@intel.com> <20210615145755.GA25911@aipg-stp-03.iil.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210615145755.GA25911@aipg-stp-03.iil.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 15, 2021 at 05:58:09PM +0300, Guy Zadicario wrote: > On Fri, May 14, 2021 at 11:33:31AM +0300, Greg KH wrote: > > On Thu, May 13, 2021 at 11:57:10AM +0300, Guy Zadicario wrote: > > > Hi, > > > > > > The following series is a driver for a new PCIe device from Intel named NNP-I > > > (Nirvana Neural Processor for Inference). NNP-I is a PCIe connected compute > > > device used for acceleration of AI deep learning inference applications in the > > > data-center. > > > > How does this differ from the "intel_gna" driver being proposed here: > > https://lore.kernel.org/linux-doc/20210513110040.2268-1-maciej.kwapulinski@linux.intel.com/ > > > > Please work together to come up with a unified userspace api for these > > devices, and hopefully, shared kernel code as well. > > > Ok, after consulting, we will try to share api and some kernel code > between the two drivers. > > The plan is to suggest a common framework for both devices > and let each device driver register with that framework, > some functionality will be common and some will be device driver > specific (same model as drm for gpus). At first I think the common part > will be small and will deal only with host memory management, later, > it might grow, if/when some other drivers will adopt it as well. > > We will first change the NNP-I driver to use this framework. > The GNA driver will wait for this API to be accepted and only then will > adopt it and request to upstream. Great, can you also look into what it would take to move the habanna code to this new api as well? A new api doesn't mean much if there is only one user :) thanks, greg k-h