[PATCH] ARM: mm: Enable PXN when running non-LPAE kernel on LPAE processor

Catalin Marinas catalin.marinas at arm.com
Wed Dec 24 09:20:38 PST 2014


On Wed, Dec 24, 2014 at 03:54:28PM +0000, Ben Hutchings wrote:
> The VMSA field of MMFR0 (bottom 4 bits) is incremented for each
> added feature.  PXN is supported if the value is >= 4 and LPAE
> is supported if it is >= 5.
> 
> In case a kernel with CONFIG_ARM_LPAE disabled is used on a
> processor that supports LPAE, we can still use PXN in short
> descriptors.  So check for >= 4 not == 4.
> 
> Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
> Cc: Jungseung Lee <js07.lee at gmail.com>
> Cc: Catalin Marinas <catalin.marinas at arm.com>

Acked-by: Catalin Marinas <catalin.marinas at arm.com>



More information about the linux-arm-kernel mailing list