All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] x86/mm: some cleanups for pagetable setup code
@ 2026-06-24 12:32 Brendan Jackman
  2026-06-24 12:32 ` [PATCH v3 1/4] x86/mm: drop unused return from init_memory_mapping() Brendan Jackman
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Brendan Jackman @ 2026-06-24 12:32 UTC (permalink / raw)
  To: Ingo Molnar, Borislav Petkov, Dave Hansen, x86, H. Peter Anvin,
	Andy Lutomirski, Peter Zijlstra, Thomas Gleixner, Marcel Busch,
	brendan.jackman
  Cc: linux-kernel, Brendan Jackman

Per discussion in [0] I'm looking for ways to refactor this code to make
ASI easier to deal with. But, while looking, I found some little things
that seem like just straightforward cleanups without any real
refactoring needed. So let's start there.

This applies to tip/master.

I'm having some infra issues so this hasn't been through Sashiko review
yet. I've tested it on QEMU. 

[0] https://lore.kernel.org/all/20250924-b4-asi-page-alloc-v1-0-2d861768041f@google.com/T/#t

Signed-off-by: Brendan Jackman <jackmanb@google.com>
---
Changes in v3:
- Rebased, added trailers.
- Tweaked commit messages / comments.
- Cleaned up paddr_last assignment.
- Added trivial split_mem_range() patch.
- Link to v2: https://lore.kernel.org/r/20260503-x86-init-cleanup-v2-0-bb690bd2477c@google.com

Changes in v2:
- Simplified patchset, instead of trying to fix confusing code only to
  delete it in a subsequent patch, just delete it in the first place.
- Fixed add_pfn_range_mapped() args. (This bug causes a KASAN build to
  crash during boot).
- Link to v1: https://lore.kernel.org/r/20251003-x86-init-cleanup-v1-0-f2b7994c2ad6@google.com

---
Brendan Jackman (4):
      x86/mm: drop unused return from init_memory_mapping()
      x86/mm: simplify calculation of max_pfn_mapped
      x86/mm: drop unused returns from direct map setup functions
      x86/mm: delete unnecessary arg from split_mem_range()

 arch/x86/include/asm/pgtable.h |  3 +-
 arch/x86/mm/init.c             | 23 +++++-----
 arch/x86/mm/init_32.c          |  5 +--
 arch/x86/mm/init_64.c          | 96 +++++++++++++++---------------------------
 arch/x86/mm/mm_internal.h      | 11 ++---
 5 files changed, 51 insertions(+), 87 deletions(-)
---
base-commit: d74eecbb5ded9fe16e36ee49b00a74e3a81d042b
change-id: 20251003-x86-init-cleanup-0ad754910bac

Best regards,
--  
Brendan Jackman <jackmanb@google.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-07-10 11:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-24 12:32 [PATCH v3 0/4] x86/mm: some cleanups for pagetable setup code Brendan Jackman
2026-06-24 12:32 ` [PATCH v3 1/4] x86/mm: drop unused return from init_memory_mapping() Brendan Jackman
2026-06-24 12:32 ` [PATCH v3 2/4] x86/mm: simplify calculation of max_pfn_mapped Brendan Jackman
2026-06-24 12:32 ` [PATCH v3 3/4] x86/mm: drop unused returns from direct map setup functions Brendan Jackman
2026-06-24 12:32 ` [PATCH v3 4/4] x86/mm: delete unnecessary arg from split_mem_range() Brendan Jackman
2026-07-10 11:40 ` [PATCH v3 0/4] x86/mm: some cleanups for pagetable setup code Brendan Jackman

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.