Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support PCI IDs #3420

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

SRIKKANTH
Copy link
Collaborator

This will help in identifying devices even better.
Example: NVMe local devices vs remote storage devices when disc controller type == NVMe.

@SRIKKANTH SRIKKANTH marked this pull request as draft September 14, 2024 07:15
@SRIKKANTH SRIKKANTH marked this pull request as ready for review September 14, 2024 08:29
@SRIKKANTH SRIKKANTH force-pushed the smyakam/lspci_support_for_ids_14_09_2024 branch from 56c2acf to f17921b Compare September 14, 2024 12:45
@SRIKKANTH SRIKKANTH marked this pull request as draft September 15, 2024 16:30
@SRIKKANTH SRIKKANTH force-pushed the smyakam/lspci_support_for_ids_14_09_2024 branch 4 times, most recently from 1941252 to 19dca4b Compare September 16, 2024 17:08
def parse(self, raw_str: str, pci_ids: Dict[str, Any]) -> None:
matched_pci_device_info = PATTERN_PCI_DEVICE.match(raw_str)
if matched_pci_device_info:
self.slot = matched_pci_device_info.group("slot")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason to remove assertions?

return device_type_list

@retry(KeyError, tries=10, delay=20)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why retry can fix key errors?

@SRIKKANTH SRIKKANTH force-pushed the smyakam/lspci_support_for_ids_14_09_2024 branch from 19dca4b to c8ea16b Compare September 19, 2024 04:40
This will help in identifying devices even better.
Example: NVMe local devices vs remote storage devices when disc controller type == NVMe.

An issue with below testcases detected was fixed as part of this PR.
stress_sriov_with_max_nics_reboot_from_platform
stress_sriov_with_max_nics_stop_start_from_platform
Issue:
It takes a while to populate/detect all VFs after VM boot.
These tests were passing even if not all VF PCI devices were detected. Added 120s wait time to populate all VFs correctly in below testcases to fix the issue.
@SRIKKANTH SRIKKANTH force-pushed the smyakam/lspci_support_for_ids_14_09_2024 branch from 76bd4a9 to 33623ea Compare September 19, 2024 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants