
From: Zhang Jian <zhangjian210@huawei.com> Offering: HULK hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I7SZC2 ---------------------------------- enable SDEI for nmi Signed-off-by: Zhang Jian <zhangjian210@huawei.com> Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com> --- arch/arm64/Kconfig | 8 ++++++++ arch/arm64/kernel/sdei.c | 2 ++ 2 files changed, 10 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 5d3168f273bf..1b418400aa27 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -2126,6 +2126,14 @@ config ASCEND_CLEAR_HUGEPAGE_DISABLE Disable clear hugepage when alloc hugepages to improve the hugepage application performance. +config ASCEND_SDEI + bool "asend sdei features" + default n + depends on ARM_SDE_INTERFACE + help + SDEI features used in ascend scenarios, should be disabled in other + board. + endif endmenu diff --git a/arch/arm64/kernel/sdei.c b/arch/arm64/kernel/sdei.c index 2132bd953a87..31ea45c02d93 100644 --- a/arch/arm64/kernel/sdei.c +++ b/arch/arm64/kernel/sdei.c @@ -123,6 +123,7 @@ bool _on_sdei_stack(unsigned long sp, struct stack_info *info) unsigned long sdei_arch_get_entry_point(int conduit) { +#ifndef CONFIG_ASCEND_SDEI /* * SDEI works between adjacent exception levels. If we booted at EL1 we * assume a hypervisor is marshalling events. If we booted at EL2 and @@ -133,6 +134,7 @@ unsigned long sdei_arch_get_entry_point(int conduit) pr_err("Not supported on this hardware/boot configuration\n"); return 0; } +#endif if (IS_ENABLED(CONFIG_VMAP_STACK)) { if (init_sdei_stacks()) -- 2.17.1