linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] ARM: Support allocating crashkernel above 4G for LPAE
@ 2024-08-02  9:25 Jinjie Ruan
  2024-08-02 11:01 ` Russell King (Oracle)
  0 siblings, 1 reply; 12+ messages in thread
From: Jinjie Ruan @ 2024-08-02  9:25 UTC (permalink / raw)
  To: linux, bhe, akpm, linux-arm-kernel, linux-kernel; +Cc: ruanjinjie

As ARM LPAE feature support accessing memory beyond the 4G limit, define
HAVE_ARCH_CRASHKERNEL_RESERVATION_HIGH macro to support reserving crash
memory above 4G for ARM32 LPAE.

No test because there is no LPAE ARM32 hardware.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
---
 arch/arm/include/asm/crash_reserve.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/arm/include/asm/crash_reserve.h b/arch/arm/include/asm/crash_reserve.h
index 85c9298bd3b7..33a2f18b0ec1 100644
--- a/arch/arm/include/asm/crash_reserve.h
+++ b/arch/arm/include/asm/crash_reserve.h
@@ -19,6 +19,10 @@ static inline unsigned long crash_addr_low_max(void)
 	return (crash_max > lowmem_max) ? lowmem_max : crash_max;
 }
 
-
 #define HAVE_ARCH_ADD_CRASH_RES_TO_IOMEM_EARLY
+
+#if defined(CONFIG_ARM_LPAE) && defined(CONFIG_HIGHMEM)
+#define HAVE_ARCH_CRASHKERNEL_RESERVATION_HIGH
+#endif
+
 #endif
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-08-06 11:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-02  9:25 [RFC PATCH] ARM: Support allocating crashkernel above 4G for LPAE Jinjie Ruan
2024-08-02 11:01 ` Russell King (Oracle)
2024-08-05  1:23   ` Jinjie Ruan
2024-08-05  2:56     ` Baoquan He
2024-08-06  2:46       ` Jinjie Ruan
2024-08-06  8:11         ` Baoquan He
2024-08-06  8:34           ` Russell King (Oracle)
2024-08-06 11:02             ` Baoquan He
2024-08-06 11:10             ` Jinjie Ruan
2024-08-06 11:08           ` Jinjie Ruan
2024-08-05 13:18   ` Catalin Marinas
2024-08-06  2:19     ` Jinjie Ruan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).