Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1408502pxb; Sun, 22 Aug 2021 16:14:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCqShzqnri3rSZkmMzd2ouxKOmewEEJyycGJuJOUUM/AIoH4kqSRO//DB6xadu22vA5Ldb X-Received: by 2002:a17:906:3bc3:: with SMTP id v3mr32582626ejf.482.1629674091774; Sun, 22 Aug 2021 16:14:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629674091; cv=none; d=google.com; s=arc-20160816; b=cVNWVbHD/vJqPi9LfcsB0y0DxDF4jnp2OMIisC6qEZDGP1pMdnvV51xLrCT4ZHgKrk 8F/pSwWBqRht52GZyXW17kJOlw7Ybnv64w2GgB5sM3+DyTda3g+/WejnO/nkPKVtM7Ai anSxlFX6FIhK6FVQg/4bKpN55NJYlkANlwdqaqwb+Wuz1ycCf+tnvdViDYFuCgKJmvg2 2G9ckXp57N5C2mXYBUkorwtjqMU316AVjYNypZ3MPh3xUiBH/7rsG/Z/kYIf7k4plnYz UZvlJkd0d3IAY+5xFxYs3wQjjhjrNvEh/2v32Vry2fyVQgUxNg3S60fEv759+uYy/lhq L9uw== 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=JNOI6mqjDxEPOhH+P3+cw9rF//MRqQbYbB/nsHnj5Is=; b=Iqi1qr8jdwmHvuQWXw1FThk0CJ5j2zdknRwmlt9+RTT+wfYEu8UNrp1ZbDc7Yinyjg HZA4i6KkeKASQ4HCBiAg2lGTm8mWfa7OalDrJkLNnysyhNIX9NowbxxIrJKvdCV2FXWV KDRiLvR2wbZRmViA96EfUefvjoj0gnB3pAmArIztm4aTObB5JL1BEkyqcg0COZvmcFo3 gACFzPpMUJ7q0Nh6WpalRgFRM15xJxmO+Z5SGaXMa/E/2RK6iabv/YDk3qo0tTnNH9O9 6fgxQ3DD+RRytiCz4BvtcCRv/cew6fMTVtqn9zC1zrVYxHWMF50CbGKKN9zy3L8bKszI CD0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ms9OeAO9; 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 m13si13047484ejj.281.2021.08.22.16.14.28; Sun, 22 Aug 2021 16:14:51 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=ms9OeAO9; 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 S233841AbhHVXHv (ORCPT + 99 others); Sun, 22 Aug 2021 19:07:51 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:58808 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbhHVXHv (ORCPT ); Sun, 22 Aug 2021 19:07:51 -0400 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 631014A3; Mon, 23 Aug 2021 01:07:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1629673628; bh=Lt/044LNVGYtKRh+lwLPxz/NlNccPmFXmhVIRVpWKi0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ms9OeAO9j4AP2kN2c5HHn8u3W1HZJWtMVe8r8On6nL3OZm5dvsC4mMuT6YJu0W0+B N6gMeHdqgyV38869ERBmxIxsYBPIadeao517RilAxfEgfrmZSOf3DWeVs0GVrOYU99 L/BGnoksHjoLhG7c3MN7hiwqWfdC7hrKF9N5DOzg= Date: Mon, 23 Aug 2021 02:06:58 +0300 From: Laurent Pinchart To: Dave Airlie Cc: Greg Kroah-Hartman , Jason Gunthorpe , Daniel Vetter , Linus Torvalds , Oded Gabbay , LKML Subject: Re: [git pull] habanalabs pull request for kernel 5.15 Message-ID: References: <20210819110209.GA115485@ogabbay-vm2.habana-labs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 20, 2021 at 04:48:18AM +1000, Dave Airlie wrote: > On Fri, 20 Aug 2021 at 03:07, Greg KH wrote: > > On Thu, Aug 19, 2021 at 02:02:09PM +0300, Oded Gabbay wrote: > > > Hi Greg, > > > > > > This is habanalabs pull request for the merge window of kernel 5.15. > > > The commits divide roughly 50/50 between adding new features, such > > > as peer-to-peer support with DMA-BUF or signaling from within a graph, > > > and fixing various bugs, small improvements, etc. > > > > Pulled and pushed out, thanks! > > NAK for adding dma-buf or p2p support to this driver in the upstream > kernel. There needs to be a hard line between > "I-can't-believe-its-not-a-drm-driver" drivers which bypass our > userspace requirements, and I consider this the line. > > This driver was merged into misc on the grounds it wasn't really a > drm/gpu driver and so didn't have to accept our userspace rules. > > Adding dma-buf/p2p support to this driver is showing it really fits > the gpu driver model and should be under the drivers/gpu rules since > what are most GPUs except accelerators. > > We are opening a major can of worms (some would say merging habanalabs > driver opened it), but this places us in the situation that if a GPU > vendor just claims their hw is a "vector" accelerator they can use > Greg to bypass all the work that been done to ensure we have > maintainability long term. I don't want drivers in the tree using > dma-buf to interact with other drivers when we don't have access to a > userspace project to validate the kernel driver assumptions. I can only voice the strongest agreement here. This is a situation that is only too familiar and that we're facing in the camera world as well. For the past ten years, the camera community has worked hard to build bridges with hardware vendors. The public development in the kernel tree is only the visible part of the iceberg, lots of efforts have been put in reaching out, teaching and helping. A few years ago the libcamera project got started to offer a userspace framework to device vendors where they can contribute code, similar to Mesa for graphics (and related) acceleration. I can't emphasize strongly enough how much effort it took to start getting vendors on board, and the situation is still fragile at best. If we now send a message that all of this can be bypassed by merging code that ignores all rules in drivers/misc/, it would be ten years of completely wasted work. Beside the technical impact, the effect on the motivation of the kernel and userspace communities we have slowly built over time would be catastrophic. -- Regards, Laurent Pinchart