[PATCH v5 6/7] arm_mpam: Add support for memory controller MSC on DT platforms

Ping Li leeonion.muyu at gmail.com
Wed Nov 11 05:04:57 PST 2026


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 at hobot:~# mkdir /sys/fs/resctrl/group1
    root at hobot:~# echo "MB:0=50" > /sys/fs/resctrl/group1/schemata
    root at hobot:~# cat /sys/fs/resctrl/group1/schemata
        MB:0=50
        L3:0=ff

    root at hobot:~# my_app &
    root at hobot:~# echo $! > /sys/fs/resctrl/group1/tasks
    root at hobot:~# cat /sys/fs/resctrl/group1/mon_data/mon_L3_00/mbm_total_bytes
    1314

    # Dynamic throttle change while workload is running:
    root at hobot:~# cat /sys/fs/resctrl/schemata
        MB:0=100
        L3:0=ff
    root at hobot:~# echo "MB:0=20" > /sys/fs/resctrl/schemata
    root at hobot:~# echo "MB:0=100" > /sys/fs/resctrl/schemata
    root at 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



More information about the linux-arm-kernel mailing list