diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2013-09-11 13:57:15 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2013-09-13 11:15:24 -0400 |
commit | 4b12909fd137d9a236e4b5c76e0d4b44c2b7f49f (patch) | |
tree | ac84a6bd0165b927a7ce6094df3c4df5acb36b10 | |
parent | 8629470ef89da00bd1b974df17ccbb36b3865798 (diff) |
tile: remove HUGE_VMAP dead code
A config option to allow a variant vmap() using huge pages that was never
upstreamed had some bits of code related to it scattered around the tile
architecture; the config option was removed downstream and this commit
cleans up the scattered evidence of it from the upstream as well.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
-rw-r--r-- | arch/tile/include/asm/page.h | 5 | ||||
-rw-r--r-- | arch/tile/include/asm/pgtable_32.h | 12 | ||||
-rw-r--r-- | arch/tile/include/asm/pgtable_64.h | 4 | ||||
-rw-r--r-- | arch/tile/kernel/setup.c | 3 | ||||
-rw-r--r-- | arch/tile/mm/fault.c | 2 | ||||
-rw-r--r-- | arch/tile/mm/init.c | 4 |
6 files changed, 6 insertions, 24 deletions
diff --git a/arch/tile/include/asm/page.h b/arch/tile/include/asm/page.h index 6346888f7bdc..672768008618 100644 --- a/arch/tile/include/asm/page.h +++ b/arch/tile/include/asm/page.h | |||
@@ -182,10 +182,9 @@ static inline __attribute_const__ int get_order(unsigned long size) | |||
182 | 182 | ||
183 | #define PAGE_OFFSET (-(_AC(1, UL) << (MAX_VA_WIDTH - 1))) | 183 | #define PAGE_OFFSET (-(_AC(1, UL) << (MAX_VA_WIDTH - 1))) |
184 | #define KERNEL_HIGH_VADDR _AC(0xfffffff800000000, UL) /* high 32GB */ | 184 | #define KERNEL_HIGH_VADDR _AC(0xfffffff800000000, UL) /* high 32GB */ |
185 | #define FIXADDR_BASE (KERNEL_HIGH_VADDR - 0x400000000) /* 4 GB */ | 185 | #define FIXADDR_BASE (KERNEL_HIGH_VADDR - 0x300000000) /* 4 GB */ |
186 | #define FIXADDR_TOP (KERNEL_HIGH_VADDR - 0x300000000) /* 4 GB */ | 186 | #define FIXADDR_TOP (KERNEL_HIGH_VADDR - 0x200000000) /* 4 GB */ |
187 | #define _VMALLOC_START FIXADDR_TOP | 187 | #define _VMALLOC_START FIXADDR_TOP |
188 | #define HUGE_VMAP_BASE (KERNEL_HIGH_VADDR - 0x200000000) /* 4 GB */ | ||
189 | #define MEM_SV_START (KERNEL_HIGH_VADDR - 0x100000000) /* 256 MB */ | 188 | #define MEM_SV_START (KERNEL_HIGH_VADDR - 0x100000000) /* 256 MB */ |
190 | #define MEM_MODULE_START (MEM_SV_START + (256*1024*1024)) /* 256 MB */ | 189 | #define MEM_MODULE_START (MEM_SV_START + (256*1024*1024)) /* 256 MB */ |
191 | #define MEM_MODULE_END (MEM_MODULE_START + (256*1024*1024)) | 190 | #define MEM_MODULE_END (MEM_MODULE_START + (256*1024*1024)) |
diff --git a/arch/tile/include/asm/pgtable_32.h b/arch/tile/include/asm/pgtable_32.h index 63142ab3b3dd..d26a42279036 100644 --- a/arch/tile/include/asm/pgtable_32.h +++ b/arch/tile/include/asm/pgtable_32.h | |||
@@ -55,17 +55,9 @@ | |||
55 | #define PKMAP_BASE ((FIXADDR_BOOT_START - PAGE_SIZE*LAST_PKMAP) & PGDIR_MASK) | 55 | #define PKMAP_BASE ((FIXADDR_BOOT_START - PAGE_SIZE*LAST_PKMAP) & PGDIR_MASK) |
56 | 56 | ||
57 | #ifdef CONFIG_HIGHMEM | 57 | #ifdef CONFIG_HIGHMEM |
58 | # define __VMAPPING_END (PKMAP_BASE & ~(HPAGE_SIZE-1)) | 58 | # define _VMALLOC_END (PKMAP_BASE & ~(HPAGE_SIZE-1)) |
59 | #else | 59 | #else |
60 | # define __VMAPPING_END (FIXADDR_START & ~(HPAGE_SIZE-1)) | 60 | # define _VMALLOC_END (FIXADDR_START & ~(HPAGE_SIZE-1)) |
61 | #endif | ||
62 | |||
63 | #ifdef CONFIG_HUGEVMAP | ||
64 | #define HUGE_VMAP_END __VMAPPING_END | ||
65 | #define HUGE_VMAP_BASE (HUGE_VMAP_END - CONFIG_NR_HUGE_VMAPS * HPAGE_SIZE) | ||
66 | #define _VMALLOC_END HUGE_VMAP_BASE | ||
67 | #else | ||
68 | #define _VMALLOC_END __VMAPPING_END | ||
69 | #endif | 61 | #endif |
70 | 62 | ||
71 | /* | 63 | /* |
diff --git a/arch/tile/include/asm/pgtable_64.h b/arch/tile/include/asm/pgtable_64.h index 3421177f7370..2c8a9cd102d3 100644 --- a/arch/tile/include/asm/pgtable_64.h +++ b/arch/tile/include/asm/pgtable_64.h | |||
@@ -52,12 +52,10 @@ | |||
52 | * memory allocation code). The vmalloc code puts in an internal | 52 | * memory allocation code). The vmalloc code puts in an internal |
53 | * guard page between each allocation. | 53 | * guard page between each allocation. |
54 | */ | 54 | */ |
55 | #define _VMALLOC_END HUGE_VMAP_BASE | 55 | #define _VMALLOC_END MEM_SV_START |
56 | #define VMALLOC_END _VMALLOC_END | 56 | #define VMALLOC_END _VMALLOC_END |
57 | #define VMALLOC_START _VMALLOC_START | 57 | #define VMALLOC_START _VMALLOC_START |
58 | 58 | ||
59 | #define HUGE_VMAP_END (HUGE_VMAP_BASE + PGDIR_SIZE) | ||
60 | |||
61 | #ifndef __ASSEMBLY__ | 59 | #ifndef __ASSEMBLY__ |
62 | 60 | ||
63 | /* We have no pud since we are a three-level page table. */ | 61 | /* We have no pud since we are a three-level page table. */ |
diff --git a/arch/tile/kernel/setup.c b/arch/tile/kernel/setup.c index 4c34caea9dd3..74c91729a62a 100644 --- a/arch/tile/kernel/setup.c +++ b/arch/tile/kernel/setup.c | |||
@@ -1268,8 +1268,7 @@ static void __init validate_va(void) | |||
1268 | if ((long)VMALLOC_START >= 0) | 1268 | if ((long)VMALLOC_START >= 0) |
1269 | early_panic( | 1269 | early_panic( |
1270 | "Linux VMALLOC region below the 2GB line (%#lx)!\n" | 1270 | "Linux VMALLOC region below the 2GB line (%#lx)!\n" |
1271 | "Reconfigure the kernel with fewer NR_HUGE_VMAPS\n" | 1271 | "Reconfigure the kernel with smaller VMALLOC_RESERVE.\n", |
1272 | "or smaller VMALLOC_RESERVE.\n", | ||
1273 | VMALLOC_START); | 1272 | VMALLOC_START); |
1274 | #endif | 1273 | #endif |
1275 | } | 1274 | } |
diff --git a/arch/tile/mm/fault.c b/arch/tile/mm/fault.c index 4c288f199453..6c0571216a9d 100644 --- a/arch/tile/mm/fault.c +++ b/arch/tile/mm/fault.c | |||
@@ -149,8 +149,6 @@ static inline int vmalloc_fault(pgd_t *pgd, unsigned long address) | |||
149 | pmd_k = vmalloc_sync_one(pgd, address); | 149 | pmd_k = vmalloc_sync_one(pgd, address); |
150 | if (!pmd_k) | 150 | if (!pmd_k) |
151 | return -1; | 151 | return -1; |
152 | if (pmd_huge(*pmd_k)) | ||
153 | return 0; /* support TILE huge_vmap() API */ | ||
154 | pte_k = pte_offset_kernel(pmd_k, address); | 152 | pte_k = pte_offset_kernel(pmd_k, address); |
155 | if (!pte_present(*pte_k)) | 153 | if (!pte_present(*pte_k)) |
156 | return -1; | 154 | return -1; |
diff --git a/arch/tile/mm/init.c b/arch/tile/mm/init.c index 4e316deb92fd..0fa1acfac79a 100644 --- a/arch/tile/mm/init.c +++ b/arch/tile/mm/init.c | |||
@@ -828,10 +828,6 @@ void __init mem_init(void) | |||
828 | printk(KERN_DEBUG " PKMAP %#lx - %#lx\n", | 828 | printk(KERN_DEBUG " PKMAP %#lx - %#lx\n", |
829 | PKMAP_BASE, PKMAP_ADDR(LAST_PKMAP) - 1); | 829 | PKMAP_BASE, PKMAP_ADDR(LAST_PKMAP) - 1); |
830 | #endif | 830 | #endif |
831 | #ifdef CONFIG_HUGEVMAP | ||
832 | printk(KERN_DEBUG " HUGEMAP %#lx - %#lx\n", | ||
833 | HUGE_VMAP_BASE, HUGE_VMAP_END - 1); | ||
834 | #endif | ||
835 | printk(KERN_DEBUG " VMALLOC %#lx - %#lx\n", | 831 | printk(KERN_DEBUG " VMALLOC %#lx - %#lx\n", |
836 | _VMALLOC_START, _VMALLOC_END - 1); | 832 | _VMALLOC_START, _VMALLOC_END - 1); |
837 | #ifdef __tilegx__ | 833 | #ifdef __tilegx__ |