arm64: kconfig: allow support for memory failure handling
PATCH 1/1 arm64: kconfig: allow support for memory failure handling
From: "Jonathan (Zhixiong) Zhang" <[email protected]>
If ACPI_APEI and MEMORY_FAILURE is configured, select ACPI_APEI_MEMORY_FAILURE. This enables memory failure recovery when such memory failure is reported through ACPI APEI. APEI (ACPI Platform Error Interfaces) provides a means for the platform to convey error information to the kernel.
Declare ARCH_SUPPORTS_MEMORY_FAILURE, as arm64 does support memory failure recovery attempt.
--- arch/arm64/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/Kconfig +2 -0
@@ -15,6 +15,8 @@ config ARM64 select ARCH_HAS_SG_CHAIN select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST select ARCH_USE_CMPXCHG_LOCKREF + select ACPI_APEI_MEMORY_FAILURE if ACPI_APEI && MEMORY_FAILURE + select ARCH_SUPPORTS_MEMORY_FAILURE select ARCH_SUPPORTS_ATOMIC_RMW select ARCH_SUPPORTS_NUMA_BALANCING select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
Signature · 3 lines
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Quoted 22 lines · Tyler Baicar
From: "Jonathan (Zhixiong) Zhang" <[email protected]>
If
ACPI_APEIandMEMORY_FAILUREis configured, selectACPI_APEI_MEMORY_FAILURE. This enables memory failure recovery when such memory failure is reported through ACPI APEI. APEI (ACPI Platform Error Interfaces) provides a means for the platform to convey error information to the kernel.Declare
ARCH_SUPPORTS_MEMORY_FAILURE, as arm64 does support memory failure recovery attempt.Signed-off-by Jonathan (Zhixiong) Zhang <[email protected]>Signed-off-by Tyler Baicar <[email protected]>--- arch/arm64/Kconfig | 2 ++ 1 file changed, 2 insertions(+)arch/arm64/Kconfig +0
-0
arch/arm64/Kconfig config ARM64 · line 19
Quoted 5 lines
arch/arm64/Kconfig +2
-0@@ -15,6 +15,8 @@ config ARM64 select ARCH_HAS_SG_CHAIN select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST select ARCH_USE_CMPXCHG_LOCKREF + select ACPI_APEI_MEMORY_FAILURE if ACPI_APEI && MEMORY_FAILURE + select ARCH_SUPPORTS_MEMORY_FAILURE
Although enabling support for memory failure handling makes sense in the architecture config, it feels out of place to select ACPI_APEI_MEMORY_FAILURE here.
Maybe key it off of CONFIG_APEI?
Thanks,
Punit
Quoted 3 lines
arch/arm64/Kconfig +0
-0select ARCH_SUPPORTS_ATOMIC_RMW select ARCH_SUPPORTS_NUMA_BALANCING select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
Hello Punit,
Quoted 33 lines · Punit Agrawal
Quoted 22 lines · Tyler Baicar
From: "Jonathan (Zhixiong) Zhang" <[email protected]>
If
ACPI_APEIandMEMORY_FAILUREis configured, selectACPI_APEI_MEMORY_FAILURE. This enables memory failure recovery when such memory failure is reported through ACPI APEI. APEI (ACPI Platform Error Interfaces) provides a means for the platform to convey error information to the kernel.Declare
ARCH_SUPPORTS_MEMORY_FAILURE, as arm64 does support memory failure recovery attempt.Signed-off-by Jonathan (Zhixiong) Zhang <[email protected]>Signed-off-by Tyler Baicar <[email protected]>--- arch/arm64/Kconfig | 2 ++ 1 file changed, 2 insertions(+)arch/arm64/Kconfig +0
-0arch/arm64/Kconfig config ARM64 · line 19
Quoted 5 lines
arch/arm64/Kconfig +2
-0@@ -15,6 +15,8 @@ config ARM64 select ARCH_HAS_SG_CHAIN select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST select ARCH_USE_CMPXCHG_LOCKREF + select ACPI_APEI_MEMORY_FAILURE if ACPI_APEI && MEMORY_FAILURE + select ARCH_SUPPORTS_MEMORY_FAILUREAlthough enabling support for memory failure handling makes sense in the architecture config, it feels out of place to select
ACPI_APEI_MEMORY_FAILUREhere.
Quoted 1 line
Maybe key it off of
CONFIG_APEI?
Yes, I can move it there.
config ACPI_APEI
bool "ACPI Platform Error Interface (APEI)" select MISC_FILESYSTEMS
select PSTORE
select UEFI_CPER
+ select ACPI_APEI_MEMORY_FAILURE if MEMORY_FAILURE
depends on HAVE_ACPI_APEI
The ARCH_SUPPORTS_MEMORY_FAILURE should remain in arch/arm64/Kconfig though, correct?
Thanks,
Tyler
Signature · 3 lines
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Quoted 40 lines · Tyler
Hello Punit,
Quoted 33 lines · Punit Agrawal
Quoted 22 lines · Tyler Baicar
From: "Jonathan (Zhixiong) Zhang" <[email protected]>
If
ACPI_APEIandMEMORY_FAILUREis configured, selectACPI_APEI_MEMORY_FAILURE. This enables memory failure recovery when such memory failure is reported through ACPI APEI. APEI (ACPI Platform Error Interfaces) provides a means for the platform to convey error information to the kernel.Declare
ARCH_SUPPORTS_MEMORY_FAILURE, as arm64 does support memory failure recovery attempt.Signed-off-by Jonathan (Zhixiong) Zhang <[email protected]>Signed-off-by Tyler Baicar <[email protected]>--- arch/arm64/Kconfig | 2 ++ 1 file changed, 2 insertions(+)arch/arm64/Kconfig +0
-0arch/arm64/Kconfig config ARM64 · line 19
Quoted 5 lines
arch/arm64/Kconfig +2
-0@@ -15,6 +15,8 @@ config ARM64 select ARCH_HAS_SG_CHAIN select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST select ARCH_USE_CMPXCHG_LOCKREF + select ACPI_APEI_MEMORY_FAILURE if ACPI_APEI && MEMORY_FAILURE + select ARCH_SUPPORTS_MEMORY_FAILUREAlthough enabling support for memory failure handling makes sense in the architecture config, it feels out of place to select
ACPI_APEI_MEMORY_FAILUREhere.Quoted 1 line
Maybe key it off of
CONFIG_APEI?Yes, I can move it there.
Quoted 8 lines
config
ACPI_APEI
bool "ACPI Platform Error Interface (APEI)" selectMISC_FILESYSTEMS
select PSTORE
selectUEFI_CPER
+ selectACPI_APEI_MEMORY_FAILUREifMEMORY_FAILURE
depends onHAVE_ACPI_APEI
That's what I was suggesting - we'll see what the ACPI maintainers think of the change.
Quoted 2 lines
The
ARCH_SUPPORTS_MEMORY_FAILUREshould remain inarch/arm64/Kconfigthough, correct?
Yes, that's right - as that's a feature the architecture is advertising support for, it should stay in the arm64 Kconfig,
Quoted 3 lines
Thanks,
Tyler
Hi Punit,
Quoted 10 lines · Tyler Baicar
From: "Jonathan (Zhixiong) Zhang" <[email protected]>
If
ACPI_APEIandMEMORY_FAILUREis configured, selectACPI_APEI_MEMORY_FAILURE. This enables memory failure recovery when such memory failure is reported through ACPI APEI. APEI (ACPI Platform Error Interfaces) provides a means for the platform to convey error information to the kernel.Declare
ARCH_SUPPORTS_MEMORY_FAILURE, as arm64 does support memory failure recovery attempt.
Am I right in thinking we should wait for the hugepage issue you found with hwpoison [0] to be fixed before arm64 can have ARCH_SUPPORTS_MEMORY_FAILURE?
(If so, can this patch become part of that series to they are obviously related!)
Thanks,
James
[0] https://www.spinics.net/lists/arm-kernel/msg568995.html
Quoted 14 lines
arch/arm64/Kconfig +2
-0@@ -15,6 +15,8 @@ config ARM64 select ARCH_HAS_SG_CHAIN select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST select ARCH_USE_CMPXCHG_LOCKREF + select ACPI_APEI_MEMORY_FAILURE if ACPI_APEI && MEMORY_FAILURE + select ARCH_SUPPORTS_MEMORY_FAILURE select ARCH_SUPPORTS_ATOMIC_RMW select ARCH_SUPPORTS_NUMA_BALANCING select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
Quoted 11 lines · James Morse
Hi Punit,
Quoted 8 lines · Tyler Baicar
From: "Jonathan (Zhixiong) Zhang" <[email protected]>
If
ACPI_APEIandMEMORY_FAILUREis configured, selectACPI_APEI_MEMORY_FAILURE. This enables memory failure recovery when such memory failure is reported through ACPI APEI. APEI (ACPI Platform Error Interfaces) provides a means for the platform to convey error information to the kernel.
Quoted 5 lines
Quoted 2 lines
Declare
ARCH_SUPPORTS_MEMORY_FAILURE, as arm64 does support memory failure recovery attempt.Am I right in thinking we should wait for the hugepage issue you found with hwpoison [0] to be fixed before arm64 can have
ARCH_SUPPORTS_MEMORY_FAILURE?
We should at the least fix the huge_pte_offset() issue discovered in [0] before we enable memory failure handling. Earlier today I posted a RFC[1] fix for it based on Catalin's suggestion.
Quoted 2 lines
(If so, can this patch become part of that series to they are obviously related!)
Good point - I can include the patches enabling memory failure handling on ARM64 if Tyler's fine with it.
Thanks,
Punit
[1] https://lkml.org/lkml/2017/3/23/293
Quoted 10 lines
Thanks,
James
Quoted 17 lines
Quoted 6 lines
arch/arm64/Kconfig +0
-0arch/arm64/Kconfig config ARM64 · line 22
Quoted 8 lines
arch/arm64/Kconfig +2
-0@@ -15,6 +15,8 @@ config ARM64 select ARCH_HAS_SG_CHAIN select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST select ARCH_USE_CMPXCHG_LOCKREF + select ACPI_APEI_MEMORY_FAILURE if ACPI_APEI && MEMORY_FAILURE + select ARCH_SUPPORTS_MEMORY_FAILURE select ARCH_SUPPORTS_ATOMIC_RMW select ARCH_SUPPORTS_NUMA_BALANCING select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Quoted 27 lines · Punit Agrawal
Quoted 11 lines · James Morse
Hi Punit,
Quoted 8 lines · Tyler Baicar
From: "Jonathan (Zhixiong) Zhang" <[email protected]>
If
ACPI_APEIandMEMORY_FAILUREis configured, selectACPI_APEI_MEMORY_FAILURE. This enables memory failure recovery when such memory failure is reported through ACPI APEI. APEI (ACPI Platform Error Interfaces) provides a means for the platform to convey error information to the kernel.Quoted 7 lines
Quoted 2 lines
Declare
ARCH_SUPPORTS_MEMORY_FAILURE, as arm64 does support memory failure recovery attempt.Am I right in thinking we should wait for the hugepage issue you found with
hwpoison [0] to be fixed before arm64 can haveARCH_SUPPORTS_MEMORY_FAILURE?We should at the least fix the
huge_pte_offset()issue discovered in [0] before we enable memory failure handling. Earlier today I posted a RFC[1] fix for it based on Catalin's suggestion.Quoted 1 line
Quoted 5 lines
Quoted 2 lines
(If so, can this patch become part of that series to they are obviously related!)
Good point - I can include the patches enabling memory failure handling on ARM64 if Tyler's fine with it.
That's fine with me!
Thanks,
Tyler
Quoted 38 lines
Thanks,
Punit[1] https://lkml.org/lkml/2017/3/23/293
Quoted 10 lines
Thanks,
James
Quoted 17 lines
Quoted 6 lines
arch/arm64/Kconfig +0
-0arch/arm64/Kconfig config ARM64 · line 22
Quoted 8 lines
arch/arm64/Kconfig +2
-0@@ -15,6 +15,8 @@ config ARM64 select ARCH_HAS_SG_CHAIN select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST select ARCH_USE_CMPXCHG_LOCKREF + select ACPI_APEI_MEMORY_FAILURE if ACPI_APEI && MEMORY_FAILURE + select ARCH_SUPPORTS_MEMORY_FAILURE select ARCH_SUPPORTS_ATOMIC_RMW select ARCH_SUPPORTS_NUMA_BALANCING select ARCH_WANT_COMPAT_IPC_PARSE_VERSIONIMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Signature · 3 lines
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.