Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4755987pxv; Tue, 6 Jul 2021 08:24:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKRqVOjFdpgt9g1NgIY9IsldaIt5XU0mQ3zqw0VsgVE6yxOd5hXVpyIf0MvjkcyW21K8ES X-Received: by 2002:a92:60a:: with SMTP id x10mr14436344ilg.278.1625585087144; Tue, 06 Jul 2021 08:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625585087; cv=none; d=google.com; s=arc-20160816; b=NhGVFRMe31Q2IKAIKtgKMNhOhkffG0HpYgpDwjR3VR3PPKjSoURCUi3lL+TT5u6Vn/ X5Bxm0azNpYX/0LGCJUXROtJb0TAa1KvAl6p0i6CivnB6AhKyhHsyBBdL+FGvq56At2O ULBmhzJ+iIE8KIcZvqgn/IswDlN8f+YMIclLWyI+Uup8PtCLoAsminJnfxtyFES5N8W2 8muPiU9Qo+j0c6Jdlmvsf09ZQLghodEYCXKq9ms9d2vAhwGLbRnMmkyhhGKTH8QDtYbK v+SSgpOpP5ozFZi4Fvcx0T3Iqi6PL+IDIKOgpiilr0c99Ca2/0FHi8EG7sWTFyC7ziJa QIqg== 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=nYMSUda7V/DmmAuzip7JbF6LIDuj8UtQ05rEhsj9lGA=; b=1LczbjKULo49SuAcrzLReYo8JMZpwTUoxqEJy5WeTpJXaGUVHWxmK1T8U22Pdqr/p9 H70azKqP6cAWdHat5Q9V4PqyMXwg6kwGzeJpw9hV22jvBgJI8zbeROlyJUC8L/QO/xpC 8d8X0M/vDMHB8EO8BKStTS+GjJGjp7HclF0LG1u68SeGVU739sEKQVdC0xFehgkN5UQY IuWj2qV/xJK+IQ4lDPWMdYiR3lZlJf+IkkhFo3xYXzLXgieV8F0rtaGIEBf0MhHhkWVs zE2O6W7M8eThAO5bWgRPZXFOIu4Dt7daQyAlVWPS0DoxQ18A+ruv2VRlPkn95QUhGjjW k7gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=V36CzWcF; 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 k7si19014759ilh.42.2021.07.06.08.24.34; Tue, 06 Jul 2021 08:24:47 -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=V36CzWcF; 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 S232559AbhGFPZf (ORCPT + 99 others); Tue, 6 Jul 2021 11:25:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232354AbhGFPZd (ORCPT ); Tue, 6 Jul 2021 11:25:33 -0400 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6999C061762 for ; Tue, 6 Jul 2021 06:44:32 -0700 (PDT) Received: by mail-qk1-x72d.google.com with SMTP id b18so8608803qkc.5 for ; Tue, 06 Jul 2021 06:44:32 -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=nYMSUda7V/DmmAuzip7JbF6LIDuj8UtQ05rEhsj9lGA=; b=V36CzWcFqXgQrH0S61JBopqFYw86l1KRRiKJIfDMvpGLy4yCd9hRFVr0veacKuzH9C Zgqj20uE9eKfAWLyfKmwP+hpUiApugYVKPIUd+EFXMxS/jWvnL3mn8mSgjzu4iIFPcKJ 45inefBONCCkx8NgDhSgPV+1arRfzXXcfRNx3yJokZyujlPZfXzS0at11zwyPuA+RpQv wjKe6ehncM5CybBy6YVtafHvR9nArwr4etCQhsgoD72pN8YiB6jEe/6xvn5lmExqOPcd l2ikCxlts7bnffEllKLPSylZMJUJm44orkIDc9OCKJTeMjFkIgoY/LXb3bYUCoqdKvKg KJhA== 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=nYMSUda7V/DmmAuzip7JbF6LIDuj8UtQ05rEhsj9lGA=; b=uE7766Qo0TJqHCBd9Ubs9dR32IBiS7DVYkl46OLuGaDcqY1fN9o9m5IDcY3M5nFltl +7zk5l8gBrUjs0nvLPEtWyJ2cCnBnzKGMYWYG7eSMuMocIooqYDM5HWwvCpVQBIj81/E R0ypddqXCmQEE5guzdzHiQ35EmkAXs0bWdAlGD8yRdqyqAb2xHAr/Urskh9KkDQBDW7K r2N7RYkDg4JeEoGHLMNrat22ushuLSx63n3MAIno/B/paTKKiYTqIffuouhkZJiBH7Hj HjfFkFrQt+sMh1CksLqlPXkP8yNsDgyPy19Nu4XtXgy/MpC19dkNMdwVn8jq8JjDnzRV JcVg== X-Gm-Message-State: AOAM5307auUcnNwhJq/fNmna6V1IxmUGOk7qXb/XbFa8FrJg8V9Xp5jl 3AYsZ60wGvqWRHlekIJHeqlodg== X-Received: by 2002:a37:68c6:: with SMTP id d189mr20223444qkc.186.1625579071862; Tue, 06 Jul 2021 06:44:31 -0700 (PDT) Received: from ziepe.ca ([206.223.160.26]) by smtp.gmail.com with ESMTPSA id v5sm6919384qkh.39.2021.07.06.06.44.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jul 2021 06:44:31 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1m0lNG-004Qag-41; Tue, 06 Jul 2021 10:44:30 -0300 Date: Tue, 6 Jul 2021 10:44:30 -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: <20210706134430.GL4604@ziepe.ca> References: <20210705130314.11519-1-ogabbay@kernel.org> 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 02:07:16PM +0200, Daniel Vetter wrote: > On the "rdma-core" idea, afaik rdma NIC do not have fully programmable > cores in their hw, for which you'd need some kind of compiler to make > use of the hardware and the interfaces the kernel provides? So not > really compareable, but also my understanding is that rdma-core does > actually allow you to reasonable use&drive all the hw features and > kernel interfaces fully. The whole HPC stack has speciality compilers of course. OpenMP, PGAS, etc. These compilers map onto library primitives that eventually boil down into rdma-core calls. Even the HW devices have various programmability that are being targetted with compilers now. People are making NIC devices with ARM cores/etc - P4 is emerging for some packet processing tasks. rdma-core can drive all the kernel interfaces with at least an ioctl wrapper, and it has a test suite that tries to cover this. It does not exercise the full HW capability, programmability, etc of every single device. I actually don't entirely know what everyone has built on top of rdma-core, or how I'd try to map it the DRI ideas you are trying to explain. Should we ban all Intel RDMA drivers because they are shipping proprietary Intel HPC compilers and proprietary Intel MPI which drives their RDMA HW? Or is that OK because there are open analogs for some of that stuff? And yes, the open versions are inferior in various metrics. Pragmatically what I want to see is enough RDMA common/open user space to understand the uAPI and thus more about how the kernel driver works. Forcing everyone into rdma-core has already prevented a number of uAPI mistakes in drivers that would have been bad - so at least this level really is valuable. > So we actually want less on dri-devel, because for compute/accel chips > we're currently happy with a vendor userspace. It just needs to be > functional and complete, and open in its entirety. In a sense yes: DRI doesn't insist on a single code base to act as the kernel interface, but that is actually the thing that has brought the most value to RDMA, IMHO. We've certainly had some interesting successes because of this. The first submission for AWS's EFA driver proposed to skip the rdma-core step, which was rejected. However since EFA has been in that ecosystem it has benefited greatly, I think. However, in another sense no: RDMA hasn't been blocking, say Intel, just because they have built proprietary stuff on top of our open stack. Honestly, I think GPU is approaching this backwards. Wayland should have been designed to prevent proprietary userspace stacks. Jason