]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge branch 'x86/mm' into x86/core, to resolve conflicts
authorIngo Molnar <mingo@kernel.org>
Tue, 13 May 2025 08:39:22 +0000 (10:39 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 13 May 2025 08:39:22 +0000 (10:39 +0200)
 Conflicts:
arch/x86/mm/numa.c
arch/x86/mm/pgtable.c

Signed-off-by: Ingo Molnar <mingo@kernel.org>
1  2 
arch/x86/kernel/process.c
arch/x86/mm/Makefile
arch/x86/mm/numa.c
arch/x86/mm/pgtable.c
arch/x86/mm/tlb.c

Simple merge
Simple merge
index fed02d1073c782ac2196d099c326875b288db2ed,4bf04be29355ff2b7bfce534d619b6e86c1eafb1..c24890c40138f84a3b900285f7d08d0c1da153cc
  #include <asm/e820/api.h>
  #include <asm/proto.h>
  #include <asm/dma.h>
 -#include <asm/amd_nb.h>
+ #include <asm/numa.h>
 +#include <asm/amd/nb.h>
  
- #include "numa_internal.h"
+ #include "mm_internal.h"
  
  int numa_off;
  
index e62af72923e8f531d1752137f7a166dfc5f0a5f6,c1144e2f24e29ec0479db05b7ba7ddd24112374e..7c253deb46e9af0752bca9603a706faec4706dc3
@@@ -357,31 -305,12 +306,12 @@@ static void pgd_prepopulate_user_pmd(st
  static inline pgd_t *_pgd_alloc(struct mm_struct *mm)
  {
        /*
-        * If no SHARED_KERNEL_PMD, PAE kernel is running as a Xen domain.
-        * We allocate one page for pgd.
-        */
-       if (!SHARED_KERNEL_PMD)
-               return __pgd_alloc(mm, pgd_allocation_order());
-       /*
-        * Now PAE kernel is not running as a Xen domain. We can allocate
-        * a 32-byte slab for pgd to save memory space.
+        * PTI and Xen need a whole page for the PAE PGD
+        * even though the hardware only needs 32 bytes.
+        *
+        * For simplicity, allocate a page for all users.
         */
-       return kmem_cache_alloc(pgd_cache, GFP_PGTABLE_USER);
- }
- static inline void _pgd_free(struct mm_struct *mm, pgd_t *pgd)
- {
-       if (!SHARED_KERNEL_PMD)
-               __pgd_free(mm, pgd);
-       else
-               kmem_cache_free(pgd_cache, pgd);
- }
- #else
- static inline pgd_t *_pgd_alloc(struct mm_struct *mm)
- {
 -      return __pgd_alloc(mm, PGD_ALLOCATION_ORDER);
 +      return __pgd_alloc(mm, pgd_allocation_order());
  }
  
  static inline void _pgd_free(struct mm_struct *mm, pgd_t *pgd)
Simple merge