Skip to content

Commit 08b0e6b

Browse files
fyu1nvax-r
authored andcommitted
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()). (cherry picked from commit 93e1b6a https://github.com/NVIDIA/NV-Kernels 24.04_linux-nvidia-6.17-next) Signed-off-by: Fenghua Yu <fenghuay@nvidia.com>
1 parent c43f814 commit 08b0e6b

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
@@ -247,6 +247,19 @@ with respect to allocation:
247247
non-linear. This field is purely informational
248248
only.
249249

250+
"max_lim":
251+
Read-only. On ARM MPAM systems where MBA exposes MBW_MAX, this
252+
file contains a single decimal integer: the
253+
``MPAMF_MBW_IDR.MAX_LIM`` field [1:0] (values ``0``–``3``) as probed for the MBA resource.
254+
The file appears only when the platform supports MBA MBW_MAX and
255+
the MAX_LIM value is available; otherwise it is not listed.
256+
257+
The Arm MPAM architecture defines the meaning of each MAX_LIM
258+
encoding. In this kernel, when ``max_lim`` reads ``0``, the
259+
driver treats the ``HARDLIM`` bit of ``MPAMCFG_MBW_MAX`` as
260+
read/write and an optional ``MB_HLIM`` line may appear in
261+
``schemata``. When ``max_lim`` is nonzero, ``MB_HLIM`` is omitted.
262+
250263
"thread_throttle_mode":
251264
Indicator on Intel systems of how tasks running on threads
252265
of a physical core are throttled in cases where they
@@ -963,6 +976,27 @@ Memory bandwidth domain is L3 cache.
963976

964977
MB:<cache_id0>=bw_MiBps0;<cache_id1>=bw_MiBps1;...
965978

979+
MBW maximum hard limit (ARM MPAM)
980+
---------------------------------
981+
On some ARM systems, resctrl memory bandwidth allocation uses MPAM
982+
maximum bandwidth (MBW_MAX). When ``max_lim`` reads ``0`` (see ``max_lim``
983+
under the ``MB`` allocation ``info`` directory), an additional schemata
984+
line selects the ``HARDLIM`` bit for ``MPAMCFG_MBW_MAX`` independently of
985+
the numeric limit on the ``MB`` line.
986+
987+
The line uses the same cache/domain indices as ``MB``. Each value must
988+
be ``0`` or ``1``: ``0`` clears HARDLIM (soft-limit behaviour for the
989+
max), ``1`` sets HARDLIM (hard limit). When ``max_lim`` is nonzero or
990+
``MB_HLIM`` is not supported for the platform, the line is omitted from
991+
``schemata``.
992+
993+
Format:
994+
::
995+
996+
MB_HLIM:<cache_id0>=0|1;<cache_id1>=0|1;...
997+
998+
The corresponding ``schema_format`` entry under ``info`` is ``mb_hlim``.
999+
9661000
Slow Memory Bandwidth Allocation (SMBA)
9671001
---------------------------------------
9681002
AMD hardware supports Slow Memory Bandwidth Allocation (SMBA).

0 commit comments

Comments
 (0)