Skip to content

Commit cf02ce7

Browse files
stkidtsbogend
authored andcommitted
MIPS: Fix PKMAP with 32-bit MIPS huge page support
When 32-bit MIPS huge page support is enabled, we halve the number of pointers a PTE page holds, making its last half go to waste. Correspondingly, we should halve the number of kmap entries, as we just initialized only a single pte table for that in pagetable_init(). Fixes: 3547631 ("MIPS: Add partial 32-bit huge page support") Signed-off-by: Wei Li <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 34c522a commit cf02ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/include/asm/highmem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ extern pte_t *pkmap_page_table;
3636
* easily, subsequent pte tables have to be allocated in one physical
3737
* chunk of RAM.
3838
*/
39-
#ifdef CONFIG_PHYS_ADDR_T_64BIT
39+
#if defined(CONFIG_PHYS_ADDR_T_64BIT) || defined(CONFIG_MIPS_HUGE_TLB_SUPPORT)
4040
#define LAST_PKMAP 512
4141
#else
4242
#define LAST_PKMAP 1024

0 commit comments

Comments
 (0)