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 AAA5212EBE7; Tue, 9 Jul 2024 06:20:20 +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=1720506022; cv=none; b=UcuMemkjmLodUt7mPXbdx0ObXC/nIPyxQi46zvsts8/1IvQ3muht4z8xWdVRdpzPpKWK+MVGZmzP0Zt2iArLp1m4rsvm0hFrjVKIrLIFV4dsxpx81a6zxw+g3srXxAzEzKmWu1SI7sE4tMSGuw5ZTIp8ZOKIM8kPmUpijijyEIY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720506022; c=relaxed/simple; bh=mdrqaCREQW/1Ifa3b72PBPKrXbPhXkFTrlxv2FA9lIs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LmgN6wVj7mXsjen9/AJffe9xxlUBVB/17PZMGwxrJ89tYODnuFFbDITajV/8X93zQ03pQjoi9YCvSvhvFoQhpB5jSnJR4ED/oQ+yoRMn+HkVZGBIKmpHCbAoFdUfIWt5rjXxwjL9WeXPu6I/SLE6mIr+AIQhBXhGST8BPwn2518= 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 7595068AFE; Tue, 9 Jul 2024 08:20:15 +0200 (CEST) Date: Tue, 9 Jul 2024 08:20:15 +0200 From: Christoph Hellwig To: Jason Gunthorpe Cc: Christoph Hellwig , Leon Romanovsky , Jens Axboe , Robin Murphy , Joerg Roedel , Will Deacon , Keith Busch , "Zeng, Oak" , Chaitanya Kulkarni , Sagi Grimberg , Bjorn Helgaas , Logan Gunthorpe , Yishai Hadas , Shameer Kolothum , Kevin Tian , Alex Williamson , Marek Szyprowski , =?iso-8859-1?B?Suly9G1l?= Glisse , Andrew Morton , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, iommu@lists.linux.dev, linux-nvme@lists.infradead.org, linux-pci@vger.kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC PATCH v1 00/18] Provide a new two step DMA API mapping API Message-ID: <20240709062015.GB16180@lst.de> References: <20240705063910.GA12337@lst.de> <20240708235721.GF14050@ziepe.ca> Precedence: bulk X-Mailing-List: kvm@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: <20240708235721.GF14050@ziepe.ca> User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, Jul 08, 2024 at 08:57:21PM -0300, Jason Gunthorpe wrote: > I understand the block stack already does this using P2P and !P2P, but > that isn't quite enough here as we want to split principally based on > IOMMU or !IOMMU. Except for the powerpc bypass IOMMU or not is a global decision, and the bypass is per I/O. So I'm not sure what else you want there?