mrmcfg
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
MSmqosidSummary
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)
| Bits | Field | Description |
|---|---|---|
31:28 | QRID | The QRID is used to identify a QoS Register Interface to monitor resource usage. |
27:16 | MCID | The MCID is used to identify a counter to monitor resource usage. |
11:0 | RCID | The 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.