-
Notifications
You must be signed in to change notification settings - Fork 130
lsvpd validation for spyre #3078
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
base: master
Are you sure you want to change the base?
lsvpd validation for spyre #3078
Conversation
Signed-off-by: Sai Janani C <jananic@linux.ibm.com>
Signed-off-by: Sai Janani C <jananic@linux.ibm.com>
abdhaleegit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- commit description missing
- run Logs missing
- please remove sosreport commit form this pr
- lot of syntax issue.. please fix
| self.fail(f"Errors for above pci addresses: {error}") | ||
|
|
||
| def test_spyre_lsvpd_validation(self): | ||
| if process.system("vpdupdate", ignore_status=True, shell=True): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation messed up.. please fix it
| with open(cls) as f: | ||
| if f.read().strip().startswith('0x1200'): | ||
| spyre_devices.append(dev) | ||
| except Exception: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reuse the avocado utils get_pci_class method
| sysfs_subvendor = self.run_cmd_out( | ||
| f"cat /sys/bus/pci/devices/{dev}/subsystem_vendor").strip() | ||
| sysfs_subdevice = self.run_cmd_out( | ||
| f"cat /sys/bus/pci/devices/{dev}/subsystem_device").strip() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reuse pci utils
|
|
||
| spyre_block = [] | ||
| capture = False | ||
| for line in lsvpd_out.splitlines(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent messed up
| self.fail(f"Invalid EC value for Spyre device {dev}") | ||
|
|
||
| if not fw_vpd: | ||
| self.fail(f"Firmware value missing for Spyre device {dev}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optimize .. may be loop ?
No description provided.