mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-10-26 10:57:38 +08:00
The Arm MPAM-Fb specification [1] describes a protocol to access MSC registers through a firmware interface. This requires a shared memory region to hold the message, and a mailbox to trigger the access. For ACPI this is wrapped as a PCC channel, described using existing ACPI abstractions. Add code to parse those PCC table descriptions associated with an MSC, and store the parsed information in the MSC struct. There can be multiple PCC channels, and each channel can serve multiple MSCs, so we need to keep track of the channel usage, using a list and a refcount. This will be used by the MPAM-Fb access wrapper code. [1] https://developer.arm.com/documentation/den0144/latest Signed-off-by: Andre Przywara <andre.przywara@arm.com> Tested-by: Ritwick Sharma <ritwick.sharma@arm.com> # on Arm AGI CPU Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> Tested-by: Srivathsa L Rao <srivathsa.rao@oss.qualcomm.com> Reviewed-by: Srivathsa L Rao <srivathsa.rao@oss.qualcomm.com> Reviewed-by: Gavin Shan <gshan@redhat.com> Reviewed-by: Ben Horgan <ben.horgan@arm.com> Signed-off-by: James Morse <james.morse@arm.com>
34 lines
811 B
Plaintext
34 lines
811 B
Plaintext
menuconfig ARM64_MPAM_DRIVER
|
|
bool "MPAM driver"
|
|
depends on ARM64 && ARM64_MPAM
|
|
select ACPI_MPAM if ACPI
|
|
select PCC if ACPI
|
|
select MAILBOX
|
|
help
|
|
Memory System Resource Partitioning and Monitoring (MPAM) driver for
|
|
System IP, e.g. caches and memory controllers.
|
|
|
|
if ARM64_MPAM_DRIVER
|
|
|
|
config ARM64_MPAM_DRIVER_DEBUG
|
|
bool "Enable debug messages from the MPAM driver"
|
|
help
|
|
Say yes here to enable debug messages from the MPAM driver.
|
|
|
|
config MPAM_KUNIT_TEST
|
|
bool "KUnit tests for MPAM driver " if !KUNIT_ALL_TESTS
|
|
depends on KUNIT=y
|
|
default KUNIT_ALL_TESTS
|
|
help
|
|
Enable this option to run tests in the MPAM driver.
|
|
|
|
If unsure, say N.
|
|
|
|
endif
|
|
|
|
config ARM64_MPAM_RESCTRL_FS
|
|
bool
|
|
default y if ARM64_MPAM_DRIVER && RESCTRL_FS
|
|
select RESCTRL_RMID_DEPENDS_ON_CLOSID
|
|
select RESCTRL_ASSIGN_FIXED
|