]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/hmm: let users to tag specific PFN with DMA mapped bit
authorLeon Romanovsky <leonro@nvidia.com>
Mon, 28 Apr 2025 09:22:16 +0000 (12:22 +0300)
committerLeon Romanovsky <leon@kernel.org>
Mon, 12 May 2025 10:06:37 +0000 (06:06 -0400)
commit285e871884ff3dc31c0c2c1a87f0018481bc8471
tree933539323da5d93a03b0ed5765494ad4955bce10
parent972aa49a7c93fecdf281d2a7f4914085f3b327eb
mm/hmm: let users to tag specific PFN with DMA mapped bit

Introduce new sticky flag (HMM_PFN_DMA_MAPPED), which isn't overwritten
by HMM range fault. Such flag allows users to tag specific PFNs with
information if this specific PFN was already DMA mapped.

Tested-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
include/linux/hmm.h
mm/hmm.c