Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp11308lqk; Wed, 13 Mar 2024 14:44:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVuG6DXAxGNVU1WMUJDSbmH9gooQ1p47WJYC7MkVgcGLAfoBoYOzwkjtHLiuBG0CjuG7KmBT0+0v/F0OFYmhLFp9ckZ0Y/2std5QdFYhQ== X-Google-Smtp-Source: AGHT+IE8hvaL3wMfrn5RUMvK2NzTqDnH8MHSXvn2W0mclDtBEDMftsZc2JDI9amAalZ4F/LqsArg X-Received: by 2002:a17:906:bf47:b0:a46:22a3:4798 with SMTP id ps7-20020a170906bf4700b00a4622a34798mr7592195ejb.46.1710366286101; Wed, 13 Mar 2024 14:44:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710366286; cv=pass; d=google.com; s=arc-20160816; b=O+qTV5JOkjpa3Pdy+gBcG5/LmoJmWLH7T42A3XIQxKXf+wepfNHZUDI+cz+D/NiEbG oXkhFtE+06Oi1HikDnpcNtD6cTHxUpNjiNnYn0DFHEE72BeiqyrQgK5jaOEYG0JWMuX3 lwlR2r+/pmmYWSdc/0ZoKNMtOM7BPRzE1S0v1WsqMmWW+pDEUEBzOhS5y80a1JoX/jhZ v5S156A1J039weAS7hw13rJ3g3OiYNoto3v/GMH3VDZZz2mvFZ7tX4Hk8TGE5PlwnuqX COtI5ivKwuE5mqYgt/B0JKtkJpSeu4nxJEYyOgWDsjYL8yv8eg1zEkf2+o7poYsZ3D7j L/Ig== 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=4FQ4qNojKHxYbM+mjcMGc+v03sD6jBJ9rR92BjQFE/k=; fh=7C+cvSss+lRCRRqbCZWJFXK+bNoxMDONRJLVjQFkDlI=; b=lqGmWDP/FtAZCjLJgTLBHP8T7AbXfqad690LA/SM7bLpGoilGFWV0Af0+2Wur9LQ35 ZGUYLGyaoU8wanvMHwkJUpuyGon6fy/0CKZYkMD6Lex4ACWxUNc0iZmtLfnzz4sXCPXA ftpnf2g2Cnv5tTv/I2jj8wJBGJGvTmcnyFusyDD3BD196LKOfrN5YZACL7Mt6lnZIx5l IUPsrWUO/pF/SQLbErtp84rvTXnkcn9DbZdscFABegpZC3/GEQu6Rup7I/v1YmTUV2rm WHAPm6uNJ89OnxOIt2Wc2HA4aUooT12GZTBZKOhgzC4lhY8q4PWOjHvzPvfMhy17aJna aM7g==; 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-102547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102547-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id c17-20020a170906695100b00a45ac05036bsi47948ejs.311.2024.03.13.14.44.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 14:44:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-102547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102547-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C711B1F2363A for ; Wed, 13 Mar 2024 21:44:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D684256B90; Wed, 13 Mar 2024 21:44:33 +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 8863C53E07; Wed, 13 Mar 2024 21:44:30 +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=1710366273; cv=none; b=Zp5ZBt5d1sKsBcn7AmDBluPf+bbW5sofsIvO3QDNsLWWwXB2M1PoZwbym8rp7wFY9grFwA8RA3pwR7jGx9eWY4bWxptERXLcUsgliHcrK+WoyNuQ9CQQCa8Gfwm77/T+DbRdFas66nP/HhYZTflWMEA1Jl3FL+BiCorWFbWWytU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710366273; c=relaxed/simple; bh=fHUHblIM4Ym+Lz04JBq2RDtEh1L4l5ZqXeh2B8Xe0mo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=e6/KMea9e6puisxxWLSPC/vJeVAu6/QbaBvaLFyDp+9FvF8E77U3FX9yKud80Yi86BqU5raNoF8yXfI7GwRWJ5Vyz5CL+QJl3xfNZYCMKxeBjgiGUCyUK42fIpGjUlTAvQUho1sycFZboeV+4eN6F0611KjQ2vVJUI0gj5wAA2I= 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 8161568BFE; Wed, 13 Mar 2024 22:44:18 +0100 (CET) Date: Wed, 13 Mar 2024 22:44:18 +0100 From: Christoph Hellwig To: Leon Romanovsky Cc: Christoph Hellwig , Jason Gunthorpe , 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: <20240313214418.GA9129@lst.de> References: <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> <20240310093513.GB12921@unreal> <20240312212844.GA3018@lst.de> <20240313074636.GV12921@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: <20240313074636.GV12921@unreal> User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Mar 13, 2024 at 09:46:36AM +0200, Leon Romanovsky wrote: > On Tue, Mar 12, 2024 at 10:28:44PM +0100, Christoph Hellwig wrote: > > On Sun, Mar 10, 2024 at 11:35:13AM +0200, Leon Romanovsky wrote: > > > And you will need to have a way to instruct that pin_user_pages() variant > > > to continue anyway, because you asked for FOLL_PCI_P2PDMA. Without that > > > force, you will have !FOLL_PCI_P2PDMA behaviour. > > > > I don't understand what you mean. > > Jason talked about the need to call to pin_user_pages(..., gup_flags | FOLL_PCI_P2PDMA, ...), > but in your proposal this call won't be possible anymore. Why?