Commit 5b93852a authored by James Morse's avatar James Morse Committed by Zeng Heng
Browse files

fs/resctrl: Add boiler plate for external resctrl code

maillist inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8T2RT

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/log/?h=mpam/snapshot/v6.7-rc2



---------------------------

Add Makefile and Kconfig for fs/resctrl. Add ARCH_HAS_CPU_RESCTRL
for the common parts of the resctrl interface and make X86_CPU_RESCTRL
depend on this.

Signed-off-by: default avatarJames Morse <james.morse@arm.com>
Signed-off-by: default avatarZeng Heng <zengheng4@huawei.com>
parent f17dc2b0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -18062,6 +18062,7 @@ S: Supported
F:	Documentation/arch/x86/resctrl*
F:	arch/x86/include/asm/resctrl.h
F:	arch/x86/kernel/cpu/resctrl/
F:	fs/resctrl/
F:	include/linux/resctrl*.h
F:	tools/testing/selftests/resctrl/
+8 −0
Original line number Diff line number Diff line
@@ -1324,6 +1324,14 @@ config STRICT_MODULE_RWX
config ARCH_HAS_PHYS_TO_DMA
	bool

config ARCH_HAS_CPU_RESCTRL
	bool
	help
	  The 'resctrl' filesystem allows cpu controls of shared resources
	  such as caches and memory bandwidth to be configured. An architecture
	  selects this if it provides the arch-specific hooks for the filesystem
	  and needs the per-task closid/rmid properties.

config HAVE_ARCH_COMPILER_H
	bool
	help
+3 −7
Original line number Diff line number Diff line
@@ -479,8 +479,10 @@ config GOLDFISH
config X86_CPU_RESCTRL
	bool "x86 CPU resource control support"
	depends on X86 && (CPU_SUP_INTEL || CPU_SUP_AMD)
	depends on MISC_FILESYSTEMS
	select KERNFS
	select PROC_CPU_RESCTRL		if PROC_FS
	select ARCH_HAS_CPU_RESCTRL
	select RESCTRL_FS
	select RESCTRL_FS_PSEUDO_LOCK
	help
	  Enable x86 CPU resource control support.
@@ -498,12 +500,6 @@ config X86_CPU_RESCTRL

	  Say N if unsure.

config RESCTRL_FS_PSEUDO_LOCK
	bool
	help
	  Software mechanism to try and pin data in a cache portion using
	  micro-architecture tricks.

if X86_32
config X86_BIGSMP
	bool "Support for big SMP systems with more than 8 CPUs"
+1 −0
Original line number Diff line number Diff line
@@ -352,6 +352,7 @@ source "fs/omfs/Kconfig"
source "fs/hpfs/Kconfig"
source "fs/qnx4/Kconfig"
source "fs/qnx6/Kconfig"
source "fs/resctrl/Kconfig"
source "fs/romfs/Kconfig"
source "fs/pstore/Kconfig"
source "fs/sysv/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -131,3 +131,4 @@ obj-$(CONFIG_EFIVAR_FS) += efivarfs/
obj-$(CONFIG_EROFS_FS)		+= erofs/
obj-$(CONFIG_VBOXSF_FS)		+= vboxsf/
obj-$(CONFIG_ZONEFS_FS)		+= zonefs/
obj-$(CONFIG_RESCTRL_FS)	+= resctrl/
Loading