Skip to contentSkip to conversation

arm64/mm: define ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT

PATCH In review Ganesh Mahendran 2 participants 3 messages May 2, 2018 – May 4, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 arm64/mm: define ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT

Set ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT for arm64. This enables Speculative Page Fault handler.

---
This patch is on top of Laurent's v10 spf

---
 arch/arm64/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/Kconfig +1 -0
index eb2cf49..cd583a9 100644
@@ -144,6 +144,7 @@ config ARM64
 	select SPARSE_IRQ
 	select SYSCTL_EXCEPTION_TRACE
 	select THREAD_INFO_IN_TASK
+	select ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT if SMP
 	help
 	  ARM 64-bit (AArch64) Linux support.
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 2 lines · Ganesh Mahendran

Set ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT for arm64. This enables Speculative Page Fault handler.

Are there are tests for this? I'm really nervous about enabling it...

Will

Quoted 23 lines

---
This patch is on top of Laurent's v10 spf

---
 arch/arm64/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/Kconfig +1 -0
index eb2cf49..cd583a9 100644
@@ -144,6 +144,7 @@ config ARM64
 	select SPARSE_IRQ
 	select SYSCTL_EXCEPTION_TRACE
 	select THREAD_INFO_IN_TASK
+	select ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT if SMP
 	help
 	  ARM 64-bit (AArch64) Linux support.
 
Signature · 1 line
1.9.1
#2 lore raw

2018-05-02 20:23 GMT+08:00 Will Deacon <[email protected]>:

Quoted 5 lines · Ganesh Mahendran
Quoted 2 lines

Set ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT for arm64. This enables Speculative Page Fault handler.

Are there are tests for this? I'm really nervous about enabling it...

Hi, Will

I test the arm64 spf on Qcom SDM845 cpu with kernel 4.9.
It looks good for performance, and have not found stability issue yet.

Thanks.

Quoted 26 lines

Will

Quoted 23 lines

---
This patch is on top of Laurent's v10 spf

---
 arch/arm64/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/Kconfig +1 -1
index eb2cf49..cd583a9 100644
@@ -144,6 +144,7 @@ config ARM64
      select SPARSE_IRQ
      select SYSCTL_EXCEPTION_TRACE
      select THREAD_INFO_IN_TASK
+     select ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT if SMP
      help
        ARM 64-bit (AArch64) Linux support.
 
--

1.9.1