Skip to content

Commit

Permalink
ARM: 8642/1: LPAE: catch pending imprecise abort on unmask
Browse files Browse the repository at this point in the history
Asynchronous external abort is coded differently in DFSR with LPAE enabled.

Fixes: 9254970 "ARM: 8447/1: catch pending imprecise abort on unmask".
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Alexander Sverdlin authored and Russell King committed Jan 30, 2017
1 parent 90f92c6 commit 97a98ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,9 @@ static int __init early_abort_handler(unsigned long addr, unsigned int fsr,

void __init early_abt_enable(void)
{
fsr_info[22].fn = early_abort_handler;
fsr_info[FSR_FS_AEA].fn = early_abort_handler;
local_abt_enable();
fsr_info[22].fn = do_bad;
fsr_info[FSR_FS_AEA].fn = do_bad;
}

#ifndef CONFIG_ARM_LPAE
Expand Down
4 changes: 4 additions & 0 deletions arch/arm/mm/fault.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@
#define FSR_FS5_0 (0x3f)

#ifdef CONFIG_ARM_LPAE
#define FSR_FS_AEA 17

static inline int fsr_fs(unsigned int fsr)
{
return fsr & FSR_FS5_0;
}
#else
#define FSR_FS_AEA 22

static inline int fsr_fs(unsigned int fsr)
{
return (fsr & FSR_FS3_0) | (fsr & FSR_FS4) >> 6;
Expand Down

0 comments on commit 97a98ae

Please sign in to comment.