Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp311861lqp; Mon, 10 Jun 2024 05:12:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXk2pF6Gj5tOiJ6Obsw96YdaqP2BwssgUR015ZOaFvcoh88CM0bDXAF4RnEcmhjyb1JSN+wa6Wiy8uE5kPD1Li+s/mYc1FZbZK+yr4zcg== X-Google-Smtp-Source: AGHT+IFJyYvOH+70AN3xoyN8GCugy80uOryI6gll0ew2nd1SUtOD63MY5VXUfVULVgbxPNSvtpU2 X-Received: by 2002:a17:906:32c7:b0:a68:a137:d041 with SMTP id a640c23a62f3a-a6cd5611ba8mr603651466b.12.1718021530904; Mon, 10 Jun 2024 05:12:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718021530; cv=pass; d=google.com; s=arc-20160816; b=jL61H588SNI1pXTqbm6Dr2JcZyYkyPk51/yRC8APcjc/SIdAgiu5DVusY+trzA6MHJ DJ2kT3R23zOF+Oamjd70RbtxsFg02W9CdnUOefl8m91ol8opZUCy9NnuZNp5NT5CA4zb J0YXtCC4Cz5PJEn/78v3GHUjAj9mbGdeJ0ufP1uxsXpD+r5bvv5W9nrG4sLoRHAzpxvX 0KaJ2IobBYEQCMhrYBWY+IzwIkzgB9TN3V5MWezQNO70G2Ssgd2ZVMGahLEQJvLr5mHx 6WzMNPwyof4eTfjCm0uoGI5l3vaFeng0YlX63QhEUtSEfW3aJbvxFRAyU5yhReLykF26 NRyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=c3VfLy+0xn7yNaS/SyVEB4+sm+cKduyI1+wlQtfEH7Y=; fh=cnxIcRUPeBQdakApSd+Ye1ECvzFyHbZLS/ffuZhHz/w=; b=czAWC6g2GUHeO8ZCuGgoZ53FEJTuojEKA6OIDohzkFMjLL6fPcqw8RCQGkeHtRSpa8 zY4MU80VFdGnRKxTA7BIEvtAsmS9VNRMyzAp8ZXnoD6qSIexONaoRO9vrNLN47LltyUE 7MAgpfX5OGxIX2ZHpUldQJ+lD3O0fR86cmcMsbujh70+AJ3qPsPGp3kymDjibdOWsaKM sp/Y91kG8pBhMsLSFa6ETr0yIukaKL7p26nMPCyPkylKQprM3DsfCp6N0z4rKQzOZKcy 3VXzlrwcKzS2YRU7xewCyGcp0TmIWtNiPnaSSKmn0iWSOJvn+WiHSbBfJfu4snmIOynF 44nw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=EDCSJR5K; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-208138-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208138-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 a640c23a62f3a-a6de0dd0852si361743366b.117.2024.06.10.05.12.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 05:12:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208138-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; dkim=pass header.i=@ziepe.ca header.s=google header.b=EDCSJR5K; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-208138-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208138-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 9ECB21F21A32 for ; Mon, 10 Jun 2024 12:12:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CD3A7F466; Mon, 10 Jun 2024 12:12:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="EDCSJR5K" Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E9207FBA2 for ; Mon, 10 Jun 2024 12:11:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718021519; cv=none; b=cd01koh/I0a9L7ViIXi3JW8BJx4w4gN1TN5c9E1vfEyc44nMi/DTQbqZEVetk1d73vw+v6IAvRHmUICNerKSVlEdI/FufkLrw9+o5Iu9ppUQbzc2WlTPq7bPsZJ3eDADpFOirNuBdDB6BlPk5fQEpex3bQMIVX6ruIIz0qc5gvI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718021519; c=relaxed/simple; bh=caB1DgE6lNAzXW+g/NLwFuuEdV7bcFUoheISR77RlXM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZzTOYbttGGg68PaDSekGQrJlXo1E6bJXAK5UHsZ8vLeOwuYwjRAp26ttQ/FWpdJipXUM10UzqoOeqmktKAx1HsX1qDXPVemQm2ikvislFWKQNdxlLv8LFERQ3EnJUL7jgGHLMp3S+e/Jl5As23aB7C9JLK1CKlms32p58u0U6ZQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=EDCSJR5K; arc=none smtp.client-ip=209.85.160.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-25488f4e55aso1063690fac.0 for ; Mon, 10 Jun 2024 05:11:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1718021516; x=1718626316; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=c3VfLy+0xn7yNaS/SyVEB4+sm+cKduyI1+wlQtfEH7Y=; b=EDCSJR5KdGemonIxsoQTseyTzM9BH8o/yMSGP/6PnbY8TGN+EguAGMUX22oxZZex9w u35HlIDUokYeQDPy9jwIjfn14cDRSBFPXNdD+Lxcpb2Whthx7urTa/onA6Q5YSdci0Cf NATW9ys5OZlcbpJ+PhaCWlAaVMPhi1gIu6Hxyj5i6J6iRYXbdijVHPGOOrlmci+SNTW8 OJd20HLo9d9+SeLmm9inNpf0s0Q05QxtO3yFSOHzlUxsk0rVg+FiC8ytisLAeZqImfqy Qcu+/nH2/BCQsq0F7wpnO4n9iHltVJn4+6h/y0tKxrAUsDdGOUiAAsDZVVY7iAJ6dFxo +vuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718021516; x=1718626316; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=c3VfLy+0xn7yNaS/SyVEB4+sm+cKduyI1+wlQtfEH7Y=; b=afPKjNPgQT++U2z73/qCxDRB+h1w4Kfqjb4K/jLQKrwmm/brxaIQYb7IoeahYtGyTm +jI/w45yjwbMXo8krIcFvg7A7M3ha6K6Vv3BIY8WgAxnDG7E8w0CRg47dorK9dAFFfaa ySH21PLSh/tyl5SsZqxtyWf1r+5uxhDKHGNogFxHdZJovJfbfBfmRm8RIfCDD7bi1dDy cbytKKkz5gfXssQ/O/NTH7RE/p0Cl7qoOT0wXMEMgqltQ6VJmFVIKg2AeO0e+zAn9il9 yM3nfgwnoAeZFycERtuwQWrvQlxC8MIb5SP5b0G4D6EfRiHllhbCW/AU7Zzr9ZcMDebI HooQ== X-Forwarded-Encrypted: i=1; AJvYcCX9xIyVKMyLz4c2us1GpRDESeJAsOt7yn2XIazFgjeZIHim/GAt7v+BTZIAkS6jYujp2eQ7KvT0ckcJK9iqBxf9ou8mDflxWf4zo5bY X-Gm-Message-State: AOJu0YxLbNqSEshG+KY5wbYjf2nfmtu+dq0cKoACyr20i5AN3aZJ8k6M fm8p1+/4v1lsqLcEaBwKp0WWr66QWf/6ZHVWs60x6rxYnuBES44hdDzu9XqABmA= X-Received: by 2002:a05:6870:d0c3:b0:254:b7d9:2dcb with SMTP id 586e51a60fabf-254b7d94b5fmr3834664fac.8.1718021516266; Mon, 10 Jun 2024 05:11:56 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-80-239.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.80.239]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7954d46bb31sm268776685a.14.2024.06.10.05.11.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 05:11:55 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1sGdsQ-00DhCf-S1; Mon, 10 Jun 2024 09:11:54 -0300 Date: Mon, 10 Jun 2024 09:11:54 -0300 From: Jason Gunthorpe To: Martin Oliveira Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org, Leon Romanovsky , Bjorn Helgaas , Logan Gunthorpe , Greg Kroah-Hartman , Tejun Heo , "Rafael J. Wysocki" , Andrew Morton , Mike Marciniszyn , Michael Guralnik , Dan Williams , Ard Biesheuvel , Valentine Sinitsyn , Lukas Wunner Subject: Re: [PATCH 6/6] RDMA/umem: add support for P2P RDMA Message-ID: <20240610121154.GH791043@ziepe.ca> References: <20240605192934.742369-1-martin.oliveira@eideticom.com> <20240605192934.742369-7-martin.oliveira@eideticom.com> 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: <20240605192934.742369-7-martin.oliveira@eideticom.com> On Wed, Jun 05, 2024 at 01:29:34PM -0600, Martin Oliveira wrote: > If the device supports P2PDMA, add the FOLL_PCI_P2PDMA flag > > This allows ibv_reg_mr() and friends to use P2PDMA memory that has been > mmaped into userspace for MRs in IB and RDMA transactions. > > Co-developed-by: Logan Gunthorpe > Signed-off-by: Logan Gunthorpe > Signed-off-by: Martin Oliveira > --- > drivers/infiniband/core/umem.c | 3 +++ > 1 file changed, 3 insertions(+) Acked-by: Jason Gunthorpe Jason