mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
The Arm MPAM Firmware-backed (Fb) Profile document[1] describes an alternative way of accessing the "Memory System Components" (MSC) in an MPAM enabled system. Normally the MSCs are MMIO mapped, but in some implementations this might not be possible (MSC located outside of the local socket, MSC mapped secure-only) or desirable (direct MMIO access too slow or needs to be mediated through a control processor). MPAM-fb standardises a protocol to abstract MSC accesses, building on the SCMI protocol. Add functions that do an MSC read or write access by redirecting the request through a firmware interface. For now this done via an ACPI PCC shared memory and mailbox combination. Since the protocol used is only a small subset of the full SCMI spec, and the SCMI protocol has no full ACPI support anyway, open-code the (simple) SCMI message generation, for just the fields we need. [1] https://developer.arm.com/documentation/den0144/latest Signed-off-by: Andre Przywara <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Tested-by: Ritwick Sharma <[email protected]> # on Arm AGI CPU Reviewed-by: Gavin Shan <[email protected]> Reviewed-by: Srivathsa L Rao <[email protected]> Reviewed-by: Ben Horgan <[email protected]> Signed-off-by: James Morse <[email protected]>
6 lines
194 B
Makefile
6 lines
194 B
Makefile
obj-$(CONFIG_ARM64_MPAM_DRIVER) += mpam.o
|
|
mpam-y += mpam_devices.o mpam_fb.o
|
|
mpam-$(CONFIG_ARM64_MPAM_RESCTRL_FS) += mpam_resctrl.o
|
|
|
|
ccflags-$(CONFIG_ARM64_MPAM_DRIVER_DEBUG) += -DDEBUG
|