-
Notifications
You must be signed in to change notification settings - Fork 13
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
Improve robustness of hwp_pcu #797
Conversation
I make this PR ready, reconnection is tested as follows at satp3.
|
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.
This looks good, thanks for the PR! Just two small comments.
socs/agents/hwp_pcu/agent.py
Outdated
PCU = None | ||
session.degraded = True | ||
time.sleep(30) | ||
continue |
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.
This continue
isn't needed, since it's the last statement in the loop that it's continuing.
socs/agents/hwp_pcu/agent.py
Outdated
PCU.close() | ||
PCU = None | ||
session.degraded = True | ||
time.sleep(30) |
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.
There's already a 30 second sleep on the reconnect logic in line 124/125, so I'd say you can drop this here. If it can reconnect it'll do so quickly, if it can't it'll wait 30 seconds already.
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.
Thanks Kyohei, this looks good to me!
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.
Thanks for the updates!
This PR will make the pcu agent robust against usb connection dropouts #796
Description
Improve robustness of pcu against usb connection dropouts
Motivation and Context
#796
How Has This Been Tested?
Under testing at satp3 -> tested!
Types of changes
Checklist: