Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

arm64: mpam: Select ARCH_HAS_CPU_RESCTRL

Enough MPAM support is present to enable ARCH_HAS_CPU_RESCTRL. Let it
rip^Wlink!

ARCH_HAS_CPU_RESCTRL indicates resctrl can be enabled. It is enabled by the
arch code simply because it has 'arch' in its name.

This removes ARM_CPU_RESCTRL as a mimic of X86_CPU_RESCTRL. While here,
move the ACPI dependency to the driver's Kconfig file.

Tested-by: Gavin Shan <gshan@redhat.com>
Tested-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
Tested-by: Peter Newman <peternewman@google.com>
Tested-by: Zeng Heng <zengheng4@huawei.com>
Tested-by: Punit Agrawal <punit.agrawal@oss.qualcomm.com>
Tested-by: Jesse Chick <jessechick@os.amperecomputing.com>
Reviewed-by: Zeng Heng <zengheng4@huawei.com>
Reviewed-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Co-developed-by: Ben Horgan <ben.horgan@arm.com>
Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>

+11 -2
+1 -1
arch/arm64/Kconfig
··· 2017 2017 config ARM64_MPAM 2018 2018 bool "Enable support for MPAM" 2019 2019 select ARM64_MPAM_DRIVER 2020 - select ACPI_MPAM if ACPI 2020 + select ARCH_HAS_CPU_RESCTRL 2021 2021 help 2022 2022 Memory System Resource Partitioning and Monitoring (MPAM) is an 2023 2023 optional extension to the Arm architecture that allows each
+2
arch/arm64/include/asm/resctrl.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + #include <linux/arm_mpam.h>
+7
drivers/resctrl/Kconfig
··· 1 1 menuconfig ARM64_MPAM_DRIVER 2 2 bool "MPAM driver" 3 3 depends on ARM64 && ARM64_MPAM 4 + select ACPI_MPAM if ACPI 4 5 help 5 6 Memory System Resource Partitioning and Monitoring (MPAM) driver for 6 7 System IP, e.g. caches and memory controllers. ··· 23 22 If unsure, say N. 24 23 25 24 endif 25 + 26 + config ARM64_MPAM_RESCTRL_FS 27 + bool 28 + default y if ARM64_MPAM_DRIVER && RESCTRL_FS 29 + select RESCTRL_RMID_DEPENDS_ON_CLOSID 30 + select RESCTRL_ASSIGN_FIXED
+1 -1
drivers/resctrl/Makefile
··· 1 1 obj-$(CONFIG_ARM64_MPAM_DRIVER) += mpam.o 2 2 mpam-y += mpam_devices.o 3 - mpam-$(CONFIG_ARM_CPU_RESCTRL) += mpam_resctrl.o 3 + mpam-$(CONFIG_ARM64_MPAM_RESCTRL_FS) += mpam_resctrl.o 4 4 5 5 ccflags-$(CONFIG_ARM64_MPAM_DRIVER_DEBUG) += -DDEBUG