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

PCIe Monitor service #634

Merged
merged 9 commits into from Jul 14, 2020
Merged

PCIe Monitor service #634

merged 9 commits into from Jul 14, 2020

Conversation

sujinmkang
Copy link
Collaborator

PCIe Monitor Service which will monitor the PCIe device (and bus) status periodically.

@sujinmkang sujinmkang marked this pull request as ready for review June 19, 2020 00:08
doc/pcie-mon/pcie-daemon-hld.md Outdated Show resolved Hide resolved
doc/pcie-mon/pcie-daemon-hld.md Outdated Show resolved Hide resolved
doc/pcie-mon/pcie-monitoring-services-hld.md Outdated Show resolved Hide resolved
doc/pcie-mon/pcie-monitoring-services-hld.md Outdated Show resolved Hide resolved
doc/pcie-mon/pcie-monitoring-services-hld.md Outdated Show resolved Hide resolved
pcie-check.service will be started by systemd during boot up and it will spawn a thread to check PCIe device status and perform the rescan pci devices if there is any missing devices after rc.local.service is completed and it will update the state db with pcie device satus after the `pcieutil pcie-chek` call so that the dependent services/container or kernel driver can be started or stopped based on the status.

Detailed flow as showed in below chart:
![](https://github.com/Azure/SONiC/blob/master/images/pcie-check.svg)
Copy link
Contributor

Choose a reason for hiding this comment

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

Unable to view this file.

Choose a reason for hiding this comment

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

pcied will be started by PMON container will continue monitoring the PCIe device status during run time and it will check the PCIe device status periodically every 1 minute and update the state db when the status is checked.

Detailed flow as showed in below chart:
![](https://github.com/Azure/SONiC/blob/master/images/pcied.svg)
Copy link
Contributor

Choose a reason for hiding this comment

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

unable to view this file..

@sujinmkang sujinmkang merged commit 4530879 into sonic-net:master Jul 14, 2020
kartik-arista pushed a commit to kartik-arista/SONiC that referenced this pull request Jul 16, 2020
* PCIe Monitor service

* Update pcie monitoring service hld

* Move the update_state db to pcieutil so that it can be updated
whenever the pcie device status gets checked.

* review comments

* Update with rename and state db

* review comments

* update the image link

* fix the retry number of pcie rescan.

* review comment
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.

None yet

4 participants