MSMON_CFG_CSU_CTL, MPAM Memory System Monitor Configure Cache Storage Usage Monitor Control Register
The MSMON_CFG_CSU_CTL characteristics are:
Purpose
Controls the CSU monitor selected by MSMON_CFG_MON_SEL. MSMON_CFG_CSU_CTL_s controls the Secure cache storage usage monitor instance selected by the Secure instance of MSMON_CFG_MON_SEL. MSMON_CFG_CSU_CTL_ns controls Non-secure cache storage usage monitor instance selected by the Non-secure instance of MSMON_CFG_MON_SEL.
If MPAMF_IDR.HAS_RIS is 1, the monitor instance configuration accessed is for the resource instance currently selected by MSMON_CFG_MON_SEL.RIS and the monitor instance of that resource instance selected by MSMON_CFG_MON_SEL.MON_SEL.
Configuration
The power domain of MSMON_CFG_CSU_CTL is IMPLEMENTATION DEFINED.
This register is present only when MPAMF_IDR.HAS_MSMON == 1 and MPAMF_MSMON_IDR.MSMON_CSU == 1. Otherwise, direct accesses to MSMON_CFG_CSU_CTL are RES0.
Attributes
MSMON_CFG_CSU_CTL is a 32-bit register.
Field descriptions
The MSMON_CFG_CSU_CTL bit assignments are:
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
EN | CAPT_EVNT | CAPT_RESET | OFLOW_STATUS | OFLOW_INTR | OFLOW_FRZ | SUBTYPE | RES0 | MATCH_PMG | MATCH_PARTID | RES0 | TYPE |
EN, bit [31]
Enabled.
EN | Meaning |
---|---|
0b0 |
The monitor instance is disabled and must not collect any information. |
0b1 |
The monitor instance is enabled to collect information according to the configuration of the instance. |
CAPT_EVNT, bits [30:28]
Capture event selector.
Select the event that triggers capture from the following:
CAPT_EVNT | Meaning |
---|---|
0b000 |
No capture event is triggered. |
0b001 |
External capture event 1 (optional but recommended) |
0b010 |
External capture event 2 (optional) |
0b011 |
External capture event 3 (optional) |
0b100 |
External capture event 4 (optional) |
0b101 |
External capture event 5 (optional) |
0b110 |
External capture event 6 (optional) |
0b111 |
Capture occurs when a MSMON_CAPT_EVNT register in this MSC is written and causes a capture event for the security state of this monitor. (optional) |
The values marked as optional indicate capture event sources that can be omitted in an implementation. Those values representing non-implemented event sources must not trigger a capture event.
If capture is not implemented for the CSU monitor type as indicated by MPAMF_CSUMON_IDR.HAS_CAPTURE = 0, this field is RAZ/WI.
CAPT_RESET, bit [27]
Reset after capture.
Controls whether the value of MSMON_CSU is reset to zero immediately after being copied to MSMON_CSU_CAPTURE.
CAPT_RESET | Meaning |
---|---|
0b0 |
Monitor is not reset on capture. |
0b1 |
Monitor is reset on capture. |
If capture is not implemented for the CSU monitor type as indicated by MPAMF_CSUMON_IDR.HAS_CAPTURE = 0, this field is RAZ/WI.
Because the CSU monitor type produces a measurement rather than a count, it might not make sense to ever reset the value after a capture. If there is no reason to ever reset a CSU monitor, this field is RAZ/WI.
OFLOW_STATUS, bit [26]
Overflow status.
Indicates whether the value of MSMON_CSU has overflowed.
OFLOW_STATUS | Meaning |
---|---|
0b0 |
No overflow has occurred. |
0b1 |
At least one overflow has occurred since this bit was last written to zero. |
If overflow is not possible for a CSU monitor in the implementation, this field is RAZ/WI.
OFLOW_INTR, bit [25]
Overflow Interrupt.
Controls whether an overflow interrupt is generated when the value of MSMON_CSU has overflowed.
OFLOW_INTR | Meaning |
---|---|
0b0 |
No interrupt is signaled on an overflow of MSMON_CSU. |
0b1 |
On overflow, an implementation-specific interrupt is signaled. |
If OFLOW_INTR is not supported by the implementation, this field is RAZ/WI.
OFLOW_FRZ, bit [24]
Freeze Monitor on Overflow.
Controls whether the value of MSMON_CSU freezes on an overflow.
OFLOW_FRZ | Meaning |
---|---|
0b0 |
Monitor count wraps on overflow. |
0b1 |
Monitor count freezes on overflow. The frozen value might be 0 or another value if the monitor overflowed with an increment larger than 1. |
If overflow is not possible for a CSU monitor in the implementation, this field is RAZ/WI.
SUBTYPE, bits [23:20]
Subtype. Type of bandwidth counted by this monitor.
This field is not currently used for CSU monitors, but reserved for future use.
This field is RAZ/WI.
Bits [19:18]
Reserved, RES0.
MATCH_PMG, bit [17]
Match PMG.
Controls whether the monitor measures only storage used with PMG matching MSMON_CFG_CSU_FLT.PMG.
MATCH_PMG | Meaning |
---|---|
0b0 |
The monitor measures storage used with any PMG value. |
0b1 |
The monitor only measures storage used with the PMG value matching MSMON_CFG_CSU_FLT.PMG. |
If MATCH_PMG == 1 and MATCH_PARTID == 0, it is CONSTRAINED UNPREDICTABLE whether the monitor instance:
- Measures the storage used with matching PMG and with any PARTID.
- Measures no storage usage, that is, MSMON_CSU.VALUE is zero.
- Measures the storage used with matching PMG and PARTID, that is, treats MATCH_PARTID as == 1.
MATCH_PARTID, bit [16]
Match PARTID.
Controls whether the monitor measures only storage used with PARTID matching MSMON_CFG_CSU_FLT.PARTID.
MATCH_PARTID | Meaning |
---|---|
0b0 |
The monitor measures storage used with any PARTID value. |
0b1 |
The monitor only measures storage used with the PARTID value matching MSMON_CFG_CSU_FLT.PARTID. |
Bits [15:8]
Reserved, RES0.
TYPE, bits [7:0]
Monitor Type Code. The CSU monitor is TYPE = 0x43.
TYPE is a read-only constant indicating the type of the monitor.
Reads as 0x43.
Accessing the MSMON_CFG_CSU_CTL
This register is within the MPAM feature page memory frames. In a system that supports Secure and Non-secure memory maps, there must be both Secure and Non-secure MPAM feature pages.
MSMON_CFG_CSU_CTL_s must be accessible from the Secure MPAM feature page. MSMON_CFG_CSU_CTL_ns must be accessible from the Non-secure MPAM feature page.
MSMON_CFG_CSU_CTL_s and MSMON_CFG_CSU_CTL_ns must be separate registers. The Secure instance (MSMON_CFG_CSU_CTL_s) accesses the cache storage usage monitor controls used for Secure PARTIDs, and the Non-secure instance (MSMON_CFG_CSU_CTL_ns) accesses the cache storage usage monitor controls used for Non-secure PARTIDs.
When RIS is implemented, loads and stores to MSMON_CFG_CSU_CTL access the cache storage usage monitor configuration settings for the cache resource instance selected by MSMON_CFG_MON_SEL.RIS and the cache storage usage monitor instance selected by MSMON_CFG_MON_SEL.MON_SEL.
When RIS is not implemented, loads and stores to MSMON_CFG_CSU_CTL access the cache storage usage monitor configuration settings for the cache storage usage monitor instance selected by MSMON_CFG_MON_SEL.MON_SEL.
MSMON_CFG_CSU_CTL can be accessed through the memory-mapped interfaces:
Component | Frame | Offset | Instance |
---|---|---|---|
MPAM | MPAMF_BASE_s | 0x0818 | MSMON_CFG_CSU_CTL_s |
Accesses on this interface are RW.
Component | Frame | Offset | Instance |
---|---|---|---|
MPAM | MPAMF_BASE_ns | 0x0818 | MSMON_CFG_CSU_CTL_ns |
Accesses on this interface are RW.