Platform Driver Developement Framework (PDDF)#4756
Platform Driver Developement Framework (PDDF)#4756jleveque merged 9 commits intosonic-net:masterfrom
Conversation
|
This pull request introduces 121 alerts when merging be6ee68898e187413de3e9790d93be2e459b1556 into 4da4955 - view on LGTM.com new alerts:
|
jleveque
left a comment
There was a problem hiding this comment.
There is a large number of LGTM alerts. Please address.
be6ee68 to
3baa2df
Compare
|
This pull request introduces 121 alerts when merging 3baa2df527df380ed045cdee00ef56cb2d64455e into 567da44 - view on LGTM.com new alerts:
|
|
This pull request introduces 22 alerts when merging 77e8fdec538d19b2aea7312df1a7d27de0d9ec1e into 78baece - view on LGTM.com new alerts:
|
|
This pull request introduces 8 alerts when merging 26d735756c31a15493173731d49fcf6c91718420 into 78baece - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
lgtm [py/call/wrong-number-class-arguments]
There was a problem hiding this comment.
lgtm [py/call/wrong-number-class-arguments]
There was a problem hiding this comment.
lgtm [py/call/wrong-number-class-arguments]
There was a problem hiding this comment.
lgtm [py/call/wrong-number-class-arguments]
There was a problem hiding this comment.
lgtm [py/call/wrong-number-class-arguments]
There was a problem hiding this comment.
lgtm [py/call/wrong-number-class-arguments]
There was a problem hiding this comment.
lgtm [py/call/wrong-number-class-arguments]
|
Added comment |
|
This pull request introduces 8 alerts when merging 7ed4fda0184fb762b12af434ecd12a7f5c59750a into 78baece - view on LGTM.com new alerts:
|
|
This pull request introduces 8 alerts when merging 7580b6c78452b402c8ff63fb4ac2ef3fea19805d into 78baece - view on LGTM.com new alerts:
|
|
This pull request introduces 7 alerts when merging 3a837d772c70c77086290c6101103fda68f74f92 into 78baece - view on LGTM.com new alerts:
|
3a837d7 to
92e9790
Compare
|
This pull request introduces 7 alerts when merging 92e979096e8609da0b4f74452790980696d5c527 into 2b5e418 - view on LGTM.com new alerts:
|
|
retest vsimage |
|
retest vsimage please |
|
Need to ignore the 7 LGTM errors. These errors are flagged because LGTM is trying to match platform classes developed outside of the PDDF framework with the expectations of the framework, which is not really valid. |
|
@jleveque - can we get this one merged please? |
jleveque
left a comment
There was a problem hiding this comment.
As comments. Also, please resolve the conflict. Also suggest running all Python files through a tool such as autopep8 (e.g., autopep8 --max-line-length 120) to unify code style.
platform/pddf/i2c/utils/pddf_util.py
Outdated
There was a problem hiding this comment.
Please reorganize imports per PEP8 standards?
Imports should be grouped in the following order, alphabetically sorted within each group:
Standard library imports.
Related third party imports.
Local application/library specific imports.
You should put a blank line between each group of imports.
Also, please limit to one import per line (i.e., split sys and getopt to separate lines). Also remove commented-out imports.
Please do the same for all Python files in the PR.
platform/pddf/i2c/utils/pddf_util.py
Outdated
There was a problem hiding this comment.
Please remove all commented code.
platform/pddf/i2c/utils/pddfparse.py
Outdated
There was a problem hiding this comment.
Remove extra blank line inside function body and commented code. Please do this throughout the PR.
92e9790 to
32c8657
Compare
|
This pull request introduces 8 alerts when merging 32c8657a5f13d3d48116d71c32a827c3916abff8 into 5708e32 - view on LGTM.com new alerts:
|
|
This pull request introduces 9 alerts when merging 83ea1651317d915ba59e6c7d12538468c50bec61 into 5708e32 - view on LGTM.com new alerts:
|
|
This pull request introduces 7 alerts when merging 020ccbb2d020c280408d2d16577f69aa9280d0cb into 5708e32 - view on LGTM.com new alerts:
|
|
@jleveque - I took care of your comments. Can you review? |
Signed-off-by: Fuzail Khan <fuzail.khan@broadcom.com>
020ccbb to
c14b93a
Compare
|
This pull request introduces 7 alerts when merging 42a9c72 into ce6286e - view on LGTM.com new alerts:
|
|
retest vsimage please |
|
retest vsimage, vs, broadcom please |
|
retest broadcom please |
|
retest vs please |
|
restest vsimage |
|
restest vsimage please |
1 similar comment
|
restest vsimage please |
|
@jleveque |
|
retest vsimage please |
This change introduces PDDF which is described here: sonic-net/SONiC#536 Most of the platform bring up effort goes in developing the platform device drivers, SONiC platform APIs and validating them. Typically each platform vendor writes their own drivers and platform APIs which is very tailor made to that platform. This involves writing code, building, installing it on the target platform devices and testing. Many of the details of the platform are hard coded into these drivers, from the HW spec. They go through this cycle repetitively till everything works fine, and is validated before upstreaming the code. PDDF aims to make this platform driver and platform APIs development process much simpler by providing a data driven development framework. This is enabled by: JSON descriptor files for platform data Generic data-driven drivers for various devices Generic SONiC platform APIs Vendor specific extensions for customisation and extensibility Signed-off-by: Fuzail Khan <fuzail.khan@broadcom.com>
Signed-off-by: Fuzail Khan fuzail.khan@broadcom.com
This change introduces PDDF which is described here,
sonic-net/SONiC#536
Most of the platform bring up effort goes in developing the platform device drivers, SONiC platform APIs and validating them. Typically each platform vendor writes their own drivers and platform APIs which is very tailor made to that platform. This involves writing code, building, installing it on the target platform devices and testing. Many of the details of the platform are hard coded into these drivers, from the HW spec. They go through this cycle repetitively till everything works fine, and is validated before upstreaming the code.
PDDF aims to make this platform driver and platform APIs development process much simpler by providing a data driven development framework. This is enabled by:
JSON descriptor files for platform data
Generic data-driven drivers for various devices
Generic SONiC platform APIs
Vendor specific extensions for customisation and extensibility
- Why I did it
Rapid development and qualification of different platforms on SONiC OS.
- How I did it
PDDF generic platform drivers and utils are provided under
sonic-buildimage/platform/pddf/i2c/
PDDF generic user space 2.0 platform APIs are added here,
sonic-buildimage/platform/pddf/platform-api-pddf-base/
Rest of the changes are added to enable the framework.
- How to verify it
We will add support for a sample platform to enable verification.
Under PDDF mode, pddf utils can be verified,
sudo pddf_psuutil
sudo pddf_fanutil
sudo pddf_thermalutil
sudo pddf_ledutil
- Description for the changelog
Platform Driver Development Framework (PDDF): Generic kernel device drivers and platform APIs
- A picture of a cute animal (not mandatory but encouraged)
Depends on:
sonic-net/sonic-platform-common#92
sonic-net/sonic-utilities#940