Commit 58d3589
hw-isolation: Added HardwareIsolation service (#1256)
- In an OpenPOWER based system, a user or an application (in the
error path if the hardware is faulty) can isolate hardware and
the respective isolated hardware part will be ignored to init
during the next boot of the host.
- The isolated hardware details are stored in BMC and a user may
need to get that information through an external interface.
- In this patch, added a new HardwareIsolation LogService to get
or manage the isolated hardware.
- This HardwareIsolation feature can be enabled by using the
"hw-isolation" compile-time feature flag. It is enabled by default.
Other Reference:
- Design document for hardware isolation (aka guard)
https://github.com/openbmc/docs/blob/master/designs/guard-on-bmc.md
Tested:
- Checked whether the HardwareIsolation LogService is showing in
LogServiceCollection.
```
curl -k -H "X-Auth-Token: $bmc_token" -X GET \
https://${bmc}/redfish/v1/Systems/system/LogServices
{
"@odata.id": "/redfish/v1/Systems/system/LogServices",
"@odata.type": "#LogServiceCollection.LogServiceCollection",
"Description": "Collection of LogServices for this Computer System",
"Members": [
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog"
},
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/Dump"
},
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/PostCodes"
},
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/HardwareIsolation"
}
],
"[email protected]": 4,
"Name": "System Log Services Collection"
}
```
- Checked whether the HardwareIsolation LogService is showing with all
required LogService members.
```
curl -k -H "X-Auth-Token: $bmc_token" -X GET \
https://${bmc}/redfish/v1/Systems/system/LogServices/HardwareIsolation
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/HardwareIsolation",
"@odata.type": "#LogService.v1_2_0.LogService",
"Actions": {
"#LogService.ClearLog": {
"target": "/redfish/v1/Systems/system/LogServices/HardwareIsolation/Actions \
/LogService.ClearLog"
}
},
"Description": "Hardware Isolation LogService for system owned devices",
"Entries": {
"@odata.id": "/redfish/v1/Systems/system/LogServices/HardwareIsolation/Entries"
},
"Id": "HardwareIsolation",
"Name": "Hardware Isolation LogService"
}
```
Signed-off-by: Ramesh Iyyar <[email protected]>
Co-authored-by: Ramesh Iyyar <[email protected]>1 parent 3784e84 commit 58d3589
File tree
5 files changed
+99
-0
lines changed- config
- redfish-core
- lib
- src
5 files changed
+99
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1244 | 1244 | | |
1245 | 1245 | | |
1246 | 1246 | | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
1247 | 1259 | | |
1248 | 1260 | | |
1249 | 1261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
204 | 209 | | |
205 | 210 | | |
206 | 211 | | |
| |||
0 commit comments