From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="EDCSJR5K" 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-Google-Smtp-Source: AGHT+IHMlLqmreNq9NtSDVCvKZpZzp9aWfGxwYiAaNNsZlWsytpstVnNHWnxI5w1Z35ApPSZX6ZS9A== 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