Skip to content

Commit af26ddc

Browse files
committed
NVIDIA: VR: SAUCE: Documentation: resctrl: document max_lim and MB_HLIM for MPAM MBA
Document the MBA max_lim sysfs file, MB_HLIM schemata (0/1 per domain), and how they relate to MPAM MBW_MAX, HARDLIM, and MPAMF_MBW_IDR.MAX_LIM. Add schema_format for mb_hlim under the MB allocation info directory. max_lim is exposed as a single decimal integer (MPAMF_MBW_IDR.MAX_LIM [1:0], 0–3), matching rdt_mb_max_lim_show(). MB_HLIM appears when the probe treats HARDLIM as read/write, which this series ties to max_lim reading zero (see mpam_props_sync_mbw_max_hardlim_rw()). Signed-off-by: Fenghua Yu <fenghuay@nvidia.com>
1 parent c6a7989 commit af26ddc

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Documentation/filesystems/resctrl.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,19 @@ with respect to allocation:
155155
non-linear. This field is purely informational
156156
only.
157157

158+
"max_lim":
159+
Read-only. On ARM MPAM systems where MBA exposes MBW_MAX, this
160+
file contains a single decimal integer: the
161+
``MPAMF_MBW_IDR.MAX_LIM`` field [1:0] (values ``0``–``3``) as probed for the MBA resource.
162+
The file appears only when the platform supports MBA MBW_MAX and
163+
the MAX_LIM value is available; otherwise it is not listed.
164+
165+
The Arm MPAM architecture defines the meaning of each MAX_LIM
166+
encoding. In this kernel, when ``max_lim`` reads ``0``, the
167+
driver treats the ``HARDLIM`` bit of ``MPAMCFG_MBW_MAX`` as
168+
read/write and an optional ``MB_HLIM`` line may appear in
169+
``schemata``. When ``max_lim`` is nonzero, ``MB_HLIM`` is omitted.
170+
158171
"thread_throttle_mode":
159172
Indicator on Intel systems of how tasks running on threads
160173
of a physical core are throttled in cases where they
@@ -871,6 +884,27 @@ Memory bandwidth domain is L3 cache.
871884

872885
MB:<cache_id0>=bw_MiBps0;<cache_id1>=bw_MiBps1;...
873886

887+
MBW maximum hard limit (ARM MPAM)
888+
---------------------------------
889+
On some ARM systems, resctrl memory bandwidth allocation uses MPAM
890+
maximum bandwidth (MBW_MAX). When ``max_lim`` reads ``0`` (see ``max_lim``
891+
under the ``MB`` allocation ``info`` directory), an additional schemata
892+
line selects the ``HARDLIM`` bit for ``MPAMCFG_MBW_MAX`` independently of
893+
the numeric limit on the ``MB`` line.
894+
895+
The line uses the same cache/domain indices as ``MB``. Each value must
896+
be ``0`` or ``1``: ``0`` clears HARDLIM (soft-limit behaviour for the
897+
max), ``1`` sets HARDLIM (hard limit). When ``max_lim`` is nonzero or
898+
``MB_HLIM`` is not supported for the platform, the line is omitted from
899+
``schemata``.
900+
901+
Format:
902+
::
903+
904+
MB_HLIM:<cache_id0>=0|1;<cache_id1>=0|1;...
905+
906+
The corresponding ``schema_format`` entry under ``info`` is ``mb_hlim``.
907+
874908
Slow Memory Bandwidth Allocation (SMBA)
875909
---------------------------------------
876910
AMD hardware supports Slow Memory Bandwidth Allocation (SMBA).

0 commit comments

Comments
 (0)