Skip to contentSkip to conversation

ARM: LPAE: catch pending imprecise abort on unmask

PATCH New Alexander Sverdlin 2 participants 2 messages Jan 17, 2017 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: LPAE: catch pending imprecise abort on unmask

Asynchronous external abort is coded differently in DFSR with LPAE enabled.

Fixes 9254970c "ARM: 8447/1: catch pending imprecise abort on unmask".
Cc Russell King <[email protected]>
Cc Andrew Morton <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
---
 arch/arm/mm/fault.c | 4 ++--
 arch/arm/mm/fault.h | 4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)
arch/arm/mm/fault.c +2 -2
index 3a2e678b8d30..0122ad1a6027 100644
@@ -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
arch/arm/mm/fault.h +4 -0
index 67532f242271..afc1f84e763b 100644
@@ -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;
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 ARM: LPAE: catch pending imprecise abort on unmask

Quoted 3 lines · Alexander Sverdlin

Asynchronous external abort is coded differently in DFSR with LPAE enabled.

Fixes 9254970c "ARM: 8447/1: catch pending imprecise abort on unmask".

Please drop it into the patch system, thanks.

Quoted 49 lines
Cc Russell King <[email protected]>
Cc Andrew Morton <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
---
 arch/arm/mm/fault.c | 4 ++--
 arch/arm/mm/fault.h | 4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)
arch/arm/mm/fault.c +2 -2
index 3a2e678b8d30..0122ad1a6027 100644
@@ -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
arch/arm/mm/fault.h +4 -0
index 67532f242271..afc1f84e763b 100644
@@ -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;
Signature · 1 line
2.11.0
Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.