[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7AEEAEF2-5876-4EF4-B79C-D95E4E637A89@nvidia.com>
Date: Tue, 27 Jan 2026 16:01:15 -0500
From: Zi Yan <ziy@...dia.com>
To: Jordan Niethe <jniethe@...dia.com>
Cc: linux-mm@...ck.org, balbirs@...dia.com, matthew.brost@...el.com,
akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
dri-devel@...ts.freedesktop.org, david@...hat.com, apopple@...dia.com,
lorenzo.stoakes@...cle.com, lyude@...hat.com, dakr@...nel.org,
airlied@...il.com, simona@...ll.ch, rcampbell@...dia.com,
mpenttil@...hat.com, jgg@...dia.com, willy@...radead.org,
linuxppc-dev@...ts.ozlabs.org, intel-xe@...ts.freedesktop.org, jgg@...pe.ca,
Felix.Kuehling@....com, jhubbard@...dia.com
Subject: Re: [PATCH v3 05/13] mm/page_vma_mapped: Add flag to
page_vma_mapped_walk::flags to track device private pages
On 23 Jan 2026, at 1:23, Jordan Niethe wrote:
> A future change will remove device private pages from the physical
> address space. This will mean that device private pages no longer have
> normal PFN and must be handled separately.
>
> Prepare for this by adding a PVMW_DEVICE_PRIVATE flag to
> page_vma_mapped_walk::flags. This indicates that
> page_vma_mapped_walk::pfn contains a device private offset rather than a
> normal pfn.
>
> Once the device private pages are removed from the physical address
> space this flag will be used to ensure a device private offset is
> returned.
>
> Signed-off-by: Jordan Niethe <jniethe@...dia.com>
> Signed-off-by: Alistair Popple <apopple@...dia.com>
> ---
> v1:
> - Update for HMM huge page support
> v2:
> - Move adding device_private param to check_pmd() until final patch
> v3:
> - Track device private offset in pvmw::flags instead of pvmw::pfn
> ---
> include/linux/rmap.h | 24 ++++++++++++++++++++++--
> mm/page_vma_mapped.c | 4 ++--
> mm/rmap.c | 4 ++--
> mm/vmscan.c | 2 +-
> 4 files changed, 27 insertions(+), 7 deletions(-)
>
LGTM.
Reviewed-by: Zi Yan <ziy@...dia.com>
Best Regards,
Yan, Zi
Powered by blists - more mailing lists