Add test cases for panic/OPAL TI for TOD failover recory failure. #445
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Two commits
Commit 1: hmi: Add test case to trigger TOD topology switch.
Commit 2: Opal TI: Add test for OPAL TI.
Observations:
On Zaius, I see the panic + reboot after HMI failure works fine. But on one of the Witherspoon I have seen hangs in ipmi_msg_sync while dumping dmesg buffer to nvram (pnv_platform_error_reboot->panic_flush_kmsg_end->kmsg_dump->pstore_dump->OPAL..calls..->ipmi_queue_msg_sync). Investigating more to understand why we don't get ipmi timeout which can get systsem out of hang..
On Manual OPAL TI, I see following messages:
3.24326|secure|SecureROM valid - enabling functionality
4.57365|IPMI: shutdown requested
I need to try this on few another system with latest PNOR.
NOTE: The above tests verifies that system reboots successfully after panic or OPAL TI OR else test fails with appropriate error message.
Tests can be run with below option independently:
--run testcases.OpTestHMIHandling.OpalTI
--run testcases.OpTestHMIHandling.TodTopologyFailoverOpalTI
--run testcases.OpTestHMIHandling.TodTopologyFailoverPanic