From: Alexandru Elisei <alexandru.elisei@arm.com>
To: "Mika Penttilä" <mpenttil@redhat.com>
Cc: Aveline Noir <jm5905938@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-mm@kvack.org, Ralph Campbell <rcampbell@nvidia.com>,
Jason Gunthorpe <jgg@ziepe.ca>, Leon Romanovsky <leon@kernel.org>,
Shuah Khan <shuah@kernel.org>,
David Hildenbrand <david@kernel.org>,
"Liam R. Howlett" <liam@infradead.org>,
Vlastimil Babka <vbabka@kernel.org>,
Mike Rapoport <rppt@kernel.org>, Michal Hocko <mhocko@suse.com>,
stable@vger.kernel.org
Subject: Re: [PATCH] lib/test_hmm: invalidate all mirrors on device-private migration
Date: Thu, 26 Nov 2026 12:23:28 +0000 [thread overview]
Message-ID: <awgkwFE0P9miJj-n@raptor> (raw)
In-Reply-To: <be640357-419b-4c78-8d96-3c698424ecd8@redhat.com>
Hi Mika,
On Wed, Nov 25, 2026 at 06:40:12PM +0200, Mika Penttilä wrote:
> Hi,
>
> On 11/25/26 17:06, Alexandru Elisei wrote:
> > Hi,
> >
> > On Thu, Nov 26, 2026 at 01:25:41AM +1100, Aveline Noir wrote:
> >> Hi Alex
> >>
> >> On Thu, Nov 26, 2026 at 1:15 AM Alexandru Elisei
> >> <alexandru.elisei@arm.com> wrote:
> >>
> >>> Might be something on my side? I'll investigate further, but I'm not very
> >>> familiar with the code.
> >>
> >> I reproduced the same 0 versus 523264 assertion on x86-64 when the separate
> >> mm/hmm: account for subpage offsets in device-private PMDs fix was absent.
> >> With that fix, the test passed. May you check whether it is in your test tree?
> >
> > Indeed, I didn't have the patch in my tree, now the test passes!
> >
> > Tested on a Radxa Orion O6 board (arm64 architecture):
> >
> > Tested-by: Alexandru Elisei <alexandru.elisei@arm.com>
> >
> > Thanks,
> > Alex
> >
> Did you run the full selftest?
I dropped the ball here, the output of the full selftest is a couple of screens,
so I just focused on running this one test while I was trying to get it to work.
>
> Without skipping own invalidations the normal migrate to device test fails
> ( With no skip, migrate_vma_setup()'s invalidation erases the caller's own entries) :
>
> # RUN hmm.hmm_device_private.migrate_fault ...
> # hmm-tests.c:1023:migrate_fault:Expected ret (-2) == 0 (0)
> # migrate_fault: Test terminated by assertion
> # FAIL hmm.hmm_device_private.migrate_fault
> not ok 14 hmm.hmm_device_private.migrate_fault
I can reproduce that:
$ sudo tools/testing/selftests/mm/hmm-tests -r hmm.hmm_device_private.migrate_fault
# [INFO] detected hugetlb page size: 2048 KiB
# [INFO] detected hugetlb page size: 32768 KiB
# [INFO] detected hugetlb page size: 64 KiB
# [INFO] detected hugetlb page size: 1048576 KiB
TAP version 13
1..1
# Starting 1 tests from 1 test cases.
# RUN hmm.hmm_device_private.migrate_fault ...
# hmm-tests.c:1023:migrate_fault:Expected ret (-2) == 0 (0)
# migrate_fault: Test terminated by assertion
# FAIL hmm.hmm_device_private.migrate_fault
not ok 1 hmm.hmm_device_private.migrate_fault
# FAILED: 0 / 1 tests passed.
# Totals: pass:0 fail:1 xfail:0 xpass:0 skip:0 error:0
I ran all the device private tests this time. I don't have a device with
coherent memory on my machine:
[..]
# FAILED: 77 / 78 tests passed.
# 40 skipped test(s) detected. Consider enabling relevant config options to improve coverage.
# Totals: pass:37 fail:1 xfail:0 xpass:0 skip:40 error:0
Thanks,
Alex
next prev parent reply other threads:[~2026-11-26 12:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 6:53 [PATCH] lib/test_hmm: invalidate all mirrors on device-private migration Andrew Morton
2026-11-25 14:15 ` Alexandru Elisei
2026-11-25 14:25 ` Aveline Noir
2026-11-25 15:06 ` Alexandru Elisei
2026-11-25 16:40 ` Mika Penttilä
2026-11-26 1:58 ` Aveline Noir
2026-11-26 12:23 ` Alexandru Elisei [this message]
2026-11-25 15:06 ` Mika Penttilä
2026-11-25 15:35 ` Aveline Noir
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awgkwFE0P9miJj-n@raptor \
--to=alexandru.elisei@arm.com \
--cc=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=jgg@ziepe.ca \
--cc=jm5905938@gmail.com \
--cc=leon@kernel.org \
--cc=liam@infradead.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
--cc=mpenttil@redhat.com \
--cc=rcampbell@nvidia.com \
--cc=rppt@kernel.org \
--cc=shuah@kernel.org \
--cc=stable@vger.kernel.org \
--cc=vbabka@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox