From: Alistair Popple <apopple@nvidia.com>
To: Zenghui Yu <yuzenghui@huawei.com>
Cc: "David Hildenbrand (Arm)" <david@kernel.org>,
Zenghui Yu <zenghui.yu@linux.dev>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org, jgg@ziepe.ca,
leon@kernel.org, Andrew Morton <akpm@linux-foundation.org>,
ljs@kernel.org, liam@infradead.org, vbabka@kernel.org,
rppt@kernel.org, surenb@google.com, mhocko@suse.com
Subject: Re: "alloc_tag was not set" when running mm/ksft_hmm.sh
Date: Tue, 12 May 2026 16:40:48 +1000 [thread overview]
Message-ID: <agLLCAHbkoXI8mr5@nvdebian.thelocal> (raw)
In-Reply-To: <1986f468-f8f4-c33a-9e02-4d5f833e3560@huawei.com>
On 2026-05-12 at 11:05 +1000, Zenghui Yu <yuzenghui@huawei.com> wrote...
> On 2026/5/12 0:38, Zenghui Yu wrote:
> > Hi David,
> >
> > On 5/11/26 8:47 PM, David Hildenbrand (Arm) wrote:
> > >
> > > We do have a call to pgalloc_tag_split() in __split_unmapped_folio(), invoked in
> > > __folio_freeze_and_split_unmapped() before calling
> > > zone_device_private_split_cb() when iterating the folios.
> >
> > If I read the code correctly, pgalloc_tag_split() in
> > __split_unmapped_folio() deals with device private pages' alloc tag. But
> > what alloc_tag_sub_check() warns on are real system memory pages (device
> > page's backing page), which are allocated by
> > dmirror_devmem_alloc_page()/folio_page().
>
> Sorry, I meant dmirror_devmem_alloc_page()/folio_alloc().
Sorry, this crossed my other reply. The above analysis is correct - we don't
call pgalloc_tag_split() for the backing folio. Doing that fixes the problem,
but I'm not sure it's the cleanest way to fix things - arguably we shouldn't be
allocating compound folios for the backing store anyway.
- Alistair
> Thanks,
> Zenghui
next prev parent reply other threads:[~2026-05-12 6:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-06 15:42 "alloc_tag was not set" when running mm/ksft_hmm.sh Zenghui Yu
2026-05-08 11:53 ` David Hildenbrand (Arm)
2026-05-08 16:35 ` Alistair Popple
2026-05-11 12:19 ` Zenghui Yu
2026-05-11 12:47 ` David Hildenbrand (Arm)
2026-05-11 16:38 ` Zenghui Yu
2026-05-12 1:05 ` Zenghui Yu
2026-05-12 6:40 ` Alistair Popple [this message]
2026-05-12 1:28 ` Alistair Popple
2026-05-12 6:47 ` David Hildenbrand (Arm)
2026-05-12 7:46 ` Alistair Popple
2026-05-12 7:51 ` David Hildenbrand (Arm)
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=agLLCAHbkoXI8mr5@nvdebian.thelocal \
--to=apopple@nvidia.com \
--cc=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=jgg@ziepe.ca \
--cc=leon@kernel.org \
--cc=liam@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=mhocko@suse.com \
--cc=rppt@kernel.org \
--cc=surenb@google.com \
--cc=vbabka@kernel.org \
--cc=yuzenghui@huawei.com \
--cc=zenghui.yu@linux.dev \
/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