You are on page 1of 8

Configuring Power Management settings to

enter to and exit from L0s state in Exerciser

When no DLLP or TLP is transmitted for a specified time, then Exerciser can initiate the
transition to L0s state on the transmitting side.
To start the initiation to L0s on Tx side,configure the following in Exerciser GUI :

1. The Link state should be Active as in figure below:

2. Click the Config Space icon.


3. Click on Function A tab.
4. Click the PCIe Capabilities.
5. In Link Capabilities Register, select the L0s supported option for the Active State
Link PM Support field.
6. In the Link Control Register, select L0s entry enabled for the Active State PM
Control field.
7. Click Apply.
8. Go to Power Management page in General Settings.
9. Enter the time duration to enter to L0s state after no TLP/DLLP is transmitted from
Exerciser as per the image below: ( 1st control )
10. Select the option to Exit from L0 after the specified timeout value as per image
above.
11. Click Apply. ( in ltssm state run capture state transisiton testcase to check the
ltssm state )
12. In Analyzer, apply trigger to capture FTS packets.
13. Start capture and ensure capture state is Waiting.
14. Click the Virtual Channel in the navigation pane.
15. Disable the Send FC update for Exerciser and initiate link recovery if no FC update
is received options.

16. Check if the Analyzer is triggered after capturing FTS packets


17. The duration to enter to L0s can be verified by measuring the time difference
between the last FC update from the Exerciser and the first EIOS packet from the
same side. The time measured should be almost same as the L0 entry timeout.
● Place the first marker on the last update FC (sample number: 462 in trace
provided).
● Place the second marker on the first EIOS (sample number: 477 in trace
provided).
● Check the time measurement between both markers and compare with
the L0s entry time specified.
18. The duration to exit from L0 can be verified by measuring the time difference
between the last EIOS packet and the next FTS packet in sequence transmitted
from the Exerciser of same side. The time measurement should be almost same as
the L0 exit time duration.
● Place the first marker on the last EIOS packet (sample number: 504 in
trace provided).
● Place the second marker on the first FTS packet in sequence (sample
number: 505 in trace provided)..
● Check the time measurement between both markers and compare with
the L0s exit time duration specified.
19. Compute the trace in LTSSM overview to see the state transition of L0s entry and
exit from L0s of the exerciser.

Note: Settings for sending given number of FTS, SKP OS and TS settings (image shown below)
cannot be verified as the expected sequence of FTS upon exit from L0s is not proper.
(CORVETTE-1595)
Configuring Power Management settings to enter to and exit from L1 state in Exerciser

Enable the ASPM L1 support for Exerciser.


1. Click the Config space icon in the navigation pane.
2. Click the Function A tab and Click the PCIe Capabilities tab.
3. In the Link Capabilities Register section, select the L1 supported option for the Active State
Link PM Support field.

4. In the Link Control Register section, select the L1 entry enabled option for the Active State
PM Control field.

5. Click Apply.
6. Disable the Send FC Update for Exerciser. If this option is not disabled, then Exerciser will
continue transmitting flow control update DLLPs at regular intervals and the transition to L1 will
not happen.

7. Click the Virtual Channel icon in the navigation pane.In the Resend/Update Periods section,
clear the Send FC Update each (us) checkbox.
8. Click Apply.
9. Specify the time interval for which the link should be idle for Exerciser to enter the L1 state.
10. Click the General Settings icon in the navigation pane.Click the Power Management tab.
11. In the L1 section, specify the time period (in ns) in the Enter ASPM L1 after having seen no
TLP/DLLP for (ns) field.

12. Click Apply.


13. In Analyzer apply trigger to capture EIOS packet.
14. Start capture and and wait to finish capturing.
15. The duration to enter to L1 can be verified by measuring the time difference
between the last Update FC cpl packet from the Exerciser and the first PM Active req L1
packet from the same side. The time measured should be almost same as the L1 entry
time given in Exerciser.
16.The duration to exit from L1 can be verified by measuring the time difference
between the last EIOS packet and the next TS packet in sequence transmitted from the
Exerciser of same side. The time measurement should be almost same as the L1 exit
time duration given in Exerciser.
17.Compute the trace in LTSSM overview to see the state transition of L1 entry and exit
from L1 of the exerciser.
Enable Aggressive mode for PCI-PM L1

1. Enable the Aggressive mode for PCI-PM L1 In the power management tab and click apply.
2. Disable the Exit L1 (ASPM-PCI PM) in the Upstream Exerciser and Enable the Exit L1 (ASPM-
PCI PM)in the Downstream Exerciser.
3. Click the Virtual Channel icon in the navigation pane.In the Resend/Update Periods section,
clear the Send FC Update each (us) checkbox.
4. Add a Config Write packet in the downstream.
5. Change the Offset from 000 to 044 and the data from 00000000 to 03000000.
6. Send the packet.
7. In the Upstream goto config Space and click on the Power management tab.
8. Reload the config space and check the Power managemenet status control section. The
Power state MSB (Bit 1 ) and Power state LSB (Bit 0) Should be enabled.
9. Goto LTSSM basic tests and run the Capture state transitions test.
10.

You might also like