From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Bolle Subject: hexagon: CONFIG_PAGE_SIZE_1MB? Date: Sat, 17 May 2014 13:32:43 +0200 Message-ID: <1400326363.13824.8.camel@x220> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-hexagon-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Richard Kuo Cc: linux-hexagon@vger.kernel.org Richard, 0) There are two checks for CONFIG_PAGE_SIZE_1MB in Linux' hexagon code. But there's no Kconfig symbol PAGE_SIZE_1MB. 1) There are two trivial solutions to this issue: diff --git a/arch/hexagon/Kconfig b/arch/hexagon/Kconfig index 0fd6138f6203..fe3c235930a5 100644 --- a/arch/hexagon/Kconfig +++ b/arch/hexagon/Kconfig @@ -148,6 +148,9 @@ config PAGE_SIZE_64KB config PAGE_SIZE_256KB bool "256KB" +config PAGE_SIZE_1MB + bool "1MB" + endchoice source "mm/Kconfig" and diff --git a/arch/hexagon/include/asm/page.h b/arch/hexagon/include/asm/page.h index 93f5669b4aa1..7bcec3c0447c 100644 --- a/arch/hexagon/include/asm/page.h +++ b/arch/hexagon/include/asm/page.h @@ -45,11 +45,6 @@ #define HEXAGON_L1_PTE_SIZE __HVM_PDE_S_256KB #endif -#ifdef CONFIG_PAGE_SIZE_1MB -#define PAGE_SHIFT 20 -#define HEXAGON_L1_PTE_SIZE __HVM_PDE_S_1MB -#endif - /* * These should be defined in hugetlb.h, but apparently not. * "Huge" for us should be 4MB or 16MB, which are both represented diff --git a/arch/hexagon/include/asm/pgtable.h b/arch/hexagon/include/asm/pgtable.h index d8bd54fa431e..861a993afb7e 100644 --- a/arch/hexagon/include/asm/pgtable.h +++ b/arch/hexagon/include/asm/pgtable.h @@ -111,10 +111,6 @@ extern unsigned long zero_page_mask; #define PTRS_PER_PTE 16 #endif -#ifdef CONFIG_PAGE_SIZE_1MB -#define PTRS_PER_PTE 4 -#endif - /* Any bigger and the PTE disappears. */ #define pgd_ERROR(e) \ printk(KERN_ERR "%s:%d: bad pgd %08lx.\n", __FILE__, __LINE__,\ 2) Which trivial solution would you prefer? Paul Bolle