Enable RDCI policy subsystem

- Enable set and get for policy settings
- Enable register and clear policy events

Change-Id: If4eaaf9b80e668fb21691757210e0aa1532cecae
Signed-off-by: stali <Star.Li@amd.com>


[ROCm/rdc commit: d8fec06bab]
This commit is contained in:
stali
2024-09-05 14:34:16 +08:00
committed by Galantsev, Dmitrii
parent 8e657c165c
commit f34e245ba1
5 changed files with 402 additions and 4 deletions
+5 -3
View File
@@ -566,9 +566,11 @@ typedef struct {
* @brief The policy type to support
*/
typedef enum {
RDC_POLICY_COND_MAX_PAGE_RETRIED, //!< Max number of page retired
RDC_POLICY_COND_THERMAL, //!< Temperature threshold, millidegree Celsius
RDC_POLICY_COND_POWER, //!< Power threshold, unit milliwatt
RDC_POLICY_COND_FIRST = 0,
RDC_POLICY_COND_MAX_PAGE_RETRIED = RDC_POLICY_COND_FIRST, //!< Max number of page retired
RDC_POLICY_COND_THERMAL, //!< Temperature threshold, millidegree Celsius
RDC_POLICY_COND_POWER, //!< Power threshold, unit milliwatt
RDC_POLICY_COND_LAST = RDC_POLICY_COND_POWER,
RDC_POLICY_COND_MAX
} rdc_policy_condition_type_t;