Re: [PATCH v4 12/19] selftests/mm: parameterize the mixed-source collapse case by source order

From: Kiryl Shutsemau

Date: Mon Sep 07 2026 - 09:41:34 EST


On Thu, Aug 20, 2026 at 11:40:35AM +0300, Mike Rapoport wrote:
> > collapse_order_mixed_sources() faults its region as order-2 folios and
> > collapses them to the -c target. Order 2 sits below the contpte threshold
> > on both arm64 page-size configurations, so nothing in this suite unfolds a
> > contpte source on purpose.
> >
> > Let -s name the source order alongside -c. The case then faults at that
> > order, keeping order 2 when -s is absent, and the source order has to be a
> > supported mTHP order below the target. The other mTHP cases are
> > unaffected: mthp_push_target_order() enables only the target order.
> >
> > "-s 5 -c 7" on arm64/64K then collapses contpte-mapped sources into a
> > larger mTHP.
>
> I'd fold it into the previous patch.

I would rather not mix new test cases with changes to how the test is
driven.

--
Kiryl Shutsemau / Kirill A. Shutemov