LPAE can be enabled with non-LPAE capable CPUs
Catalin,
The latest OMAP randconfig kautobuildv2 build has found the following issue:
arch/arm/mm/proc-v6.S:124: Error: unrecognized relocation suffix arch/arm/mm/proc-v6.S:124: Error: unrecognized relocation suffix arch/arm/mm/proc-v6.S:124: Error: unrecognized relocation suffix arch/arm/mm/proc-v6.S:124: Error: unrecognized relocation suffix
The config file indicates:
CONFIG_CPU_V6=yCONFIG_CPU_V7=yCONFIG_ARM_LPAE=y
As V6 CPUs don't support LPAE, this is an invalid configuration, which suggests that the constraints within Kconfig are insufficient for LPAE. Should ARM_LPAE depend on CPU_V7 && !CPU_32v6 && !CPU_32v5 && !CPU_32v4T && !CPU_32v4 && !CPU_32v3 ?
Quoted 9 lines · Russell King - ARM Linux
The latest OMAP randconfig kautobuildv2 build has found the following issue:
arch/arm/mm/proc-v6.S:124: Error: unrecognized relocation suffixarch/arm/mm/proc-v6.S:124: Error: unrecognized relocation suffixarch/arm/mm/proc-v6.S:124: Error: unrecognized relocation suffixarch/arm/mm/proc-v6.S:124: Error: unrecognized relocation suffixThe config file indicates:
Quoted 8 lines
CONFIG_CPU_V6=yCONFIG_CPU_V7=yCONFIG_ARM_LPAE=yAs V6 CPUs don't support LPAE, this is an invalid configuration, which suggests that the constraints within
Kconfigare insufficient for LPAE. ShouldARM_LPAEdepend onCPU_V7&& !CPU_32v6 && !CPU_32v5 && !CPU_32v4T && !CPU_32v4 && !CPU_32v3 ?
It makes sense. Something like this, unless you've already done it (I also changed to CPU_32v7 for consistency):
commit d8d34065edfdc1b81f6e3886e15b5c2b2bd30b4e
Author: Catalin Marinas <[email protected]> Date: Tue Feb 14 12:12:58 2012 +0000
ARM: Do not allow ARM_LPAE on pre-ARMv7 architectures
This patch expands the Kconfig dependencies for ARM_LPAE to not allow enabling when architectures other than ARMv7 are built into the kernel.
arch/arm/mm/Kconfig +2 -1
@@ -631,7 +631,8 @@ comment "Processor Features" config ARM_LPAE bool "Support for the Large Physical Address Extension" - depends on MMU && CPU_V7 + depends on MMU && CPU_32v7 && !CPU_32v6 && !CPU_32v5 && \ + !CPU_32v4 && !CPU_32v3 help Say Y if you have an ARMv7 processor supporting the LPAE page table format and you would like to access memory beyond the
Signature · 1 line
Catalin
Quoted 2 lines · Catalin Marinas
It makes sense. Something like this, unless you've already done it (I also changed to
CPU_32v7for consistency):
Looks good, please put it in the patch system, thanks.
Quoted 30 lines
commit
d8d34065edfdc1b81f6e3886e15b5c2b2bd30b4eAuthor: Catalin Marinas <[email protected]> Date: Tue Feb 14 12:12:58 2012 +0000ARM: Do not allow
ARM_LPAEon pre-ARMv7 architecturesThis patch expands the
Kconfigdependencies forARM_LPAEto not allow enabling when architectures other than ARMv7 are built into the kernel.Signed-off-by Catalin Marinas <[email protected]>Reported-by Russell King <[email protected]>arch/arm/mm/Kconfig +2
-1@@ -631,7 +631,8 @@ comment "Processor Features" config ARM_LPAE bool "Support for the Large Physical Address Extension" - depends on MMU && CPU_V7 + depends on MMU && CPU_32v7 && !CPU_32v6 && !CPU_32v5 && \ + !CPU_32v4 && !CPU_32v3 help Say Y if you have an ARMv7 processor supporting the LPAE page table format and you would like to access memory beyond theSignature · 2 lines
-- Catalin