Re: [PATCH v5 6/7] arm_mpam: Add support for memory controller MSC on DT platforms
From: Ping Li
Date: Wed Nov 11 2026 - 08:14:48 EST
Hi Yin,
Happy to share more details.
1. Our SoC is an automotive-grade platform with an MPAM 1.1
compliant MSC on the DDR egress path for system-wide
bandwidth QoS.
2. The typical scenario is preventing memory-bandwidth-sensitive
workloads from saturating DDR: isolating bandwidth between
infotainment and ADAS domains, and preventing background
services from starving latency-critical workloads.
3. We verified on v5 (with the top-level memory controller MSC
node as a direct child of the root):
- MSC probe from DT (dmesg: MPAM enabled)
- resctrl mount with L3/MB/L3_MON resources
- MB allocation through schemata writes
- Dynamic throttle change while traffic is running
- MBWU monitoring (mbm_total_bytes)
- Monitor assignment across multiple groups
Usage log showing the memory controller MSC working through
resctrl on our board:
root@hobot:~# mkdir /sys/fs/resctrl/group1
root@hobot:~# echo "MB:0=50" > /sys/fs/resctrl/group1/schemata
root@hobot:~# cat /sys/fs/resctrl/group1/schemata
MB:0=50
L3:0=ff
root@hobot:~# my_app &
root@hobot:~# echo $! > /sys/fs/resctrl/group1/tasks
root@hobot:~# cat /sys/fs/resctrl/group1/mon_data/mon_L3_00/mbm_total_bytes
1314
# Dynamic throttle change while workload is running:
root@hobot:~# cat /sys/fs/resctrl/schemata
MB:0=100
L3:0=ff
root@hobot:~# echo "MB:0=20" > /sys/fs/resctrl/schemata
root@hobot:~# echo "MB:0=100" > /sys/fs/resctrl/schemata
root@hobot:~# cat /sys/fs/resctrl/schemata
MB:0=100
L3:0=ff
The bandwidth throttling takes effect immediately on schemata
writes - verified by observing the DDR bandwidth counter drop
and recover in sync with the throttle level changes.
Thanks,
Ping