File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1411,13 +1411,12 @@ config PAGE_SIZE_4KB
14111411
14121412config PAGE_SIZE_8KB
14131413 bool "8kB"
1414- depends on EXPERIMENTAL && CPU_R8000
1414+ depends on ( EXPERIMENTAL && CPU_R8000) || CPU_CAVIUM_OCTEON
14151415 help
14161416 Using 8kB page size will result in higher performance kernel at
14171417 the price of higher memory consumption. This option is available
1418- only on the R8000 processor. Not that at the time of this writing
1419- this option is still high experimental; there are also issues with
1420- compatibility of user applications.
1418+ only on R8000 and cnMIPS processors. Note that you will need a
1419+ suitable Linux distribution to support this.
14211420
14221421config PAGE_SIZE_16KB
14231422 bool "16kB"
@@ -1428,6 +1427,15 @@ config PAGE_SIZE_16KB
14281427 all non-R3000 family processors. Note that you will need a suitable
14291428 Linux distribution to support this.
14301429
1430+ config PAGE_SIZE_32KB
1431+ bool "32kB"
1432+ depends on CPU_CAVIUM_OCTEON
1433+ help
1434+ Using 32kB page size will result in higher performance kernel at
1435+ the price of higher memory consumption. This option is available
1436+ only on cnMIPS cores. Note that you will need a suitable Linux
1437+ distribution to support this.
1438+
14311439config PAGE_SIZE_64KB
14321440 bool "64kB"
14331441 depends on EXPERIMENTAL && !CPU_R3000 && !CPU_TX39XX
Original file line number Diff line number Diff line change 184184#else
185185
186186#define PM_4K 0x00000000
187+ #define PM_8K 0x00002000
187188#define PM_16K 0x00006000
189+ #define PM_32K 0x0000e000
188190#define PM_64K 0x0001e000
191+ #define PM_128K 0x0003e000
189192#define PM_256K 0x0007e000
193+ #define PM_512K 0x000fe000
190194#define PM_1M 0x001fe000
195+ #define PM_2M 0x003fe000
191196#define PM_4M 0x007fe000
197+ #define PM_8M 0x00ffe000
192198#define PM_16M 0x01ffe000
199+ #define PM_32M 0x03ffe000
193200#define PM_64M 0x07ffe000
194201#define PM_256M 0x1fffe000
195202#define PM_1G 0x7fffe000
201208 */
202209#ifdef CONFIG_PAGE_SIZE_4KB
203210#define PM_DEFAULT_MASK PM_4K
211+ #elif defined(CONFIG_PAGE_SIZE_8KB )
212+ #define PM_DEFAULT_MASK PM_8K
204213#elif defined(CONFIG_PAGE_SIZE_16KB )
205214#define PM_DEFAULT_MASK PM_16K
215+ #elif defined(CONFIG_PAGE_SIZE_32KB )
216+ #define PM_DEFAULT_MASK PM_32K
206217#elif defined(CONFIG_PAGE_SIZE_64KB )
207218#define PM_DEFAULT_MASK PM_64K
208219#else
Original file line number Diff line number Diff line change 2323#ifdef CONFIG_PAGE_SIZE_16KB
2424#define PAGE_SHIFT 14
2525#endif
26+ #ifdef CONFIG_PAGE_SIZE_32KB
27+ #define PAGE_SHIFT 15
28+ #endif
2629#ifdef CONFIG_PAGE_SIZE_64KB
2730#define PAGE_SHIFT 16
2831#endif
Original file line number Diff line number Diff line change 8383#define PMD_ORDER 0
8484#define PTE_ORDER 0
8585#endif
86+ #ifdef CONFIG_PAGE_SIZE_32KB
87+ #define PGD_ORDER 0
88+ #define PUD_ORDER aieeee_attempt_to_allocate_pud
89+ #define PMD_ORDER 0
90+ #define PTE_ORDER 0
91+ #endif
8692#ifdef CONFIG_PAGE_SIZE_64KB
8793#define PGD_ORDER 0
8894#define PUD_ORDER aieeee_attempt_to_allocate_pud
Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ register struct thread_info *__current_thread_info __asm__("$28");
7575#ifdef CONFIG_PAGE_SIZE_16KB
7676#define THREAD_SIZE_ORDER (0)
7777#endif
78+ #ifdef CONFIG_PAGE_SIZE_32KB
79+ #define THREAD_SIZE_ORDER (0)
80+ #endif
7881#ifdef CONFIG_PAGE_SIZE_64KB
7982#define THREAD_SIZE_ORDER (0)
8083#endif
Original file line number Diff line number Diff line change @@ -19,6 +19,15 @@ static inline const char *msk2str(unsigned int mask)
1919 case PM_16K : return "16kb" ;
2020 case PM_64K : return "64kb" ;
2121 case PM_256K : return "256kb" ;
22+ #ifdef CONFIG_CPU_CAVIUM_OCTEON
23+ case PM_8K : return "8kb" ;
24+ case PM_32K : return "32kb" ;
25+ case PM_128K : return "128kb" ;
26+ case PM_512K : return "512kb" ;
27+ case PM_2M : return "2Mb" ;
28+ case PM_8M : return "8Mb" ;
29+ case PM_32M : return "32Mb" ;
30+ #endif
2231#ifndef CONFIG_CPU_VR41XX
2332 case PM_1M : return "1Mb" ;
2433 case PM_4M : return "4Mb" ;
You can’t perform that action at this time.
0 commit comments