Skip to content

WIP: hw-isolation rebase: Added guard, deconfiguration, sparecore #1279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 1120
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ feature_options = [
'experimental-redfish-multi-computer-system',
'google-api',
'host-serial-socket',
'hw-isolation',
'hypervisor-computer-system',
'hypervisor-serial-socket',
'ibm-led-extensions',
Expand Down
8 changes: 8 additions & 0 deletions meson.options
Original file line number Diff line number Diff line change
Expand Up @@ -578,3 +578,11 @@ option(
description: '''Enable hypervisor serial console WebSocket. Path is
\'/console1\'.''',
)

# BMCWEB_HW_ISOLATION
option(
'hw-isolation',
type: 'feature',
value: 'enabled',
description: 'Enable the Hardware Isolation feature',
)
18 changes: 18 additions & 0 deletions redfish-core/include/registries/openbmc.json
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,24 @@
"Resolution": "None.",
"Severity": "Critical"
},
"GuardRecord": {
"Description": "Indicates this resource is isolated.",
"Message": "%1 Guard Record %2",
"MessageSeverity": "OK",
"NumberOfArgs": 2,
"ParamTypes": ["string", "string"],
"Resolution": "None.",
"Severity": "OK"
},
"HardwareIsolationReason": {
"Description": "Indicates the condition that affects the health of this resource.",
"Message": "The reason for the resource isolation: %1",
"MessageSeverity": "OK",
"NumberOfArgs": 1,
"ParamTypes": ["string"],
"Resolution": "None.",
"Severity": "Critical"
},
"IPMIWatchdog": {
"Description": "Indicates that there is a host watchdog event.",
"Message": "Host Watchdog Event: %1",
Expand Down
311 changes: 169 additions & 142 deletions redfish-core/include/registries/openbmc_message_registry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,31 @@ constexpr std::array registry =
},
"None.",
}},
MessageEntry{
"GuardRecord",
{
"Indicates this resource is isolated.",
"%1 Guard Record %2",
"OK",
2,
{
"string",
"string",
},
"None.",
}},
MessageEntry{
"HardwareIsolationReason",
{
"Indicates the condition that affects the health of this resource.",
"The reason for the resource isolation: %1",
"OK",
1,
{
"string",
},
"None.",
}},
MessageEntry{
"IPMIWatchdog",
{
Expand Down Expand Up @@ -2439,147 +2464,149 @@ enum class Index
firmwareUpdateStaged = 49,
firmwareUpdateStarted = 50,
generalFirmwareSecurityViolation = 51,
iPMIWatchdog = 52,
intelUPILinkWidthReducedToHalf = 53,
intelUPILinkWidthReducedToQuarter = 54,
invalidLoginAttempted = 55,
invalidUpload = 56,
inventoryAdded = 57,
inventoryRemoved = 58,
lanLost = 59,
lanRegained = 60,
legacyPCIPERR = 61,
legacyPCISERR = 62,
mEAutoConfigFailed = 63,
mEAutoConfigSuccess = 64,
mEBootGuardHealthEvent = 65,
mECpuDebugCapabilityDisabled = 66,
mEDirectFlashUpdateRequested = 67,
mEExceptionDuringShutdown = 68,
mEFactoryResetError = 69,
mEFactoryRestore = 70,
mEFirmwareException = 71,
mEFirmwarePanicReason = 72,
mEFirmwareRecoveryReason = 73,
mEFirmwareResiliencyError = 74,
mEFlashEraseError = 75,
mEFlashStateInformation = 76,
mEFlashStateInformationWritingEnabled = 77,
mEFlashVerificationError = 78,
mEFlashWearOutWarning = 79,
mEImageExecutionFailed = 80,
mEInternalError = 81,
mEManufacturingError = 82,
mEMctpInterfaceError = 83,
mEMultiPchModeMisconfig = 84,
mEPeciOverDmiError = 85,
mEPttHealthEvent = 86,
mERecoveryGpioForced = 87,
mERestrictedMode = 88,
mESmbusLinkFailure = 89,
mEUmaError = 90,
mEUnsupportedFeature = 91,
manufacturingModeEntered = 92,
manufacturingModeExited = 93,
memoryECCCorrectable = 94,
memoryECCUncorrectable = 95,
memoryParityCommandAndAddress = 96,
memoryParityNotKnown = 97,
memoryRASConfigurationDisabled = 98,
memoryRASConfigurationEnabled = 99,
memoryRASModeDisabled = 100,
memoryRASModeEnabled = 101,
memoryThermTrip = 102,
mirroringRedundancyDegraded = 103,
mirroringRedundancyFull = 104,
nMIButtonPressed = 105,
nMIDiagnosticInterrupt = 106,
pCIeCorrectableAdvisoryNonFatal = 107,
pCIeCorrectableBadDLLP = 108,
pCIeCorrectableBadTLP = 109,
pCIeCorrectableHeaderLogOverflow = 110,
pCIeCorrectableInternal = 111,
pCIeCorrectableLinkBWChanged = 112,
pCIeCorrectableReceiverError = 113,
pCIeCorrectableReplayNumRollover = 114,
pCIeCorrectableReplayTimerTimeout = 115,
pCIeCorrectableUnspecifiedAERError = 116,
pCIeFatalACSViolation = 117,
pCIeFatalAtomicEgressBlocked = 118,
pCIeFatalCompleterAbort = 119,
pCIeFatalCompletionTimeout = 120,
pCIeFatalDataLinkLayerProtocol = 121,
pCIeFatalECRCError = 122,
pCIeFatalFlowControlProtocol = 123,
pCIeFatalMCBlockedTLP = 124,
pCIeFatalMalformedTLP = 125,
pCIeFatalPoisonedTLP = 126,
pCIeFatalReceivedErrNonFatalMessage = 127,
pCIeFatalReceivedFatalMessageFromDownstream = 128,
pCIeFatalReceiverBufferOverflow = 129,
pCIeFatalSurpriseLinkDown = 130,
pCIeFatalTLPPrefixBlocked = 131,
pCIeFatalUncorrectableInternal = 132,
pCIeFatalUnexpectedCompletion = 133,
pCIeFatalUnspecifiedNonAERFatalError = 134,
pCIeFatalUnsupportedRequest = 135,
powerButtonLongPressed = 136,
powerButtonPressed = 137,
powerRestorePolicyApplied = 138,
powerSupplyConfigurationError = 139,
powerSupplyConfigurationErrorRecovered = 140,
powerSupplyFailed = 141,
powerSupplyFailurePredicted = 142,
powerSupplyFanFailed = 143,
powerSupplyFanRecovered = 144,
powerSupplyInserted = 145,
powerSupplyPowerGoodFailed = 146,
powerSupplyPowerLost = 147,
powerSupplyPowerRestored = 148,
powerSupplyPredictedFailureRecovered = 149,
powerSupplyRecovered = 150,
powerSupplyRemoved = 151,
powerUnitDegradedFromNonRedundant = 152,
powerUnitDegradedFromRedundant = 153,
powerUnitNonRedundantFromInsufficient = 154,
powerUnitNonRedundantInsufficient = 155,
powerUnitNonRedundantSufficient = 156,
powerUnitRedundancyDegraded = 157,
powerUnitRedundancyLost = 158,
powerUnitRedundancyRegained = 159,
resetButtonPressed = 160,
sELEntryAdded = 161,
securityBoot2ndFlashEnabled = 162,
securityP2aBridgeEnabled = 163,
securityUartPortDebugEnabled = 164,
securityUserNonRootUidZeroAssigned = 165,
securityUserNonRootUidZeroRemoved = 166,
securityUserRootDisabled = 167,
securityUserRootEnabled = 168,
securityUserStrongHashAlgoRestored = 169,
securityUserUnsupportedShellEnabled = 170,
securityUserUnsupportedShellRemoved = 171,
securityUserWeakHashAlgoEnabled = 172,
sensorThresholdCriticalHighGoingHigh = 173,
sensorThresholdCriticalHighGoingLow = 174,
sensorThresholdCriticalLowGoingHigh = 175,
sensorThresholdCriticalLowGoingLow = 176,
sensorThresholdWarningHighGoingHigh = 177,
sensorThresholdWarningHighGoingLow = 178,
sensorThresholdWarningLowGoingHigh = 179,
sensorThresholdWarningLowGoingLow = 180,
serviceFailure = 181,
serviceStarted = 182,
sparingRedundancyDegraded = 183,
sparingRedundancyFull = 184,
ssbThermalTrip = 185,
systemInterfaceDisabledProvisioned = 186,
systemInterfaceUnprovisioned = 187,
systemInterfaceWhitelistProvisioned = 188,
systemPowerGoodFailed = 189,
systemPowerLost = 190,
systemPowerOffFailed = 191,
systemPowerOnFailed = 192,
voltageRegulatorOverheated = 193,
guardRecord = 52,
hardwareIsolationReason = 53,
iPMIWatchdog = 54,
intelUPILinkWidthReducedToHalf = 55,
intelUPILinkWidthReducedToQuarter = 56,
invalidLoginAttempted = 57,
invalidUpload = 58,
inventoryAdded = 59,
inventoryRemoved = 60,
lanLost = 61,
lanRegained = 62,
legacyPCIPERR = 63,
legacyPCISERR = 64,
mEAutoConfigFailed = 65,
mEAutoConfigSuccess = 66,
mEBootGuardHealthEvent = 67,
mECpuDebugCapabilityDisabled = 68,
mEDirectFlashUpdateRequested = 69,
mEExceptionDuringShutdown = 70,
mEFactoryResetError = 71,
mEFactoryRestore = 72,
mEFirmwareException = 73,
mEFirmwarePanicReason = 74,
mEFirmwareRecoveryReason = 75,
mEFirmwareResiliencyError = 76,
mEFlashEraseError = 77,
mEFlashStateInformation = 78,
mEFlashStateInformationWritingEnabled = 79,
mEFlashVerificationError = 80,
mEFlashWearOutWarning = 81,
mEImageExecutionFailed = 82,
mEInternalError = 83,
mEManufacturingError = 84,
mEMctpInterfaceError = 85,
mEMultiPchModeMisconfig = 86,
mEPeciOverDmiError = 87,
mEPttHealthEvent = 88,
mERecoveryGpioForced = 89,
mERestrictedMode = 90,
mESmbusLinkFailure = 91,
mEUmaError = 92,
mEUnsupportedFeature = 93,
manufacturingModeEntered = 94,
manufacturingModeExited = 95,
memoryECCCorrectable = 96,
memoryECCUncorrectable = 97,
memoryParityCommandAndAddress = 98,
memoryParityNotKnown = 99,
memoryRASConfigurationDisabled = 100,
memoryRASConfigurationEnabled = 101,
memoryRASModeDisabled = 102,
memoryRASModeEnabled = 103,
memoryThermTrip = 104,
mirroringRedundancyDegraded = 105,
mirroringRedundancyFull = 106,
nMIButtonPressed = 107,
nMIDiagnosticInterrupt = 108,
pCIeCorrectableAdvisoryNonFatal = 109,
pCIeCorrectableBadDLLP = 110,
pCIeCorrectableBadTLP = 111,
pCIeCorrectableHeaderLogOverflow = 112,
pCIeCorrectableInternal = 113,
pCIeCorrectableLinkBWChanged = 114,
pCIeCorrectableReceiverError = 115,
pCIeCorrectableReplayNumRollover = 116,
pCIeCorrectableReplayTimerTimeout = 117,
pCIeCorrectableUnspecifiedAERError = 118,
pCIeFatalACSViolation = 119,
pCIeFatalAtomicEgressBlocked = 120,
pCIeFatalCompleterAbort = 121,
pCIeFatalCompletionTimeout = 122,
pCIeFatalDataLinkLayerProtocol = 123,
pCIeFatalECRCError = 124,
pCIeFatalFlowControlProtocol = 125,
pCIeFatalMCBlockedTLP = 126,
pCIeFatalMalformedTLP = 127,
pCIeFatalPoisonedTLP = 128,
pCIeFatalReceivedErrNonFatalMessage = 129,
pCIeFatalReceivedFatalMessageFromDownstream = 130,
pCIeFatalReceiverBufferOverflow = 131,
pCIeFatalSurpriseLinkDown = 132,
pCIeFatalTLPPrefixBlocked = 133,
pCIeFatalUncorrectableInternal = 134,
pCIeFatalUnexpectedCompletion = 135,
pCIeFatalUnspecifiedNonAERFatalError = 136,
pCIeFatalUnsupportedRequest = 137,
powerButtonLongPressed = 138,
powerButtonPressed = 139,
powerRestorePolicyApplied = 140,
powerSupplyConfigurationError = 141,
powerSupplyConfigurationErrorRecovered = 142,
powerSupplyFailed = 143,
powerSupplyFailurePredicted = 144,
powerSupplyFanFailed = 145,
powerSupplyFanRecovered = 146,
powerSupplyInserted = 147,
powerSupplyPowerGoodFailed = 148,
powerSupplyPowerLost = 149,
powerSupplyPowerRestored = 150,
powerSupplyPredictedFailureRecovered = 151,
powerSupplyRecovered = 152,
powerSupplyRemoved = 153,
powerUnitDegradedFromNonRedundant = 154,
powerUnitDegradedFromRedundant = 155,
powerUnitNonRedundantFromInsufficient = 156,
powerUnitNonRedundantInsufficient = 157,
powerUnitNonRedundantSufficient = 158,
powerUnitRedundancyDegraded = 159,
powerUnitRedundancyLost = 160,
powerUnitRedundancyRegained = 161,
resetButtonPressed = 162,
sELEntryAdded = 163,
securityBoot2ndFlashEnabled = 164,
securityP2aBridgeEnabled = 165,
securityUartPortDebugEnabled = 166,
securityUserNonRootUidZeroAssigned = 167,
securityUserNonRootUidZeroRemoved = 168,
securityUserRootDisabled = 169,
securityUserRootEnabled = 170,
securityUserStrongHashAlgoRestored = 171,
securityUserUnsupportedShellEnabled = 172,
securityUserUnsupportedShellRemoved = 173,
securityUserWeakHashAlgoEnabled = 174,
sensorThresholdCriticalHighGoingHigh = 175,
sensorThresholdCriticalHighGoingLow = 176,
sensorThresholdCriticalLowGoingHigh = 177,
sensorThresholdCriticalLowGoingLow = 178,
sensorThresholdWarningHighGoingHigh = 179,
sensorThresholdWarningHighGoingLow = 180,
sensorThresholdWarningLowGoingHigh = 181,
sensorThresholdWarningLowGoingLow = 182,
serviceFailure = 183,
serviceStarted = 184,
sparingRedundancyDegraded = 185,
sparingRedundancyFull = 186,
ssbThermalTrip = 187,
systemInterfaceDisabledProvisioned = 188,
systemInterfaceUnprovisioned = 189,
systemInterfaceWhitelistProvisioned = 190,
systemPowerGoodFailed = 191,
systemPowerLost = 192,
systemPowerOffFailed = 193,
systemPowerOnFailed = 194,
voltageRegulatorOverheated = 195,
};
} // namespace redfish::registries::openbmc
Loading