[PATCH v3 0/2] mm/hmm: A fix and a selftest

From: Dev Jain

Date: Thu Jun 04 2026 - 01:53:34 EST


Patch 1 fixes a stale warning present from the time when only migration
softleaf entries were supported at the PMD level.

Patch 2 adds some code into hmm-tests.c which exercises the pagemap path
for PMD device-private entries.

---
Applies on mm-unstable (d17fe8a046a2).

v2->v3:
- Use MADV_COLLAPSE, use PAGEMAP_PRESENT

v1->v2:
- Add test

Dev Jain (2):
fs/proc/task_mmu: do not warn on seeing non-migration pmd entry
selftests/mm/hmm-tests: test pagemap reads of PMD device-private
entries

fs/proc/task_mmu.c | 1 -
tools/testing/selftests/mm/hmm-tests.c | 34 ++++++++++++++++++++++++--
2 files changed, 32 insertions(+), 3 deletions(-)

--
2.43.0