lib-test_hmm-add-zone-device-private-thp-test-infrastructure.patch removed from -mm tree
The quilt patch titled
Subject: lib/test_hmm: add zone device private THP test infrastructure
has been removed from the -mm tree. Its filename was
lib-test_hmm-add-zone-device-private-thp-test-infrastructure.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Balbir Singh <[email protected]>
Subject: lib/test_hmm: add zone device private THP test infrastructure
Date: Wed, 1 Oct 2025 16:57:00 +1000
Enhance the hmm test driver (lib/test_hmm) with support for THP pages.
A new pool of free_folios() has now been added to the dmirror device, which can be allocated when a request for a THP zone device private page is made.
Add compound page awareness to the allocation function during normal migration and fault based migration. These routines also copy folio_nr_pages() when moving data between system memory and device memory.
args.src and args.dst used to hold migration entries are now dynamically allocated (as they need to hold HPAGE_PMD_NR entries or more).
Split and migrate support will be added in future patches in this series.
---
include/linux/memremap.h | 12 + lib/test_hmm.c | 366 +++++++++++++++++++++++++++++-------- 2 files changed, 303 insertions(+), 75 deletions(-)
include/linux/memremap.h renamed from include/linux/memremap.h~lib-test_hmm-add-zone-device-private-thp-test-infrastructure +12 -0
@@ -177,6 +177,18 @@ static inline bool folio_is_pci_p2pdma(c folio->pgmap->type ==MEMORY_DEVICE_PCI_P2PDMA ; } +static inline void *folio_zone_device_data (const struct folio *folio) +{ +VM_WARN_ON_FOLIO (!folio_is_device_private (folio), folio); +return folio->page.zone_device_data; +} + +static inline void folio_set_zone_device_data (struct folio *folio,void *data) +{ +VM_WARN_ON_FOLIO (!folio_is_device_private (folio), folio); + folio->page.zone_device_data = data; +} +static inline bool is_pci_p2pdma_page (const struct page *page) { return IS_ENABLED(CONFIG_PCI_P2PDMA) &&
lib/test_hmm.c renamed from lib/test_hmm.c~lib-test_hmm-add-zone-device-private-thp-test-infrastructure +291 -75
649 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are