Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4734083pxv; Tue, 6 Jul 2021 07:58:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzlMtRPiGI5f/Jom+jRTFRWC62QCZP/5JvEjHEBJq0oxhA8k3O2DcgTD4AC0k871swufEZ X-Received: by 2002:a05:6402:204:: with SMTP id t4mr23515840edv.34.1625583485468; Tue, 06 Jul 2021 07:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625583485; cv=none; d=google.com; s=arc-20160816; b=Vm08qV424fRRMz30MO2oUFNqVbIxuLTJZJzoyu9SKmhmaQbFop0EJSg8OKNeSsx8kk dFtahEdWBFGxSzbSQwS29aGgm1tRY728BilvgiQ8GiaPtT2ZRuI27BzCD60cOWIkeICU jDgeB6iABg6nwkecTKNIyQuan/Wh7WN2GaOCtfx4krdJrERvMAgmH4jm5zfQfGUsAEIc jg73ldAHYb9YTqniwiunXJHIXIy73bUnr50JdBsKPiHF95++bf5UDk0qkhTwznQmRWzI Reu4MfcQbB2Le4p/U8qv4y3ZQyrkQy2SYVqyaU3+WzFk9O1UTf7wXm/p54QjGmQZWnTN q9bg== 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=a8/qLLqO6eL91stH3wL0KRpl9T08Ic+NpnQGQ6x06VA=; b=f4Cd39QLY92IaVM2tmknoeZB594LpUUZr1ZtEy0hfTeAC6fZAsd1rh31SMJH0n638f xA7qQsB6pWyEAqteoEiScftPomofSHmgFLSPMLG3b1YSxsLQHNA4tDjsovf2bKJ3Q206 WtB209HyalWKi2hu4zxzydMH3sH8V3ka6IcHwIHV4RwcKUIdcpBYDdZuIxIJd+TdEH2C ij7BhB1N1wFY1nTdsSUcbMZPRtYVfEu4aFVAZwXmRlg+qp9kY1nn6tHV8cjE8vK55peU 5fZyHE3vEYX1OL9+0GvgcgxUSxya8Gef11iO+pYbuF8SCtL8rZUtQDBjQEaY+5VXpfc4 MnJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="j2sPe5/Y"; 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 m19si14086150eje.174.2021.07.06.07.57.40; Tue, 06 Jul 2021 07:58:05 -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=@ziepe.ca header.s=google header.b="j2sPe5/Y"; 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 S232056AbhGFO70 (ORCPT + 99 others); Tue, 6 Jul 2021 10:59:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231755AbhGFO7F (ORCPT ); Tue, 6 Jul 2021 10:59:05 -0400 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 098C9C06139F for ; Tue, 6 Jul 2021 07:56:20 -0700 (PDT) Received: by mail-il1-x12f.google.com with SMTP id g3so21011264ilj.7 for ; Tue, 06 Jul 2021 07:56:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=a8/qLLqO6eL91stH3wL0KRpl9T08Ic+NpnQGQ6x06VA=; b=j2sPe5/YeFhkbk8Ao1wBoSJI3mHjTKeYtGS/ylikxffAh4pjlXAic9iDxRv5Mv0c88 o5b7lMNG7FTsdoBh7D7HFqLBpXx4OWDvWQolA2AYbIKyYGFb/BJCIZ86BrUQNsb/C3Zk XsAk6eIa1iX7IreWpvN3CU6N8yZIaUepsXSqCVxrBMKOSQwVo+4QlVdlIX3ICQnCZ+RN LgJrLxii8/f54h0waeGuOrMJGYXgQlD5kGp/v5vw+plNVj3amj0GPy79B+VVJnzMwf0X slP6aAspIJPeReLpfjtTCTHLR7t2wU8m1oRA1naFZ3fVxAxznodtagNFx7SXVX3ixwEZ eBuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=a8/qLLqO6eL91stH3wL0KRpl9T08Ic+NpnQGQ6x06VA=; b=nWvvOlrh7wLuyEO2MFFj8uG0L/q98u9NrwZtbfxEZhcnJ0NqpMrjV9QRAF3x6yyko0 J1BC/6kGasTXeKKTW9YLJtkggGeugB+3peLR8a3aDwCAw2TGVMv9ZMAXhEJsyUnDhn0s KPlBlDOSdy2N4vfb73j9PbQC1wXIsveRskn6gbcO4HoYf0LO+nsouufPJoRRpCH5FCJJ zW/EKLo9ZVpYybFN800ZTVHS+dI8mSlB2ESYR7YiZBQC/IjaFP4ZOV0S0v0ZdS52RFtD ESbrfe3yNrFdWvbDLj3lABYEw2PMMI69/Gv/m1hsz/doCHfB73Tu0KfFMzkAiOm5O4w2 L/VQ== X-Gm-Message-State: AOAM531JEwxvJGAX/fL9u+8cVFehk8yaguao43RfoBWzSwjb+w8W0D8c j4+ArGqRb5geuKeTrozmJroZrg== X-Received: by 2002:a92:dd05:: with SMTP id n5mr14308230ilm.72.1625583379441; Tue, 06 Jul 2021 07:56:19 -0700 (PDT) Received: from ziepe.ca ([206.223.160.26]) by smtp.gmail.com with ESMTPSA id l18sm8626632ilo.64.2021.07.06.07.56.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jul 2021 07:56:19 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1m0mUj-004Rth-V9; Tue, 06 Jul 2021 11:56:17 -0300 Date: Tue, 6 Jul 2021 11:56:17 -0300 From: Jason Gunthorpe To: Daniel Vetter Cc: Oded Gabbay , Oded Gabbay , "Linux-Kernel@Vger. Kernel. Org" , Greg Kroah-Hartman , Sumit Semwal , Christian =?utf-8?B?S8O2bmln?= , 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" Subject: Re: [PATCH v4 0/2] Add p2p via dmabuf to habanalabs Message-ID: <20210706145617.GO4604@ziepe.ca> References: <20210705130314.11519-1-ogabbay@kernel.org> <20210706134430.GL4604@ziepe.ca> 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 Tue, Jul 06, 2021 at 04:09:25PM +0200, Daniel Vetter wrote: > Anyway, for anything that works like a gpu accelerator, like 3d accel, > or parallel compute accel (aka gpgpu) or spatial compute accel (aka > NN/AI) or maybe even fpga accel most of the magic to use the hardware > is in this backend compiler, which translates from an IR into whatever > your accelerator consumes. That's the part we really care about for > modern accelerators because without that defacto the hardware is > useless. Generally these chips have full-blown, if special purpose > ISA, with register files, spilling, branches, loops and other control > flow (sometimes only execution masks on simpler hw). I don't know if I see it so clearly as you do - at the end of the day the user keys in the program in some proprietary (or open!) language and and wack of propritary magic transforms it to "make it work". There are many barriers that prevent someone without the secret knowledge from duplicating the end result of a working program. An accelerator ISA is certainly one example, but I wouldn't overly focus on it as the only blocker. Like you said below the NVIDIA GPU ISA seems known but the HW is still not really useful for other reasons. Habana seems to have gone the other way, the HW is fully useful but we don't have the ISA transformation and other details. Both cases seem to have ended up with something useless, and I have a hard time saying nouveau has more right to be in the kernel tree than Habana does. > > Honestly, I think GPU is approaching this backwards. Wayland should > > have been designed to prevent proprietary userspace stacks. > > That's not possible without some serious cans of worms though. Wayland > is a protocol, and you can't forbid people from implementing it. > Otherwise all the compatible open implementations of closed protocols > wouldn't be possible either. Well, in many ways so is Linux, but nobody would seriously re-implement Linux just to produce a driver. > So I'm not clear what you're suggesting here we should do different. Not enabling proprietary stacks as above would be a good start. Jason