ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

mrmcfg

T1 riscv register register
Machine-Mode Resource Management Configuration
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRISC-V Privileged (Smqosid)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
PrivilegeM
ExtensionsSmqosid

Summary

The mrmcfg register is an MXLEN-wide WARL read/write machine-mode CSR used to configure a Resource Control ID (RCID), Monitoring Counter ID (MCID), and a QoS Register Interface ID (QRID). The QRID, RCID, and MCID are WARL fields.

Syntax / Encoding

CSR 0x381 (M-mode, RW)

Bitfields (3)

BitsFieldDescription
31:28QRIDThe QRID is used to identify a QoS Register Interface to monitor resource usage.
27:16MCIDThe MCID is used to identify a counter to monitor resource usage.
11:0RCIDThe RCID is used to determine the resource allocations (e.g., cache occupancy limits, memory bandwidth limits, etc.) to enforce.

Reference Notes

The mrmcfg register is an MXLEN-wide WARL read/write machine-mode CSR used to configure a Resource Control ID (RCID), Monitoring Counter ID (MCID), and a QoS Register Interface ID (QRID).
The QRID, RCID, and MCID are WARL fields.

The QRID, RCID, and MCID values accompany each request made with effective privilege mode equal to M by the hart to shared resource controllers.
The QRID and RCID values are used to determine the resource allocations (e.g., cache occupancy limits, memory bandwidth limits, etc.) to enforce.
The QRID and MCID values are used to identify a counter to monitor resource usage.

A suggested reset value of 0 for the RCID and QRID fields within the mrmcfg register aligns with the default operational behavior of resource controllers, which is to associate all capacity and resources with RCID=0.
This setup ensures a seamless initial state that conforms to expected default resource allocation policies.
The reset value for the MCID field, being potentially implementation-defined, does not directly impact core functionality and may vary based on specific system requirements.
The QRID is typically selected once at startup by the RDSM to designate the QRI utilized by the RDSM itself.

When Smqosid is implemented, the configurations in the srmcfg CSR introduced by Ssqosid extension only apply to requests made with effective privilege modes less than M.