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

Pcieutil to load the platform api first instead of using common api #1672

Merged
merged 2 commits into from
Jun 28, 2021

Conversation

sujinmkang
Copy link
Collaborator

@sujinmkang sujinmkang commented Jun 14, 2021

What I did

Pcieutil to load the platform api first instead of using common api
Some platform device with different BIOS version needs more than one pcie configuration to check the pcie devices properly.
Please refer to the platform api support : sonic-net/sonic-platform-common#195

How I did it

Load the platform pcie api first prior to use the common api

How to verify it

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@sujinmkang sujinmkang requested a review from jleveque June 14, 2021 19:54
@jleveque
Copy link
Contributor

Can you please update the description to state why this change is necessary?

pcieutil/main.py Outdated
except ImportError as e:
log.log_error("Failed to load default PcieUtil module. Error : {}".format(str(e)), True)
raise e
self.log_error("Failed to load platform Pcie module. Error : {}".format(str(e)), True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change self to log

Suggested change
self.log_error("Failed to load platform Pcie module. Error : {}".format(str(e)), True)
log.log_error("Failed to load platform Pcie module. Error : {}".format(str(e)), True)

@sujinmkang
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sujinmkang
Copy link
Collaborator Author

@jleveque @ArunSaravananBalachandran do you have any other comments?

@sujinmkang sujinmkang merged commit 186d851 into sonic-net:master Jun 28, 2021
qiluo-msft pushed a commit that referenced this pull request Jun 28, 2021
…1672)

What I did
Pcieutil to load the platform api first instead of using common api
Some platform device with different BIOS version needs more than one pcie configuration to check the pcie devices properly.
Please refer to the platform api support : sonic-net/sonic-platform-common#195

How I did it
Load the platform pcie api first prior to use the common api
sujinmkang pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Jun 29, 2021
Why I did it
To determine the revision of the pcie.yaml to be used based on BIOS version in DellEMC S6100 platform.

Depends on: sonic-net/sonic-platform-common#195

How I did it
Added two revisions of pcie.yaml pcie_1.yaml and pcie_2.yaml
Included a platform-specific Pcie class to provide the revision of the pcie.yaml to be used by pcieutil/pcied.
How to verify it
Execute pcieutil check (sonic-net/sonic-utilities#1672) command and verify the list of PCIe devices displayed.
Logs: UT_logs.txt
qiluo-msft pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Jul 14, 2021
Why I did it
To determine the revision of the pcie.yaml to be used based on BIOS version in DellEMC S6100 platform.

Depends on: sonic-net/sonic-platform-common#195

How I did it
Added two revisions of pcie.yaml pcie_1.yaml and pcie_2.yaml
Included a platform-specific Pcie class to provide the revision of the pcie.yaml to be used by pcieutil/pcied.
How to verify it
Execute pcieutil check (sonic-net/sonic-utilities#1672) command and verify the list of PCIe devices displayed.
Logs: UT_logs.txt
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
…net#7875)

Why I did it
To determine the revision of the pcie.yaml to be used based on BIOS version in DellEMC S6100 platform.

Depends on: sonic-net/sonic-platform-common#195

How I did it
Added two revisions of pcie.yaml pcie_1.yaml and pcie_2.yaml
Included a platform-specific Pcie class to provide the revision of the pcie.yaml to be used by pcieutil/pcied.
How to verify it
Execute pcieutil check (sonic-net/sonic-utilities#1672) command and verify the list of PCIe devices displayed.
Logs: UT_logs.txt
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-utilities that referenced this pull request Aug 10, 2021
…onic-net#1672)

What I did
Pcieutil to load the platform api first instead of using common api
Some platform device with different BIOS version needs more than one pcie configuration to check the pcie devices properly.
Please refer to the platform api support : sonic-net/sonic-platform-common#195

How I did it
Load the platform pcie api first prior to use the common api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants