-
Notifications
You must be signed in to change notification settings - Fork 139
/
Copy pathcxl-set-alert-config.txt
152 lines (130 loc) · 4.95 KB
/
cxl-set-alert-config.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
// SPDX-License-Identifier: GPL-2.0
cxl-set-alert-config(1)
=======================
NAME
----
cxl-set-alert-config - set the warning alert threshold on a CXL memdev
SYNOPSIS
--------
[verse]
'cxl set-alert-config <mem0> [<mem1>..<memN>] [<options>]'
DESCRIPTION
-----------
CXL device raises an alert when its health status is changed. Critical alert
shall automatically be configured by the device after a device reset.
If supported, programmable warning thresholds also be initialized to vendor
recommended defaults, then could be configured by the user.
Use this command to configure warning alert thresholds of a device.
Having issued this command, the newly requested warning thresholds would
override the previously programmed warning thresholds.
To enable warning alert, set both 'threshold=value' and 'alert=on'. To disable
warning alert, set only 'alert=off'. Other cases would cause errors.
Use "cxl list -m <memdev> -A" to examine the programming warning threshold
capabilities of a device.
EXAMPLES
--------
Set warning threshold to 30 and enable alert for life used.
----
# cxl set-alert-config mem0 --life-used-threshold=30 --life-used-alert=on
{
"memdev":"mem0",
"ram_size":"1024.00 MiB (1073.74 MB)",
"alert_config":{
"life_used_prog_warn_threshold_valid":true,
"dev_over_temperature_prog_warn_threshold_valid":false,
"dev_under_temperature_prog_warn_threshold_valid":false,
"corrected_volatile_mem_err_prog_warn_threshold_valid":false,
"corrected_pmem_err_prog_warn_threshold_valid":false,
"life_used_prog_warn_threshold_writable":true,
"dev_over_temperature_prog_warn_threshold_writable":true,
"dev_under_temperature_prog_warn_threshold_writable":true,
"corrected_volatile_mem_err_prog_warn_threshold_writable":true,
"corrected_pmem_err_prog_warn_threshold_writable":true,
"life_used_crit_alert_threshold":75,
"life_used_prog_warn_threshold":30,
"dev_over_temperature_crit_alert_threshold":0,
"dev_under_temperature_crit_alert_threshold":0,
"dev_over_temperature_prog_warn_threshold":0,
"dev_under_temperature_prog_warn_threshold":0,
"corrected_volatile_mem_err_prog_warn_threshold":0,
"corrected_pmem_err_prog_warn_threshold":0
},
"serial":"0",
"host":"0000:0d:00.0"
}
cxl memdev: cmd_set_alert_config: set alert configuration 1 mem
----
Disable warning alert for life_used.
----
# cxl set-alert-config mem0 --life-used-alert=off
{
"memdev":"mem0",
"ram_size":"1024.00 MiB (1073.74 MB)",
"alert_config":{
"life_used_prog_warn_threshold_valid":false,
"dev_over_temperature_prog_warn_threshold_valid":false,
"dev_under_temperature_prog_warn_threshold_valid":false,
"corrected_volatile_mem_err_prog_warn_threshold_valid":false,
"corrected_pmem_err_prog_warn_threshold_valid":false,
"life_used_prog_warn_threshold_writable":true,
"dev_over_temperature_prog_warn_threshold_writable":true,
"dev_under_temperature_prog_warn_threshold_writable":true,
"corrected_volatile_mem_err_prog_warn_threshold_writable":true,
"corrected_pmem_err_prog_warn_threshold_writable":true,
"life_used_crit_alert_threshold":75,
"life_used_prog_warn_threshold":30,
"dev_over_temperature_crit_alert_threshold":0,
"dev_under_temperature_crit_alert_threshold":0,
"dev_over_temperature_prog_warn_threshold":0,
"dev_under_temperature_prog_warn_threshold":0,
"corrected_volatile_mem_err_prog_warn_threshold":0,
"corrected_pmem_err_prog_warn_threshold":0
},
"serial":"0",
"host":"0000:0d:00.0"
}
cxl memdev: cmd_set_alert_config: set alert configuration 1 mem
----
OPTIONS
-------
<memory device(s)>::
include::memdev-option.txt[]
-L::
--life-used-threshold=::
Set <value> for the life used warning alert threshold.
--life-used-alert=::
Enable or disable the life used warning alert.
Options are 'on' or 'off'.
-O::
--over-temperature-threshold=::
Set <value> for the device over temperature warning alert threshold.
--over-temperature-alert=::
Enable or disable the device over temperature warning alert.
Options are 'on' or 'off'.
-U::
--under-temperature-threshold=::
Set <value> for the device under temperature warning alert threshold.
--under-temperature-alert=::
Enable or disable the device under temperature warning alert.
Options are 'on' or 'off'.
-V::
--volatile-mem-err-threshold=::
Set <value> for the corrected volatile memory error warning alert
threshold.
--volatile-mem-err-alert=::
Enable or disable the corrected volatile memory error warning alert.
Options are 'on' or 'off'.
-P::
--pmem-err-threshold=::
Set <value> for the corrected persistent memory error warning alert
threshold.
--pmem-err-alert=::
Enable or disable the corrected persistent memory error warning alert.
Options are 'on' or 'off'.
-v::
--verbose::
Turn on verbose debug messages in the library (if libcxl was built with
logging and debug enabled).
SEE ALSO
--------
CXL-3.0 8.2.9.8.3.3