[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260111074453.66728-1-pilgrimtao@gmail.com>
Date: Sun, 11 Jan 2026 15:44:51 +0800
From: chengkaitao <pilgrimtao@...il.com>
To: davem@...emloft.net,
andreas@...sler.com,
akpm@...ux-foundation.org,
david@...nel.org,
lorenzo.stoakes@...cle.com,
Liam.Howlett@...cle.com,
vbabka@...e.cz,
rppt@...nel.org,
surenb@...gle.com,
mhocko@...e.com
Cc: kevin.brodsky@....com,
dave.hansen@...ux.intel.com,
ziy@...dia.com,
chengkaitao@...inos.cn,
willy@...radead.org,
zhengqi.arch@...edance.com,
sparclinux@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-mm@...ck.org,
chengkaitao <pilgrimtao@...il.com>
Subject: [PATCH v5 0/2] Generalize vmemmap_populate_hugepages to sparc
Change sparc's implementation of vmemmap_populate() using
vmemmap_populate_hugepages() to streamline the code. Another
benefit is that it allows us to eliminate the external declarations
of vmemmap_p?d_populate functions and convert them to static functions.
Since vmemmap_populate_hugepages may fallback to vmemmap_populate-
_basepages, which differs from sparc's original implementation.
During the v1 discussion with Mike Rapoport, sparc uses base pages
in the kernel page tables, so it should be able to use them in
vmemmap as well. Consequently, no additional special handling is
required.
Remove unnecessary whitespace from sparc.
Changes in v5:
- remove [PATCH v4 3/3] sparc: Remove unnecessary whitespace
Changes in v4:
- Add commit message
- Add verification that pmd actually maps a large page in the
vmemmap_check_pmd function
Changes in v3:
- Allow sparc to fallback to vmemmap_populate_basepages
- Convert vmemmap_p?d_populate() to static functions
- Split the v1 patch
Changes in v2:
- Revert the whitespace deletions
- Change vmemmap_false_pmd to vmemmap_pte_fallback_allowed
Link to V4:
https://lore.kernel.org/all/20251219115812.65855-1-pilgrimtao@gmail.com/
Link to V3:
https://lore.kernel.org/all/20251218174749.45965-1-pilgrimtao@gmail.com/
Link to V2:
https://lore.kernel.org/all/20251218130957.36892-1-pilgrimtao@gmail.com/
Link to V1:
https://lore.kernel.org/all/20251217120858.18713-1-pilgrimtao@gmail.com/
Chengkaitao (2):
sparc: Use vmemmap_populate_hugepages for vmemmap_populate
mm: Convert vmemmap_p?d_populate() to static functions
arch/sparc/mm/init_64.c | 47 ++++++++++++++---------------------------
include/linux/mm.h | 7 ------
mm/sparse-vmemmap.c | 10 ++++-----
3 files changed, 21 insertions(+), 43 deletions(-)
--
2.50.1 (Apple Git-155)
Powered by blists - more mailing lists