opencomputeproject / ocp-diag-pci_lmt Goto Github PK
View Code? Open in Web Editor NEWPCIe Lane Margining Tool (LMT)
License: MIT License
PCIe Lane Margining Tool (LMT)
License: MIT License
Now that #10 is in, there should be a release so users can download a package with this fix so that they can run on python 3.8
> python3.11 src/pci_lmt_bin/main.py
Traceback (most recent call last):
File "/home/mimir-d/proj/ocp-diag-pci_lmt/src/pci_lmt_bin/main.py", line 16, in <module>
from pci_lmt import collector
File "/home/mimir-d/proj/ocp-diag-pci_lmt/src/pci_lmt/collector.py", line 17, in <module>
from pci_lmt.results import LmtLaneResult, LmtTestInfo, Reporter
File "/home/mimir-d/proj/ocp-diag-pci_lmt/src/pci_lmt/results.py", line 29, in <module>
@dc.dataclass
^^^^^^^^^^^^
File "/usr/lib64/python3.11/dataclasses.py", line 1230, in dataclass
return wrap(cls)
^^^^^^^^^
File "/usr/lib64/python3.11/dataclasses.py", line 1220, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'pci_lmt.results.LmtTestInfo'> for field test_info is not allowed: use default_factory
Hi,
I'm trying to use this LMT tool in Windows, but it's not working with below error messages:
BDF:02:00.0 Could not read PCI reg at address 0x34. Exception:list index out of range
I've tried with LinuxOS with same config files(Note that I made sure BDF numbers are the same), and it worked well,
but in WindowOS, it seems like the tool can't access to some registers.
Is there something that I should do in order to run LMT in WindowOS?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.