Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp778317lqp; Thu, 21 Mar 2024 15:43:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXXXeVqqYYa80hBIjxPjy3tJn7Dddxv3lDzIEBVOJC9Q0YKjn5lCu5KHcnJFqtEFaVF2gYms96azhm9nijT1ETMhYqZR2qZWMrjdu5ubg== X-Google-Smtp-Source: AGHT+IETGCDv0R5mWqR4qV+U4XASz/a6tfyAdfjIj2lwM0Zs/LdfDA1aPrxQ1pGsvKAm8FROdZ3V X-Received: by 2002:a05:6a21:2d05:b0:1a3:4e31:ab8f with SMTP id tw5-20020a056a212d0500b001a34e31ab8fmr1066615pzb.17.1711061031513; Thu, 21 Mar 2024 15:43:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711061031; cv=pass; d=google.com; s=arc-20160816; b=mTDasnkiS+DE2v9WZ5kmfKk3kl71hr+lremrxK33O5pNCXpbH1yhCMajskm47VPToB RDfUOfrTllVTxReOYta4JkyXGWAseIV1m7/rGM3MI5mj6BOMyZprpoQ7EGsAEwxM5oE0 9CXTuqb25aeCtRzXu0Zwa/gIaZxIjurxJC62XlmuESC7QjjWzHRZj1/VqpamInuEAkA8 yHH/XcGU5KQivs8WPb+8Qmfv03y6xE5uLtfEN4+J0KrkuQ9gFh0d+6FS9ZixABpSSKNC /8aP2EwaOO0EgYnEyXC96sQmUEnhYalSQJRcxtq6O1dDIgMX2FX4Vv2q9iyn6jQfDss7 DGdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=Lg8cIHYnPEpzgSE//BhyaBY+eL/FccLN/ML5Z7XMK3Q=; fh=1fDwNxq5MbxkzmD0xPVrQzwEEqh5MbikDrYJLzUzCIc=; b=BLmNdtx5e4vngD0cxEYeCqo+1mBTeO014rTKVyhcI7sRnWkPCbx76rBG1cYMfdoCR7 w5swtKsbyAhI0hx/UVLtcdPnmsa6nvgNovipppzUsAxZd5+ZmkYP3K1i1F+wtt0TcpyD a/fOk2DemGTy/E28bDA+R6rOjOhMYZqFUyK2cXjED4HgJjLKh1TUOZcoVlnSNahXhfR6 r8V6G0PfIxi9uVMLCfS/IiDK1nSqdKqIGC6B0FT8X6EiYudpEM1cpfThjqtPANBnWr0y 9etojZPmV9L5kFzkVskuD1+3s9VQE8eLIxhiOIzMzDRmiy20IGKXQJMbo9/c6rwZvHPT 0WUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-110767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110767-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t21-20020a056a00139500b006e6880bdccbsi669064pfg.388.2024.03.21.15.43.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 15:43:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-110767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110767-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CB576B21F70 for ; Thu, 21 Mar 2024 22:40:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8FB0679EA; Thu, 21 Mar 2024 22:40:19 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEA33522F; Thu, 21 Mar 2024 22:40:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711060819; cv=none; b=RkZGZ3DuLzpCp2oxtfUhCAyUReunPWWOJ9P+B7oXNxvBdkpgYdODEj/VIx6dLit8gEXDXYzeSyKmvypfXUlqQYWM52IpkgxMjwzkHmERd0m6RZT3/4jmpWRdGsAT4liFfmKWmbZKIsVo1UFyYjO9YRvbCU3IjSYANeK/3t6Ujn4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711060819; c=relaxed/simple; bh=5NSgBq1Z6VQVYGzF7liD+tbooRHQwDlO9huESJB5UTc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=spUSCXgdsZJ97r5rTero4dC+nTgIW41KaPNePadwG9xvrrOeEQ3SsrQd5SBVsVlPGgEHgRqakuPoIs4hieJtO0KfsVcjXhmpotHdl4FpkBq46ZbJ3srdBXLp/XS2QJ+3zzxF9sTX8jK3yI19zNrjW78iagsAL+B5CZrCzBDUnBY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id C484568B05; Thu, 21 Mar 2024 23:40:13 +0100 (CET) Date: Thu, 21 Mar 2024 23:40:13 +0100 From: Christoph Hellwig To: Leon Romanovsky Cc: Jason Gunthorpe , Christoph Hellwig , Robin Murphy , Marek Szyprowski , Joerg Roedel , Will Deacon , Chaitanya Kulkarni , Jonathan Corbet , Jens Axboe , Keith Busch , Sagi Grimberg , Yishai Hadas , Shameer Kolothum , Kevin Tian , Alex Williamson , =?iso-8859-1?B?Suly9G1l?= Glisse , Andrew Morton , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-rdma@vger.kernel.org, iommu@lists.linux.dev, linux-nvme@lists.infradead.org, kvm@vger.kernel.org, linux-mm@kvack.org, Bart Van Assche , Damien Le Moal , Amir Goldstein , "josef@toxicpanda.com" , "Martin K. Petersen" , "daniel@iogearbox.net" , Dan Williams , "jack@suse.com" , Zhu Yanjun Subject: Re: [RFC RESEND 00/16] Split IOMMU DMA mapping operation to two steps Message-ID: <20240321224013.GB22663@lst.de> References: <20240306174456.GO9225@ziepe.ca> <20240306221400.GA8663@lst.de> <20240307000036.GP9225@ziepe.ca> <20240307150505.GA28978@lst.de> <20240307210116.GQ9225@ziepe.ca> <20240308164920.GA17991@lst.de> <20240308202342.GZ9225@ziepe.ca> <20240309161418.GA27113@lst.de> <20240319153620.GB66976@ziepe.ca> <20240320085536.GA14887@unreal> 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: <20240320085536.GA14887@unreal> User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Mar 20, 2024 at 10:55:36AM +0200, Leon Romanovsky wrote: > Something like this will do the trick. As far as I can tell it totally misses the point. Which is not to never return non-P2P if the flag is set, but to return either all P2P or non-P2 P and not create a boundary in the single call.