]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs/resctrl: Add boiler plate for external resctrl code
authorJames Morse <james.morse@arm.com>
Thu, 15 May 2025 16:58:45 +0000 (16:58 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 16 May 2025 09:05:40 +0000 (11:05 +0200)
commitbff70402d6d67843fe319338e4c56e1cba13fbd8
tree178c39875fa34e95001d9d5f5296628e37db2535
parent003e86077143ebeaa5299fb2bc907ae3b6650028
fs/resctrl: Add boiler plate for external resctrl code

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
select this.

Adding an include of asm/resctrl.h to linux/resctrl.h allows the
/fs/resctrl files to switch over to using this header instead.

Co-developed-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Fenghua Yu <fenghuay@nvidia.com>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Tested-by: Fenghua Yu <fenghuay@nvidia.com>
Tested-by: Carl Worth <carl@os.amperecomputing.com> # arm64
Tested-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
Tested-by: Peter Newman <peternewman@google.com>
Tested-by: Amit Singh Tomar <amitsinght@marvell.com> # arm64
Tested-by: Shanker Donthineni <sdonthineni@nvidia.com> # arm64
Tested-by: Babu Moger <babu.moger@amd.com>
Tested-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/20250515165855.31452-16-james.morse@arm.com
19 files changed:
MAINTAINERS
arch/Kconfig
arch/x86/Kconfig
arch/x86/kernel/cpu/resctrl/internal.h
arch/x86/kernel/cpu/resctrl/monitor.c
arch/x86/kernel/cpu/resctrl/pseudo_lock.c
arch/x86/kernel/cpu/resctrl/rdtgroup.c
fs/Kconfig
fs/Makefile
fs/resctrl/Kconfig [new file with mode: 0644]
fs/resctrl/Makefile [new file with mode: 0644]
fs/resctrl/ctrlmondata.c [new file with mode: 0644]
fs/resctrl/internal.h [new file with mode: 0644]
fs/resctrl/monitor.c [new file with mode: 0644]
fs/resctrl/monitor_trace.h [new file with mode: 0644]
fs/resctrl/pseudo_lock.c [new file with mode: 0644]
fs/resctrl/pseudo_lock_trace.h [new file with mode: 0644]
fs/resctrl/rdtgroup.c [new file with mode: 0644]
include/linux/resctrl.h