Skip to content
Commit a869bae8 authored by Tinh Nguyen's avatar Tinh Nguyen Committed by Ard Biesheuvel
Browse files

AmpereAltraPkg: Add retry logic when PCIe card is present



Add PCIe link retry logic. If the card is detected to be present, allow
a retry for 3 times.

When the link is down, check if the LTSSMEN bit is cleared.  Based on
Altra PCIe IP, the LTSSMEN bit is cleared from 1 to 0 if there is a
surprising link down.  This indicates that a card is present.

Signed-off-by: default avatarMinh Nguyen <minhnguyen1@os.amperecomputing.com>
Reviewed-by: default avatarNhi Pham <nhi@os.amperecomputing.com>
parent 7460522f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment