Unverified Commit 229aa8f8 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!3713 Introduce CPU inspect feature

Merge Pull Request from: @ci-robot 
 
PR sync from: Yu Liao <liaoyu15@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/7O6BM6XOT2BK5IXEI4ZBDXUNODW2BN3M/ 
Yu Liao (3):
  cpuinspect: add CPU-inspect infrastructure
  cpuinspect: add ATF inspector
  openeuler_defconfig: enable CPU inspect for arm64 by default


-- 
2.33.0
 
https://gitee.com/openeuler/kernel/issues/I7ZBQB 
 
Link:https://gitee.com/openeuler/kernel/pulls/3713

 

Reviewed-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
Reviewed-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parents ffaa81fb e7fa9485
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -6773,6 +6773,13 @@ CONFIG_TEE=m
# CONFIG_PECI is not set
# CONFIG_HTE is not set
# CONFIG_CDX_BUS is not set

#
# CPU Inspect
#
CONFIG_CPU_INSPECT=m
CONFIG_CPU_INSPECTOR_ATF=m
# end of CPU Inspect
# end of Device Drivers

#
+2 −0
Original line number Diff line number Diff line
@@ -243,4 +243,6 @@ source "drivers/hte/Kconfig"

source "drivers/cdx/Kconfig"

source "drivers/cpuinspect/Kconfig"

endmenu
+1 −0
Original line number Diff line number Diff line
@@ -133,6 +133,7 @@ obj-$(CONFIG_EISA) += eisa/
obj-$(CONFIG_PM_OPP)		+= opp/
obj-$(CONFIG_CPU_FREQ)		+= cpufreq/
obj-$(CONFIG_CPU_IDLE)		+= cpuidle/
obj-$(CONFIG_CPU_INSPECT)	+= cpuinspect/
obj-y				+= mmc/
obj-y				+= ufs/
obj-$(CONFIG_MEMSTICK)		+= memstick/
+24 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
menu "CPU Inspect"

config CPU_INSPECT
	tristate "CPU inspect support"
	depends on SYSFS && 64BIT
	default n
	help
	  CPU-inspect is designed to provide a framework for early detection
	  of SDC by proactively executing CPU inspection test cases. It
	  includes modular inspector that can be swapped during runtime.

if CPU_INSPECT

config CPU_INSPECTOR_ATF
    tristate "ATF CPU inspector"
        depends on ARM64
        default n
        help
          This inspector implements the execution of inspection instructions
          in BIOS.

endif
endmenu
+7 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
#
# Makefile for cpuinspect.
#
obj-$(CONFIG_CPU_INSPECT) += cpu_inspect.o
obj-$(CONFIG_CPU_INSPECTOR_ATF) += inspector-atf.o
cpu_inspect-y = cpuinspect.o inspector.o sysfs.o
Loading