From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F10A5C83F34 for ; Wed, 23 Jul 2025 08:44:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 236D610E0EF; Wed, 23 Jul 2025 08:44:21 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="M/jQIqzd"; dkim-atps=neutral Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1399D10E0DE; Wed, 23 Jul 2025 08:44:19 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id E4377A4B4B4; Wed, 23 Jul 2025 08:44:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 077C7C4CEF4; Wed, 23 Jul 2025 08:44:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753260257; bh=Cj91CGuGavrB/ilqOlKndjatFWOMgTxiTvWRwwSAyXM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M/jQIqzdz82x0nWSTcq4f0buV83Pk0LJSgQODn5pjrmjpwv5oy9a1d8mvYOCYdVOH bdXSPn4PgwRtO9dST3nKHT5TYXR4D0lbuq0VYMy2LK2WQ8tGkqd62MiFZw3E5YA1+V APES5GMOW46WRZWXbPOt0PFGaEfxcmpX5ZU7O9INHYCZGqFw/ylFGGERRmyWD2Q5u+ C0riJKs1eAlwPzfqs69FDmjTezmgWk9NwcQbHqxK4y8D01b28cCc7w3FT3bMoQXkso mDdwnRJk7eIzRHR57iMNUzD9DuAxsqerjLb5vvC3jhbdTL1pfEkFX8w1K57J9Sc/r3 j+tg72bbOJh1Q== Date: Wed, 23 Jul 2025 11:44:13 +0300 From: Leon Romanovsky To: Jason Gunthorpe Cc: Yonatan Maman , =?iso-8859-1?B?Suly9G1l?= Glisse , Andrew Morton , Lyude Paul , Danilo Krummrich , David Airlie , Simona Vetter , Alistair Popple , Ben Skeggs , Michael Guralnik , Or Har-Toov , Daisuke Matsuda , Shay Drory , linux-mm@kvack.org, linux-rdma@vger.kernel.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/5] *** GPU Direct RDMA (P2P DMA) for Device Private Pages *** Message-ID: <20250723084413.GO402218@unreal> References: <20250718115112.3881129-1-ymaman@nvidia.com> <20250720103003.GH402218@unreal> <35ff6080-9cb8-43cf-b77a-9ef3afd2ae59@nvidia.com> <20250721064904.GK402218@unreal> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Wed, Jul 23, 2025 at 01:03:47AM -0300, Jason Gunthorpe wrote: > On Mon, Jul 21, 2025 at 09:49:04AM +0300, Leon Romanovsky wrote: > > > In fact, hmm_range_fault doesn't have information about the destination > > > device that will perform the DMA mapping. > > > > So probably you need to teach HMM to perform page_faults on specific device. > > That isn't how the HMM side is supposed to work, this API is just > giving the one and only P2P page that is backing the device private. I know, but somehow you need to say: "please give me p2p pages for specific device and not random device in the system as it is now". This is what is missing from my PoV. Thanks