From mboxrd@z Thu Jan 1 00:00:00 1970 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-rdma@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.