Add pcie_test.py for testing PCIe ASPM and link speed (New)#2162
Open
seankingyang wants to merge 3 commits intocanonical:mainfrom
Open
Add pcie_test.py for testing PCIe ASPM and link speed (New)#2162seankingyang wants to merge 3 commits intocanonical:mainfrom
seankingyang wants to merge 3 commits intocanonical:mainfrom
Conversation
bb19b95 to
0c7a962
Compare
bd03844 to
6d7a942
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2162 +/- ##
==========================================
+ Coverage 53.24% 53.43% +0.18%
==========================================
Files 399 400 +1
Lines 42810 42992 +182
Branches 7906 7944 +38
==========================================
+ Hits 22796 22973 +177
Misses 19209 19209
- Partials 805 810 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
79f47eb to
34f5786
Compare
34f5786 to
fc00c41
Compare
Contributor
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in a week. |
Contributor
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in a week. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Wait for PR #2166 merge or this github action will failed in unit test.
This PR adds a new test script
pcie_test.pyto validate PCIe device configurations on Ubuntu systems (x86 and ARM64).providers/base/bin/pcie_test.pythat useslspcito verify:Documentation
$ sudo ./pcie_test.py -h usage: pcie_test.py [-h] [--debug] {resource,check_speed,check_aspm} ... A script to test PCIe link state against hardware capability. positional arguments: {resource,check_speed,check_aspm} Available commands resource List all PCIe devices. check_speed Check the link speed and width of a specific PCIe device. check_aspm Check the ASPM state of a specific PCIe device. options: -h, --help show this help message and exit --debug Turn on debug level output for extra info during test run.Usage examples:
Tests
List all PCIe devices:
$ sudo ./pcie_test.py resource Discovering PCIe resources... pcie_num: 0000:00:00.0 pcie_name: Host bridge: Intel Corporation 11th Gen Core Processor Host Bridge/DRAM Registers (rev 01) pcie_num: 0000:00:02.0 pcie_name: VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01) pcie_num: 0000:00:04.0 pcie_name: Signal processing controller: Intel Corporation TigerLake-LP Dynamic Tuning Processor Participant (rev 01) pcie_num: 0000:00:0e.0 pcie_name: RAID bus controller: Intel Corporation Volume Management Device NVMe RAID Controller <.... skip ...>Check link speed:
Check ASPM state: