Commit 3e9e723f authored by James Morse's avatar James Morse Committed by Zeng Heng
Browse files

arm_mpam: Add probe/remove for mpam msc driver and kbuild boiler plate

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



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

Probing MPAM is convoluted. MSCs that are integrated with a CPU may
only be accessible from those CPUs, and they may not be online.
Touching the hardware early is pointless as MPAM can't be used until
the system-wide common values for num_partid and num_pmg have been
discovered.

Start with driver probe/remove and mapping the MSC.

Signed-off-by: default avatarJames Morse <james.morse@arm.com>
Signed-off-by: default avatarZeng Heng <zengheng4@huawei.com>
parent c21dc717
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2059,6 +2059,7 @@ config ARM64_TLB_RANGE
config ARM64_MPAM
	bool "Enable support for MPAM"
	select ACPI_MPAM if ACPI
	select ARM_CPU_RESCTRL
	help
	  Memory Partitioning and Monitoring is an optional extension
	  that allows the CPUs to mark load and store transactions with
+2 −0
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@ source "drivers/platform/chrome/Kconfig"

source "drivers/platform/mellanox/Kconfig"

source "drivers/platform/mpam/Kconfig"

source "drivers/platform/olpc/Kconfig"

source "drivers/platform/surface/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -11,3 +11,4 @@ obj-$(CONFIG_OLPC_EC) += olpc/
obj-$(CONFIG_GOLDFISH)		+= goldfish/
obj-$(CONFIG_CHROME_PLATFORMS)	+= chrome/
obj-$(CONFIG_SURFACE_PLATFORMS)	+= surface/
obj-$(CONFIG_ARM_CPU_RESCTRL)	+= mpam/
+6 −0
Original line number Diff line number Diff line
# Confusingly, this is everything but the CPU bits of MPAM. CPU here means
# CPU resources, not containers or cgroups etc.
config ARM_CPU_RESCTRL
	bool
	depends on ARM64
	select RESCTRL_RMID_DEPENDS_ON_CLOSID
+1 −0
Original line number Diff line number Diff line
obj-$(CONFIG_ARM_CPU_RESCTRL) += mpam_devices.o
Loading