Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4788020pxv; Tue, 6 Jul 2021 09:09:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzf7seFiPgWQ8X0W1tUmcRdkz+vksIXURIx8ekgHs3kGOoqYC+2wYBwsHSjLMNKmJNxo8HY X-Received: by 2002:a05:6402:b06:: with SMTP id bm6mr21818052edb.388.1625587740558; Tue, 06 Jul 2021 09:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625587740; cv=none; d=google.com; s=arc-20160816; b=kz+6GMsLO0tSh3k6dWKgXjQTI8tMPrgzQwmaB/OyEUvFI1JoPU1EyhAJcuHpXfzZzx 9w8yctgePI780LZjAou2xqBmTcgwO2sTe5ynMTCBiWQ6HV1syGLClGgwEz7WAlo4sPyQ y78a2vhJytT0Dw6BG+Z+aUj5gZ0kIzNXHFRCHIVX24GOHSu4Kw53oospYee/2sAXoEn6 Zm9WFu5wiBotrK/ioGkGyB4eC8dFReiIYY9jBIRnEMJWHQHvxaRCI5/ND/L3tdEpe5r+ Sm6oQGHYZWTQB4GJ5qwN2+BX+hJbl/y5/UmV/rNuUohX/uOCOw8OZ8nKrpvtXvoA/8U7 AHfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=7/d4XeaSNsVFlRZLAg8ZLZgaOUGNlKetyWckEAHUwuk=; b=fTkX9iqCmgotw65ArwOazRe2LHy2TqGbzIa3m3ggFkxm2bflaO4FnhvJmsyus0KDuR J6zLB8O5k2AakuSvmqWZUM4hmCZKe7YlApz9RHNElIOtopb0vJ2LulWCV4CIS8fmHbuC Z4n2feY92A0d2071SI9vZDbS8Xel2w0+N2s9uctJiFd//e8f+tluVUqMvQ8iN//4uBm2 FuSWwirQIRiSkj197NX1AKJGu0IagJRh5fK4zjwpTk/ql89kvaaBskKrWNWRk9O/6Nnu 10O0pPmaHi7N+ZszjeTsLXthVM+wvAgtEWMVDeCaHkcYggPF07PJFOJUjujiZIOzoZB4 AVkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=f8dtLu2S; 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 i8si7059725ejj.636.2021.07.06.09.08.34; Tue, 06 Jul 2021 09:09:00 -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=f8dtLu2S; 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 S229773AbhGFQKK (ORCPT + 99 others); Tue, 6 Jul 2021 12:10:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229811AbhGFQKJ (ORCPT ); Tue, 6 Jul 2021 12:10:09 -0400 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9019BC061760 for ; Tue, 6 Jul 2021 09:07:29 -0700 (PDT) Received: by mail-oi1-x22d.google.com with SMTP id r29so8687455oiw.13 for ; Tue, 06 Jul 2021 09:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7/d4XeaSNsVFlRZLAg8ZLZgaOUGNlKetyWckEAHUwuk=; b=f8dtLu2S3sJkSa9ZSHeuZep5p+/9fucE28hhiRStm3/kTJF5pTTLjufnGsshWPsReU sFoXOfLWKXyR0MqHTYAI1P/1tSDs/Z+hXT0+kZeRKZQRFpopyYIqJp1KFyNWIf1sbbbh MoJw7B3g6qMCsyWaOODx7tdFuro/50BL7StMI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7/d4XeaSNsVFlRZLAg8ZLZgaOUGNlKetyWckEAHUwuk=; b=IJ+GIoooE3u8Clnup28qSqYQP1eYKH0wkCKbenpiAQTqnGGZRWZte+CGJastxUvh4+ gRHrW6nh+ID8q5hHuAm7Ev/ckyJsa57L++iR8Jbhi6yVErD5ydHktO87nGrwVS9WhX8v Dfwrv+FrDkCi97b8r1WVgLQbXHCrOcFzMrysWf845IH55m2vUFDKgX0Bj4RYa/9/kvWV M8Li4N7w5ifwACJkchzptc7d4pPe4XrWGl9K2A/XcCFR3IWQnKR3diSPxzaoojubLFKS ubG6vu/u/Z/YWftj+gzBCt9svrsBfIlXYIMGN0gYBnVydz+Y/MJfFRaNJeclcT+QkBaK UqoQ== X-Gm-Message-State: AOAM533mnhRlYWUq0S0ERWp2t9mzrqv9glcWg15RJaxCk3o3Q16v8Q89 XhY2NMx6zTQydFFhV4kRwm8I6EBVG6o3iePVGXT7XQ== X-Received: by 2002:aca:5793:: with SMTP id l141mr1008420oib.14.1625587648875; Tue, 06 Jul 2021 09:07:28 -0700 (PDT) MIME-Version: 1.0 References: <20210705130314.11519-1-ogabbay@kernel.org> <20210706142357.GN4604@ziepe.ca> <20210706152542.GP4604@ziepe.ca> In-Reply-To: From: Daniel Vetter Date: Tue, 6 Jul 2021 18:07:17 +0200 Message-ID: Subject: Re: [PATCH v4 0/2] Add p2p via dmabuf to habanalabs To: Jason Gunthorpe Cc: Oded Gabbay , Oded Gabbay , "Linux-Kernel@Vger. Kernel. Org" , Greg Kroah-Hartman , Sumit Semwal , =?UTF-8?Q?Christian_K=C3=B6nig?= , Gal Pressman , sleybo@amazon.com, Maling list - DRI developers , linux-rdma , Linux Media Mailing List , Doug Ledford , Dave Airlie , Alex Deucher , Leon Romanovsky , Christoph Hellwig , amd-gfx list , "moderated list:DMA BUFFER SHARING FRAMEWORK" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 6, 2021 at 5:49 PM Daniel Vetter wrote: > On Tue, Jul 6, 2021 at 5:25 PM Jason Gunthorpe wrote: > > I'm not sure about this all or nothing approach. AFAIK DRM has the > > worst problems with out of tree drivers right now. > > Well I guess someone could stand up a drivers/totally-not-gpu and just > let the flood in. Even duplicated drivers and everything included, > because the vendor drivers are better. Worth a shot, we've practically > started this already, I'm just not going to help with the cleanup. tbh I think at this point someone should just do that. Ideally with some boundary like please don't use dma-fence or dma-buf and stuff like that so drivers/gpu doesn't ever have to deal with the fallout. But way too many people think that somehow you magically get the other 90% of an open accel stack if you're just friendly enough and merge the kernel driver, so we really should just that experiment in upstream and watch it pan out in reality. Minimally it would be some great entertainment :-) Also on your claim that drivers/gpu is a non-upstream disaster: I've also learned that that for drivers/rdma there's the upstream driver, and then there's the out-of-tree hackjob the vendor actually supports. So seems to be about the same level of screwed up, if you ask the vendor they tell you the upstream driver isn't a thing they care about and it's just done for a bit of goodwill. Except if you have enormous amounts of volume, then suddenly it's an option ... Minus the fw issue for nvidia, upstream does support all the gpus you can buy right now and that can run on linux with some vendor driver (aka excluding apple M1 and ofc upcoming products from most vendors). drivers/accel otoh is mostly out-of-tree, because aside from Greg mergin habanalabs no one is bold enough anymore to just merge them all. There's lots of those going around that would be ready for picking. And they've been continously submitted to upstream over the years, even before the entire habanalabs thing. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch