Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3817419ybk; Tue, 19 May 2020 13:43:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYRpY26m4r/T/UTvCAr8XOCrU74rTztWDM00PSFDjzlKEeN9i8e0BzTqkeKGFO60mpINA1 X-Received: by 2002:a17:906:1b43:: with SMTP id p3mr879676ejg.265.1589920994800; Tue, 19 May 2020 13:43:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589920994; cv=none; d=google.com; s=arc-20160816; b=NdqI2Tt3nVxUFkSlcK7QSJbc0C/kyEgVF+X3mw2CEjIfDM7YX8lhltJKa6shADoPl6 7G0f6Oy3YjswD9J3fiEBnIG0ZcDDQt4Oc8lOYeF0mb+EMje+MtbpY/SwBFHYJTVpZi8l XjoRd4n7Tr7FBTSjiw8YtcWuL+cWS/jF3vQhxslh5vycQ7XctMO1Il/WbSjueFd2PzuI NuUQq2tC198HdlpgsjTCIgYumEHslML0Co5nqblGEOPm4lix1KncxyWBz+usDAWJv2O/ sCS/GXMOpGsWxlXn1+STgBKqnZ2pWBTmp8U9JyiunAkJtPCZ0ifM8lrBRiHV5QgwOOPx Z3mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature; bh=KqlY0HTT+IOHyYqsNVke69dYQGA7KHepidrczDemEV0=; b=bnMUnRhCWNL7aV8ibjxPcjiwybdUOOTHRrKoG9v4YHqd14sC/6p0UmloN3AH7VHqD8 DYiYo6MszxsaoZhHjQwYvjuzw3MEWKWfAJp1GIwBo3yAgHKtjW1O131lnDWr6oCmaq2j /t9nHsONs+T/yrXZKHbnZ9lcxwz8AC+AI9sl29GsbYgn9wMyPMkdHQL4HJRVswSIisau dmR1flfKu/HTFEVPbDmLk9W3mBWmGsl7BQs/kZp071Bx5s7yvbeoQyBSEPNDFcsNTBVf Q1YrUkDSEBSOmL59Ib+mIAsCbhf1WQWIyhnhKZfC8PZ4r67/m/T1nBLFuDc+wCR0q83L dE0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=QGdyhJkp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qw23si550608ejb.165.2020.05.19.13.42.51; Tue, 19 May 2020 13:43:14 -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=@ffwll.ch header.s=google header.b=QGdyhJkp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726447AbgESUl1 (ORCPT + 99 others); Tue, 19 May 2020 16:41:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725885AbgESUl0 (ORCPT ); Tue, 19 May 2020 16:41:26 -0400 Received: from mail-oo1-xc43.google.com (mail-oo1-xc43.google.com [IPv6:2607:f8b0:4864:20::c43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADF2BC08C5C0 for ; Tue, 19 May 2020 13:41:26 -0700 (PDT) Received: by mail-oo1-xc43.google.com with SMTP id c83so262829oob.6 for ; Tue, 19 May 2020 13:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=KqlY0HTT+IOHyYqsNVke69dYQGA7KHepidrczDemEV0=; b=QGdyhJkp1DdKBLPoQNQnIKYhC6fJq0diB6e3HUnQosmcbIHkLgsPCnpZZi9nhFUBFR ufALg9+CDJQTkIQruWIWbMiIcF8x8D/WIXcptC6CfuaVQF9VEhxW1ob6ud8UhpSGeqgZ 0jEzm47h0mp5kRVqaZC50bC3SLA3QwhfruNp0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=KqlY0HTT+IOHyYqsNVke69dYQGA7KHepidrczDemEV0=; b=DznXNr0DXcCSf3kruCgSFq6SAyqmCczAmS1ScSWXcUM1JTEKwJtY4lXW+cdlclvJcj Rx38gR0Fze8h1JWVeEYWNaUYIivLkwzr75BUszgDlRMsyUzEojCA2Wm1f2YMJDV0LLha b44ofQGNEi21BB/sh67oEgkbXGIwoZ8tyQIquF8yR0DMgi0dWDE/eEebu47PlgWer9u7 TiZbpirQlYnBDMKsiroMFdYeCGwIr3uE3Fvd0N5XTwfCSsMWe/4xlMmoL0RfrhvyY7od L2c1Q80MTL+mwdWAks4HJUinUMbSzKqheDiqm1V0PIjklSZy7gBQrTUrwgqfCcnS74F+ pzQg== X-Gm-Message-State: AOAM531XK5ry2ZBKje83P79SL/9cxBs7/8+pODCYS+X5QUNn5GZf/fY8 B0Ae95a8pA+GMkVREL1baNB7MJS93LpH0SEEX6fTuA== X-Received: by 2002:a4a:d136:: with SMTP id n22mr785994oor.85.1589920886046; Tue, 19 May 2020 13:41:26 -0700 (PDT) MIME-Version: 1.0 From: Daniel Vetter Date: Tue, 19 May 2020 22:41:15 +0200 Message-ID: Subject: Re: [RFC PATCH 0/8] Qualcomm Cloud AI 100 driver To: Greg Kroah-Hartman , dri-devel , Olof Johansson , Jason Gunthorpe Cc: Jeffrey Hugo , Dave Airlie , Arnd Bergmann , Manivannan Sadhasivam , Bjorn Andersson , wufan@codeaurora.org, pratanan@codeaurora.org, linux-arm-msm , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 19, 2020 at 07:41:20PM +0200, Greg Kroah-Hartman wrote: > On Tue, May 19, 2020 at 08:57:38AM -0600, Jeffrey Hugo wrote: > > On 5/18/2020 11:08 PM, Dave Airlie wrote: > > > On Fri, 15 May 2020 at 00:12, Jeffrey Hugo wrote: > > > > > > > > Introduction: > > > > Qualcomm Cloud AI 100 is a PCIe adapter card which contains a dedicated > > > > SoC ASIC for the purpose of efficently running Deep Learning inference > > > > workloads in a data center environment. > > > > > > > > The offical press release can be found at - > > > > https://www.qualcomm.com/news/releases/2019/04/09/qualcomm-brings-power-efficient-artificial-intelligence-inference > > > > > > > > The offical product website is - > > > > https://www.qualcomm.com/products/datacenter-artificial-intelligence > > > > > > > > At the time of the offical press release, numerious technology news sites > > > > also covered the product. Doing a search of your favorite site is likely > > > > to find their coverage of it. > > > > > > > > It is our goal to have the kernel driver for the product fully upstream. > > > > The purpose of this RFC is to start that process. We are still doing > > > > development (see below), and thus not quite looking to gain acceptance quite > > > > yet, but now that we have a working driver we beleive we are at the stage > > > > where meaningful conversation with the community can occur. > > > > > > > > > Hi Jeffery, > > > > > > Just wondering what the userspace/testing plans for this driver. > > > > > > This introduces a new user facing API for a device without pointers to > > > users or tests for that API. > > > > We have daily internal testing, although I don't expect you to take my word > > for that. > > > > I would like to get one of these devices into the hands of Linaro, so that > > it can be put into KernelCI. Similar to other Qualcomm products. I'm trying > > to convince the powers that be to make this happen. > > > > Regarding what the community could do on its own, everything but the Linux > > driver is considered proprietary - that includes the on device firmware and > > the entire userspace stack. This is a decision above my pay grade. > > Ok, that's a decision you are going to have to push upward on, as we > really can't take this without a working, open, userspace. Uh wut. So the merge criteria for drivers/accel (atm still drivers/misc but I thought that was interim until more drivers showed up) isn't actually "totally-not-a-gpu accel driver without open source userspace". Instead it's "totally-not-a-gpu accel driver without open source userspace" _and_ you have to be best buddies with Greg. Or at least not be on the naughty company list. Since for habanalabs all you wanted is a few test cases to exercise the ioctls. Not the entire userspace. The most bonkers part here is that drivers/gpu actually does have a bunch of active contributors from codeaurora ... > Especially given the copyright owner of this code, that would be just > crazy and foolish to not have open userspace code as well. Firmware > would also be wonderful as well, go poke your lawyers about derivative > work issues and the like for fun conversations :) > > So without that changed, I'm not going to take this, and push to object > that anyone else take this. > > I'm not going to be able to review any of this code anymore until that > changes, sorry. So you couldn't review the habanalabs driver either? Get some consistency into your decision making as maintainer. And don't tell me or anyone else that this is complicated, gpu and rdma driver folks very much told you and Olof last year that this is what you're getting yourself into. Cheers, Daniel PS: I guess congrats for figuring out you can't write a totally-not-a-gpu accel driver without making kernel and userspace parts derivatives works of each another. We told you that last year. -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch