From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 121C0C388F9 for ; Wed, 4 Nov 2020 18:11:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9EB6F206CB for ; Wed, 4 Nov 2020 18:11:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="CrqhrkR7" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731061AbgKDSLA (ORCPT ); Wed, 4 Nov 2020 13:11:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730052AbgKDSLA (ORCPT ); Wed, 4 Nov 2020 13:11:00 -0500 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 135D9C0613D3 for ; Wed, 4 Nov 2020 10:11:00 -0800 (PST) Received: by mail-qt1-x843.google.com with SMTP id i7so12845721qti.6 for ; Wed, 04 Nov 2020 10:11:00 -0800 (PST) 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=k0O2tryRBN/txl6awTV8eKioqjAa/NAL5VwW/RaREWI=; b=CrqhrkR7HAzUAGqSb60bOMK7qe5EIflczymnySw9Y5+bNjne9otfjktFQ6v+q7J5Bn QkYEsfvJoF/V7dNVQyc6aFNIdKrN1rYxwz6brltfl3vKl7GrhGkHBfbp/rhIGXnZsDyO q/iG27QnRKzRiEukn1JBcRUnjZMZ/Ak9n8ACm1EiTKdWPIltBuEFSSjrXyLFHI9ot/JV 8uBpfDuI13wJ7vALHBveYCdpbk+A19p4Bv4z46ArjZXEgsqRrdu1kwYS320gfNeLMlWW W2r30op0NjtAJ7YPSSK/BVYOYThngPwmUNlHggeP4WiKmejHxYofVLU4IlsEUP8nocyW gCZQ== 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=k0O2tryRBN/txl6awTV8eKioqjAa/NAL5VwW/RaREWI=; b=p06TPOY5tdJuJcA+nJnCiPXZkAgADWqGTRyWuL8ax/mZgPMe4QvjMX1yAD3c3RniZN aUimNfDISIlLDCEXx9KXydjfLU8xlfcTrCALTO89VxqKAaIHpQRHbLTcUj5xU1IB3k3S j+/RG095YX2I7SrwJGnLUfo/c087KxS+j33TGK39pTsvJavN7m45p+F+l4UN1W9zIdR2 UjQKYBwIJiTKdkuKNFGrzm7oWIaVm/EK/Xwehgc5CZgAGF+Iu8P33XwU0VARsGsyv/45 HNDWj3pjT4+lvdWwsIrBpOpR0ww0BcubsMXsHf5k5gpiqBRgNn5+L56S/c9GLzQo+IVd Nf8Q== X-Gm-Message-State: AOAM530D4XWmHnTZnXo/rOvNdeZfqg4QR6aTqTMi7eABtDkFB+YSKMqf 7a4T5dQ+DUR/eWj8mfH2w8jsgA== X-Google-Smtp-Source: ABdhPJwkADJ1e/NwsQb+VIyXw9DQ2vEHkyjUPuy8BExU4QQfjYg+akP04U4TisV1zRg4p7BfBzttTQ== X-Received: by 2002:aed:2d82:: with SMTP id i2mr10942501qtd.10.1604513459358; Wed, 04 Nov 2020 10:10:59 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-156-34-48-30.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.48.30]) by smtp.gmail.com with ESMTPSA id h65sm969050qkd.95.2020.11.04.10.10.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 10:10:58 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1kaNFJ-00GaMz-NI; Wed, 04 Nov 2020 14:10:57 -0400 Date: Wed, 4 Nov 2020 14:10:57 -0400 From: Jason Gunthorpe To: Bernard Metzler Cc: Christoph Hellwig , Bjorn Helgaas , Logan Gunthorpe , linux-rdma@vger.kernel.org, linux-pci@vger.kernel.org, iommu@lists.linux-foundation.org Subject: Re: Re: [PATCH 2/5] RDMA/core: remove use of dma_virt_ops Message-ID: <20201104181057.GT36674@ziepe.ca> References: <20201104140108.GA5674@lst.de> <20201104095052.1222754-1-hch@lst.de> <20201104095052.1222754-3-hch@lst.de> <20201104134241.GP36674@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-rdma@vger.kernel.org On Wed, Nov 04, 2020 at 03:09:04PM +0000, Bernard Metzler wrote: > lkey of zero to pass a physical buffer, only allowed for > kernel applications? Very nice idea I think. It already exists, it is called the local_dma_lkey, just set IB_DEVICE_LOCAL_DMA_LKEY and provide the value you want to use in device->local_dma_lkey > btw. > It would even get the vain blessing of the old IETF RDMA > verbs draft ;) > > https://tools.ietf.org/html/draft-hilland-rddp-verbs-00#page-90 IBTA standadized this, they just didn't require HW to use 0 as the lkey. Jason