Skip to content

Commit 20e0a18

Browse files
filipleplemkopec
authored andcommitted
dasharo-compatibility/360-power-after-fail.md: added
Signed-off-by: Filip Lewiński <filip.lewinski@3mdeb.com>
1 parent f7cbd9c commit 20e0a18

File tree

2 files changed

+175
-0
lines changed

2 files changed

+175
-0
lines changed
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
# Dasharo Compatibility: Power State After Power Failure
2+
3+
## PSF001.001 Check Power State After Power Failure default state (firmware)
4+
5+
**Test description**
6+
7+
This BIOS setup feature allows users to determine the system's power state
8+
after a power failure. Users can choose between restoring the previous power
9+
state or always returning to a powered off state. This test ensures that the
10+
option is present, and the default state of this option after flashing is
11+
correct.
12+
13+
**Test configuration data**
14+
15+
1. `FIRMWARE` = Dasharo
16+
17+
**Test setup**
18+
19+
1. Proceed with the
20+
[Generic test setup: firmware](../generic-test-setup.md#firmware).
21+
22+
**Test steps**
23+
24+
1. Power on the DUT.
25+
1. While the DUT is booting, hold the `BIOS_SETUP_KEY` to enter the UEFI Setup
26+
Menu.
27+
1. Enter the `Dasharo System Features` menu using the arrow keys and Enter.
28+
1. Enter the `Power Management Options` submenu.
29+
1. Verify the `Power state after power failure` field.
30+
31+
**Expected result**
32+
33+
The `Power state after power failure` field should inform that the current
34+
Power state after power failure is `Powered Off`.
35+
36+
## PSF002.001 Powered Off State Restoration Test
37+
38+
**Test description**
39+
40+
This test verifies that the `Powered Off` setting works correctly. After we
41+
cut and restore power, the machine should not power on by itself.
42+
43+
**Test configuration data**
44+
45+
1. `FIRMWARE` = Dasharo
46+
47+
**Test setup**
48+
49+
1. Proceed with the
50+
[Generic test setup: firmware](../generic-test-setup.md#firmware).
51+
52+
**Test steps**
53+
54+
1. Power on the DUT.
55+
1. While the DUT is booting, hold the `BIOS_SETUP_KEY` to enter the UEFI Setup
56+
Menu.
57+
1. Enter the `Dasharo System Features` menu using the arrow keys and Enter.
58+
1. Enter the `Power Management Options` submenu.
59+
1. Set the `Power state after power failure` field to `Powered Off`.
60+
1. Simulate a power failure by cutting power to the system.
61+
1. Restore power and verify that the system does not attempt to start on
62+
its own.
63+
1. Note the results.
64+
65+
**Expected result**
66+
67+
The system should remain in the power off state upon power restoration.
68+
69+
## PSF003.001 Powered On State Restoration Test
70+
71+
**Test description**
72+
73+
This test verifies that the `Powered On` setting works correctly. After we
74+
cut and restore power, the machine should not power on by itself.
75+
76+
**Test configuration data**
77+
78+
1. `FIRMWARE` = Dasharo
79+
80+
**Test setup**
81+
82+
1. Proceed with the
83+
[Generic test setup: firmware](../generic-test-setup.md#firmware).
84+
85+
**Test steps**
86+
87+
1. Power on the DUT.
88+
1. While the DUT is booting, hold the `BIOS_SETUP_KEY` to enter the UEFI Setup
89+
Menu.
90+
1. Enter the `Dasharo System Features` menu using the arrow keys and Enter.
91+
1. Enter the `Power Management Options` submenu.
92+
1. Set the `Power state after power failure` field to `Powered On`.
93+
1. Simulate a power failure by cutting power to the system.
94+
1. Restore power and verify that the system attempts to power on without
95+
any external prompt.
96+
1. Note the results.
97+
98+
**Expected result**
99+
100+
The system should attempt to power on upon power restoration.
101+
102+
## PSF004.001 Previous Power State Restoration Test - Powered Off
103+
104+
**Test description**
105+
106+
This test verifies that the `The state at the moment of power failure` setting
107+
works correctly if the machine was **powered off** prior to the failure. After we
108+
cut and restore power, the machine should remain powered off.
109+
110+
**Test configuration data**
111+
112+
1. `FIRMWARE` = Dasharo
113+
114+
**Test setup**
115+
116+
1. Proceed with the
117+
[Generic test setup: firmware](../generic-test-setup.md#firmware).
118+
119+
**Test steps**
120+
121+
1. Power on the DUT.
122+
1. While the DUT is booting, hold the `BIOS_SETUP_KEY` to enter the UEFI Setup
123+
Menu.
124+
1. Enter the `Dasharo System Features` menu using the arrow keys and Enter.
125+
1. Enter the `Power Management Options` submenu.
126+
1. Set the `Power state after power failure` field to
127+
`The state at the moment of power failure`.
128+
1. Power off the DUT.
129+
1. Simulate a power failure by cutting power to the system.
130+
1. Restore power and verify that the system does not attempt to start on
131+
its own.
132+
1. Note the results.
133+
134+
**Expected result**
135+
136+
The system should remain in the powered off state upon power restoration.
137+
138+
## PSF004.002 Previous Power State Restoration Test - Powered On
139+
140+
**Test description**
141+
142+
This test verifies that the `The state at the moment of power failure` setting
143+
works correctly if the machine was **powered on** prior to the failure. After
144+
we cut and restore power, the machine should attempt to power on without any
145+
external prompt.
146+
147+
**Test configuration data**
148+
149+
1. `FIRMWARE` = Dasharo
150+
151+
**Test setup**
152+
153+
1. Proceed with the
154+
[Generic test setup: firmware](../generic-test-setup.md#firmware).
155+
156+
**Test steps**
157+
158+
1. Power on the DUT.
159+
1. While the DUT is booting, hold the `BIOS_SETUP_KEY` to enter the UEFI Setup
160+
Menu.
161+
1. Enter the `Dasharo System Features` menu using the arrow keys and Enter.
162+
1. Enter the `Power Management Options` submenu.
163+
1. Set the `Power state after power failure` field to
164+
`The state at the moment of power failure`.
165+
1. Do **not** power off the DUT.
166+
1. Simulate a power failure by cutting power to the system.
167+
1. Restore power and verify that the system attempts to power on without
168+
any external prompt.
169+
1. Note the results.
170+
171+
**Expected result**
172+
173+
The system should attempt to power on upon power restoration.

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
site_name: Dasharo Universe
33
site_url: https://docs.dasharo.com
4+
45
repo_url: https://github.com/dasharo/docs
56
theme:
67
name: material
@@ -418,6 +419,7 @@ nav:
418419
- 'BIOS menu function keys': unified-test-documentation/dasharo-compatibility/357-bios-menu-function-keys.md
419420
- 'Suspend Mechanism Switching S0ix/S3': unified-test-documentation/dasharo-compatibility/358-suspend-mechanism-switching-S0ix-S3.md
420421
- 'Block boot when battery is low': unified-test-documentation/dasharo-compatibility/359-battery-boot-block.md
422+
- 'Power State after Power Fail': unified-test-documentation/dasharo-compatibility/360-power-after-fail.md
421423
- 'Dasharo security':
422424
- 'TPM support': unified-test-documentation/dasharo-security/200-tpm-support.md
423425
- 'Verified Boot': unified-test-documentation/dasharo-security/201-verified-boot.md

0 commit comments

Comments
 (0)