From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f42.google.com (mail-qv1-f42.google.com [209.85.219.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7C3A2DC77B for ; Mon, 26 Jan 2026 21:01:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769461273; cv=none; b=emK5E57rpqC6C/k6vTsa1yQEjtOFvCWl2CEZZjI2jDn7dTsihhyJ5wilA6zGwkfWJfl2X6eJafzEBC7y8EbRsSkbfk3B/xISj80fZp+2hMpfq+yBMEA9HxeNfrbqOpc7hFshIBMV3O6Y8cib8snNMsMBpHx7rMlABB+Q+c3kjBk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769461273; c=relaxed/simple; bh=/uBBJ41PsJ+poHfkbr45RI19WGdtV1Pwu8dAjRjrE+U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MPn2q2yFXD2urHYCmKUOaQFrf1Wzuz8RGUhoSGA5hqXk7lOvFFaWnJlN2pxOV3L9rEDJqeoTYt4LZDvj2q1A3N41/tvKkrMFH1bd2zoneiGkbGHecnpSEqMCUMv7xGHfDccNow/TGHZNToA71B9f9vIk6C91v9r7Jfb4WZeHLxU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=V9H7+3Id; arc=none smtp.client-ip=209.85.219.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="V9H7+3Id" Received: by mail-qv1-f42.google.com with SMTP id 6a1803df08f44-894703956b8so76913016d6.1 for ; Mon, 26 Jan 2026 13:01:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1769461271; x=1770066071; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Tu3uAyHuSXXXZq6VSWtVG72sHh/RWKg7/MHSYDvcONg=; b=V9H7+3Idk+sIAFevqUXVEpK+mTKlHABOW2S+GVajpGNFMc/qDA2vun05ep798kV5FS vViiO1MjGIWm2dRrzxCLj309UMGTSn61IQzvd+aiZMmQK6dD7ydt7quMEH0p8V4avKRd CXYlVfypwhbGaxaXUZmin/cwGOfH2a2VJvZhJf6x+Wqa2VLUYgYdS0tASsE/k8YZ/55P YaL6RaFesydc1hGo1u3yPbBe3TTIMy70Bgm7r8sTloVNQYE+tiCoVCK/kgmGjpKTocwj xo9M6WJA8jeIHXUkbI3Hw3PlZV7XoSBOozkqXNQuARwhrRXzCEdDhqnrk6bwnYj+1qj1 Fp/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769461271; x=1770066071; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Tu3uAyHuSXXXZq6VSWtVG72sHh/RWKg7/MHSYDvcONg=; b=VJ7D6qoV2eALVPSUFrdJU784pj/nnnIlROPLkzA69RJmc4ROab+0A9nm5fiuSeh4Eu NIyQ2TuC1apYR7dCTXQU/zQhyevLEpSSybk03+sQ5nXF3v5q23XeVa44skUBZHngUKyU 6NFL7jZb8o9Jhts3Dv55wY8mbPTVmvI2GG275XzxE0xs4ASHzlEgONK6stSZ8r6Mr8/O 5uq/XTC97tg1R+rtXfXVDk953tudckaemC8YNHhJ6scjUkc8iGcoRV+LLk0gPltOC5v6 SJk/dZSHiT8ICUTUivQap7ztL1rT/M6FSnw5QleO1KI1/JU9lrEE/nT3Quez6jwvUc05 d1pA== X-Forwarded-Encrypted: i=1; AJvYcCVXy8bKnaCKKWTiJQ6uhF+oRvL0iC9aIAM4cZzMiOnLtVfp1p5fYoQxKAszfociU0eLOzVtW4sqzINlE1Q=@vger.kernel.org X-Gm-Message-State: AOJu0YzPMxUHuwA5jPfTE9lsbuQz4TAbbMKu089y1BGP36IiYKnzwQ2c LMJgqwePYqN6aFQCxh6XAmH56WzhHDppvFTqKlOYcK3DBbeLzaAQkRH5EcPDqsrOpB8= X-Gm-Gg: AZuq6aLJODMVTQITPw4gCoei/hPS7FNjWWPZ5QZCiBb9D0DPbSAr69vnpTm3gh6yOY6 fFzrp8ERaZuUi0VR5AnxWZY5wLFGBk8BMv+tCa7fMHvT2IthmFB/ue+17nH+qUbgrCIkXBQel3X M/68v40okTgfnSTzNKxSv6QjewNrKi4EiWSjZQ82Hz5XgIQW9GKJ+UZB3bL+N/WhfLChMVG8Pay +z2JDmcz+lbctRDn2xEJdmIJycJhEeMB9nrb8H8JWvnoTg/3pdVmpnd1Th9cjliuz3P0yEQoijE SLnaxwEaFlvC8GbbLlE7OSE3sQjz5GgsdAJ9HW8aSehQjH9gHOaCoqNTxy/EZ/InVd67p6pCjvi T7u68l1XDcjcTvbw3YIwg+p0Cu62r5s3jP/HQ3jw0IKN0h72Z1ZRuNiC+BkVNyCHSi+Qne9Tke3 Jjz4CP4YRO5hY+x1DQfwKUO18wWBydDmdmGOr4ImTBJIJ19FPOz7aclMMCScPiFJrmd9g= X-Received: by 2002:a05:6214:1cc9:b0:894:7b34:dacd with SMTP id 6a1803df08f44-894b06f336dmr73487126d6.31.1769461270245; Mon, 26 Jan 2026 13:01:10 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-112-119.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.112.119]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-894918b1436sm104983856d6.35.2026.01.26.13.01.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jan 2026 13:01:09 -0800 (PST) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1vkThs-00000008z30-31vX; Mon, 26 Jan 2026 17:01:08 -0400 Date: Mon, 26 Jan 2026 17:01:08 -0400 From: Jason Gunthorpe To: Pranjal Shrivastava Cc: Leon Romanovsky , Sumit Semwal , Christian =?utf-8?B?S8O2bmln?= , Alex Deucher , David Airlie , Simona Vetter , Gerd Hoffmann , Dmitry Osipenko , Gurchetan Singh , Chia-I Wu , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Lucas De Marchi , Thomas =?utf-8?Q?Hellstr=C3=B6m?= , Rodrigo Vivi , Kevin Tian , Joerg Roedel , Will Deacon , Robin Murphy , Felix Kuehling , Alex Williamson , Ankit Agrawal , Vivek Kasireddy , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, virtualization@lists.linux.dev, intel-xe@lists.freedesktop.org, linux-rdma@vger.kernel.org, iommu@lists.linux.dev, kvm@vger.kernel.org Subject: Re: [PATCH v5 6/8] dma-buf: Add dma_buf_attach_revocable() Message-ID: <20260126210108.GD1641016@ziepe.ca> References: <20260124-dmabuf-revoke-v5-0-f98fca917e96@nvidia.com> <20260124-dmabuf-revoke-v5-6-f98fca917e96@nvidia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Jan 26, 2026 at 08:38:44PM +0000, Pranjal Shrivastava wrote: > I noticed that Patch 5 removes the invalidate_mappings stub from > umem_dmabuf.c, effectively making the callback NULL for an RDMA > importer. Consequently, dma_buf_attach_revocable() (introduced here) > will return false for these importers. Yes, that is the intention. > Since the cover letter mentions that VFIO will use > dma_buf_attach_revocable() to prevent unbounded waits, this appears to > effectively block paths like the VFIO-export -> RDMA-import path.. It remains usable with the ODP path and people are using that right now. > Given that RDMA is a significant consumer of dma-bufs, are there plans > to implement proper revocation support in the IB/RDMA core (umem_dmabuf)? This depends on each HW, they need a way to implement the revoke semantic. I can't guess what is possible, but I would hope that most HW could at least do a revoke on a real MR. Eg a MR rereg operation to a kernel owned empty PD is an effective "revoke", and MR rereg is at least defined by standards so HW should implement it. > It would be good to know if there's a plan for bringing such importers > into compliance with the new revocation semantics so they can interop > with VFIO OR are we completely ruling out users like RDMA / IB importing > any DMABUFs exported by VFIO? It will be driver dependent, there is no one shot update here. Jason