Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1346436lql; Tue, 12 Mar 2024 14:29:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQ5m/WldUl1sCWZgyd4GecQsp4P7//ZQVeq6862QKfPpCmN7BZyS9Uhi7gB7OluU1cRCWpwy8JBWBtO54zAGZa9cFTs6X+ul7pVk+Zyw== X-Google-Smtp-Source: AGHT+IFD0EQKM1iVqDELDbSTWa74JWHoPfFZ5oYbZQgOyN3mki/X28/liI1cToJedF/nwN48VHrg X-Received: by 2002:ad4:5909:0:b0:690:8833:b54d with SMTP id ez9-20020ad45909000000b006908833b54dmr10232279qvb.15.1710278964032; Tue, 12 Mar 2024 14:29:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710278964; cv=pass; d=google.com; s=arc-20160816; b=GRDmK5F/+g6HTx4lZRSuu7VMi0tG1+I+kZkGLTAzgkk3plXApmcsPT9UwFMWqlYgo9 tDoiFRYN98sh4T4tuBzxzDxh/8PJJWTbgd58pIJr1/cevLRhEV/QNIODeXwt9TEHIZAy e8FB5XsVVHylHLljR8hXHL4qkKeBQVFsgteE/DTOZJaqMFYa6AlC7gxfG75WDjn8qtdP U2OiIVVs6V8bLJJFa6NZNxh3aKQZt4W3eIyNitCP7O2CTrWSnPsl+IQzAEH0FlK475JF pfimMurUNy1FATDQXGqrPitNKBLKZxhTMM85WCeDLpJ0d/U2GFLE1kObDjiPlJhvaQw2 pamQ== 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=wiCWw23sXo5OHy4nFV8xWRwqKKDyYeDuYL5LUB9v2K0=; fh=7C+cvSss+lRCRRqbCZWJFXK+bNoxMDONRJLVjQFkDlI=; b=sJ3XJiB7t6CUbY52laNuODOiPlepOHZzYft7n5+FaVBw4YxgwKBnQGdXDPdzHRCL21 5GZT3G5Yiv9OL0+4/il/xGmI61h1SKzvtzv7yACbFS1ExBQr2qD/dxafvY5b2E5/jd6t J36Upbz12nixGoDTk5a8X2ynYgt63Gjx60D1jWuXqs1LSN1Ih8uhy77tN1IgBXXmvKNI MgA1GwW6XRVr0byASQJ71vQk+LHCy0Apg2sqmadYkX6UyQvl9aCbPhtpZ52e6l6BcZrz uuwKELAC+df65cJX68KEDUk4/D3jyQgkDMlB7kn+hR0hS9GFe8dg5NF1a950wriwLnN/ o1TA==; 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-100808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100808-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jl13-20020ad45e8d000000b0068fcd6af30bsi8793538qvb.414.2024.03.12.14.29.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 14:29:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-100808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100808-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BC21C1C2133C for ; Tue, 12 Mar 2024 21:29:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 033A0143C69; Tue, 12 Mar 2024 21:28:55 +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 9E425143736; Tue, 12 Mar 2024 21:28:52 +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=1710278934; cv=none; b=c1Z2b7pizgN/32qSGZrAdtmKt4c9NG7AxCxsS2J3a4LEvV5pVQj8AjOm/119arXvRx0ilEdmAWWU+ZjVyHpKJWcuGnT9RJVrS2PXo2mcZ2+6E1fg/TsGVOhZKJO9hgEjOztRAwMkq+kCyUfQ+UUbGH0r8vdmMSFpIXgJVMcMJZ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710278934; c=relaxed/simple; bh=BRQTLaIPx6C1TH1fJOMUn+wWNHenNMsiGQ36m5L9rtA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nUaSLr3fMhCWL6/cnQGL7z8+tAZuUBAwPU0MfKC8Stmo5L2Unp0zoRK7urt13mG/M/+rJP0+qpcMy1xOKQ3ggtNf0ZrvVrO9sGDoGYOCbixIBbmWd6eXJrNoT/3vAOLO4l7kaXXlBW/yKU6W1FEtRkkdZOQdSTXygpuhT/saT1o= 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 514BE68BFE; Tue, 12 Mar 2024 22:28:45 +0100 (CET) Date: Tue, 12 Mar 2024 22:28:44 +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: <20240312212844.GA3018@lst.de> References: <20240306162022.GB28427@lst.de> <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> <20240310093513.GB12921@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: <20240310093513.GB12921@unreal> User-Agent: Mutt/1.5.17 (2007-11-01) 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. > When you say "simplify the overall interface", which interface do you mean? Primarily the dma mapping interface. Secondarily also everything around it.