All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Down <chris@chrisdown.name>
To: Muchun Song <songmuchun@bytedance.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Mike Rapoport <rppt@kernel.org>,
	Madhavan Srinivasan <maddy@linux.ibm.com>,
	Muchun Song <muchun.song@linux.dev>,
	David Hildenbrand <david@kernel.org>,
	Michael Ellerman <mpe@ellerman.id.au>,
	Ritesh Harjani <ritesh.list@gmail.com>,
	"Aneesh Kumar K . V" <aneesh.kumar@linux.ibm.com>,
	Pavithra Prakash <pavrampu@linux.ibm.com>,
	Lance Yang <lance.yang@linux.dev>, Qi Zheng <qi.zheng@linux.dev>,
	linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 3/7] mm/sparse-vmemmap: introduce vmemmap_optimizable_pte_populate
Date: Wed, 02 Dec 2026 14:56:10 -0800	[thread overview]
Message-ID: <axCiCut6xqnljRq7@chrisdown.name> (raw)
In-Reply-To: <20261201115651.3400202-4-songmuchun@bytedance.com>

Hi Muchun,

Muchun Song writes:
>+	if (!pte_none(entry))
>+		return pte_page(entry) == page ? 0 : -EOPNOTSUPP;

Not a big deal, but the old code warned when it found a populated PTE in
the shared tail range, and now a PTE pointing at some other page fails
silently. vmemmap_populate_basepages() turns every error into -ENOMEM, so
all one sees is a failed hot-add with no real direction on why that
happened.

Maybe keep a WARN_ON_ONCE() for a PTE that points at another page?

Thanks,

Chris


  reply	other threads:[~2026-12-02 22:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 11:56 [PATCH 0/7] mm: Generalize HVO vmemmap population Muchun Song
2026-12-01 11:56 ` [PATCH 1/7] mm/sparse-vmemmap: use page-table constructors for runtime tables Muchun Song
2026-12-02 13:35   ` Lance Yang
2026-12-01 11:56 ` [PATCH 2/7] mm/sparse-vmemmap: align page-table helpers with core MM Muchun Song
2026-12-02 13:55   ` Lance Yang
2026-12-01 11:56 ` [PATCH 3/7] mm/sparse-vmemmap: introduce vmemmap_optimizable_pte_populate Muchun Song
2026-12-02 22:56   ` Chris Down [this message]
2026-12-01 11:56 ` [PATCH 4/7] mm/sparse-vmemmap: support PMD mappings spanning sections Muchun Song
2026-12-01 11:56 ` [PATCH 5/7] powerpc/mm: fix uninitialized ZONE_DEVICE struct pages with PMDs Muchun Song
2026-12-01 11:56 ` [PATCH 6/7] powerpc/mm: remove radix-specific vmemmap PMD overrides Muchun Song
2026-12-01 11:56 ` [PATCH 7/7] powerpc/mm: reuse generic HVO vmemmap population Muchun Song
2026-12-02 22:56 ` [PATCH 0/7] mm: Generalize " Chris Down

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=axCiCut6xqnljRq7@chrisdown.name \
    --to=chris@chrisdown.name \
    --cc=akpm@linux-foundation.org \
    --cc=aneesh.kumar@linux.ibm.com \
    --cc=david@kernel.org \
    --cc=lance.yang@linux.dev \
    --cc=linux-mm@kvack.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=maddy@linux.ibm.com \
    --cc=mpe@ellerman.id.au \
    --cc=muchun.song@linux.dev \
    --cc=pavrampu@linux.ibm.com \
    --cc=qi.zheng@linux.dev \
    --cc=ritesh.list@gmail.com \
    --cc=rppt@kernel.org \
    --cc=songmuchun@bytedance.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.