]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm_mpam: Add probe/remove for mpam msc driver and kbuild boiler plate
authorJames Morse <james.morse@arm.com>
Wed, 19 Nov 2025 12:22:40 +0000 (12:22 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 19 Nov 2025 18:34:20 +0000 (18:34 +0000)
commitf04046f2577a5c76167333ca99d3903ee5331ba0
treea0e46abf5f6fa45a1cb9a02e8196a59570e28869
parent115c5325beae7199219ab7c12ec2a2af8dea6c3c
arm_mpam: Add probe/remove for mpam msc driver and kbuild boiler plate

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.

Cc: Carl Worth <carl@os.amperecomputing.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Reviewed-by: Fenghua Yu <fenghuay@nvidia.com>
Reviewed-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
Tested-by: Fenghua Yu <fenghuay@nvidia.com>
Tested-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
Tested-by: Peter Newman <peternewman@google.com>
Tested-by: Carl Worth <carl@os.amperecomputing.com>
Tested-by: Gavin Shan <gshan@redhat.com>
Tested-by: Zeng Heng <zengheng4@huawei.com>
Tested-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Kconfig
drivers/Kconfig
drivers/Makefile
drivers/resctrl/Kconfig [new file with mode: 0644]
drivers/resctrl/Makefile [new file with mode: 0644]
drivers/resctrl/mpam_devices.c [new file with mode: 0644]
drivers/resctrl/mpam_internal.h [new file with mode: 0644]