forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'x86/mm' into efi/core, to pick up dependencies
Signed-off-by: Ingo Molnar <[email protected]>
- Loading branch information
Showing
67 changed files
with
797 additions
and
681 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_ALPHA_VMALLOC_H | ||
#define _ASM_ALPHA_VMALLOC_H | ||
|
||
#endif /* _ASM_ALPHA_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_ARC_VMALLOC_H | ||
#define _ASM_ARC_VMALLOC_H | ||
|
||
#endif /* _ASM_ARC_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_ARM_VMALLOC_H | ||
#define _ASM_ARM_VMALLOC_H | ||
|
||
#endif /* _ASM_ARM_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_ARM64_VMALLOC_H | ||
#define _ASM_ARM64_VMALLOC_H | ||
|
||
#endif /* _ASM_ARM64_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_C6X_VMALLOC_H | ||
#define _ASM_C6X_VMALLOC_H | ||
|
||
#endif /* _ASM_C6X_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_CSKY_VMALLOC_H | ||
#define _ASM_CSKY_VMALLOC_H | ||
|
||
#endif /* _ASM_CSKY_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_H8300_VMALLOC_H | ||
#define _ASM_H8300_VMALLOC_H | ||
|
||
#endif /* _ASM_H8300_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_HEXAGON_VMALLOC_H | ||
#define _ASM_HEXAGON_VMALLOC_H | ||
|
||
#endif /* _ASM_HEXAGON_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_IA64_VMALLOC_H | ||
#define _ASM_IA64_VMALLOC_H | ||
|
||
#endif /* _ASM_IA64_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_M68K_VMALLOC_H | ||
#define _ASM_M68K_VMALLOC_H | ||
|
||
#endif /* _ASM_M68K_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_MICROBLAZE_VMALLOC_H | ||
#define _ASM_MICROBLAZE_VMALLOC_H | ||
|
||
#endif /* _ASM_MICROBLAZE_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_MIPS_VMALLOC_H | ||
#define _ASM_MIPS_VMALLOC_H | ||
|
||
#endif /* _ASM_MIPS_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_NDS32_VMALLOC_H | ||
#define _ASM_NDS32_VMALLOC_H | ||
|
||
#endif /* _ASM_NDS32_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_NIOS2_VMALLOC_H | ||
#define _ASM_NIOS2_VMALLOC_H | ||
|
||
#endif /* _ASM_NIOS2_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_OPENRISC_VMALLOC_H | ||
#define _ASM_OPENRISC_VMALLOC_H | ||
|
||
#endif /* _ASM_OPENRISC_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_PARISC_VMALLOC_H | ||
#define _ASM_PARISC_VMALLOC_H | ||
|
||
#endif /* _ASM_PARISC_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_POWERPC_VMALLOC_H | ||
#define _ASM_POWERPC_VMALLOC_H | ||
|
||
#endif /* _ASM_POWERPC_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_RISCV_VMALLOC_H | ||
#define _ASM_RISCV_VMALLOC_H | ||
|
||
#endif /* _ASM_RISCV_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_S390_VMALLOC_H | ||
#define _ASM_S390_VMALLOC_H | ||
|
||
#endif /* _ASM_S390_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_SH_VMALLOC_H | ||
#define _ASM_SH_VMALLOC_H | ||
|
||
#endif /* _ASM_SH_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_SPARC_VMALLOC_H | ||
#define _ASM_SPARC_VMALLOC_H | ||
|
||
#endif /* _ASM_SPARC_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_UM_VMALLOC_H | ||
#define _ASM_UM_VMALLOC_H | ||
|
||
#endif /* _ASM_UM_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef _ASM_UNICORE32_VMALLOC_H | ||
#define _ASM_UNICORE32_VMALLOC_H | ||
|
||
#endif /* _ASM_UNICORE32_VMALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
#ifndef _ASM_X86_MEMTYPE_H | ||
#define _ASM_X86_MEMTYPE_H | ||
|
||
#include <linux/types.h> | ||
#include <asm/pgtable_types.h> | ||
|
||
extern bool pat_enabled(void); | ||
extern void pat_disable(const char *reason); | ||
extern void pat_init(void); | ||
extern void init_cache_modes(void); | ||
|
||
extern int memtype_reserve(u64 start, u64 end, | ||
enum page_cache_mode req_pcm, enum page_cache_mode *ret_pcm); | ||
extern int memtype_free(u64 start, u64 end); | ||
|
||
extern int memtype_kernel_map_sync(u64 base, unsigned long size, | ||
enum page_cache_mode pcm); | ||
|
||
extern int memtype_reserve_io(resource_size_t start, resource_size_t end, | ||
enum page_cache_mode *pcm); | ||
|
||
extern void memtype_free_io(resource_size_t start, resource_size_t end); | ||
|
||
extern bool pat_pfn_immune_to_uc_mtrr(unsigned long pfn); | ||
|
||
#endif /* _ASM_X86_MEMTYPE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#ifndef _ASM_X86_PGTABLE_32_AREAS_H | ||
#define _ASM_X86_PGTABLE_32_AREAS_H | ||
|
||
#include <asm/cpu_entry_area.h> | ||
|
||
/* | ||
* Just any arbitrary offset to the start of the vmalloc VM area: the | ||
* current 8MB value just means that there will be a 8MB "hole" after the | ||
* physical memory until the kernel virtual memory starts. That means that | ||
* any out-of-bounds memory accesses will hopefully be caught. | ||
* The vmalloc() routines leaves a hole of 4kB between each vmalloced | ||
* area for the same reason. ;) | ||
*/ | ||
#define VMALLOC_OFFSET (8 * 1024 * 1024) | ||
|
||
#ifndef __ASSEMBLY__ | ||
extern bool __vmalloc_start_set; /* set once high_memory is set */ | ||
#endif | ||
|
||
#define VMALLOC_START ((unsigned long)high_memory + VMALLOC_OFFSET) | ||
#ifdef CONFIG_X86_PAE | ||
#define LAST_PKMAP 512 | ||
#else | ||
#define LAST_PKMAP 1024 | ||
#endif | ||
|
||
#define CPU_ENTRY_AREA_PAGES (NR_CPUS * DIV_ROUND_UP(sizeof(struct cpu_entry_area), PAGE_SIZE)) | ||
|
||
/* The +1 is for the readonly IDT page: */ | ||
#define CPU_ENTRY_AREA_BASE \ | ||
((FIXADDR_TOT_START - PAGE_SIZE*(CPU_ENTRY_AREA_PAGES+1)) & PMD_MASK) | ||
|
||
#define LDT_BASE_ADDR \ | ||
((CPU_ENTRY_AREA_BASE - PAGE_SIZE) & PMD_MASK) | ||
|
||
#define LDT_END_ADDR (LDT_BASE_ADDR + PMD_SIZE) | ||
|
||
#define PKMAP_BASE \ | ||
((LDT_BASE_ADDR - PAGE_SIZE) & PMD_MASK) | ||
|
||
#ifdef CONFIG_HIGHMEM | ||
# define VMALLOC_END (PKMAP_BASE - 2 * PAGE_SIZE) | ||
#else | ||
# define VMALLOC_END (LDT_BASE_ADDR - 2 * PAGE_SIZE) | ||
#endif | ||
|
||
#define MODULES_VADDR VMALLOC_START | ||
#define MODULES_END VMALLOC_END | ||
#define MODULES_LEN (MODULES_VADDR - MODULES_END) | ||
|
||
#define MAXMEM (VMALLOC_END - PAGE_OFFSET - __VMALLOC_RESERVE) | ||
|
||
#endif /* _ASM_X86_PGTABLE_32_AREAS_H */ |
Oops, something went wrong.