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

hssi: increate timeout to 1 second #3132

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

michael-adler
Copy link
Member

Some operations are taking longer than the current timeout, such as putting an HSSI port in loopback. Timeout is a failure, so waiting a little long isn't a problem. Actual completion observed has been over 100ms, so chose 1 second.

The current timeout logic could be improved but is not changed in this commit. Time passed is calculated as the sum of sleep times, which assumes MMIO reads are free and sleep is exactly the requested wait.

Tests run:

Set loopback on 8x25 interfaces in iseries-dk, n6001

@michael-adler michael-adler self-assigned this Jun 17, 2024
@michael-adler michael-adler requested a review from a team as a code owner June 17, 2024 12:39
@coveralls
Copy link

coveralls commented Jun 17, 2024

Pull Request Test Coverage Report for Build 9547837650

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 64.641%

Totals Coverage Status
Change from base Build 9521097734: 0.0%
Covered Lines: 15826
Relevant Lines: 24483

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jun 17, 2024

Pull Request Test Coverage Report for Build 9547883543

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 64.641%

Totals Coverage Status
Change from base Build 9521097734: 0.0%
Covered Lines: 15826
Relevant Lines: 24483

💛 - Coveralls

# Mailbox register poll timeout 1 second. Responses are typically much
# faster than one second, but in rare cases can take a while. No reason
# to make this short since timeout is generally a failure.
HSSI_POLL_TIMEOUT = 1
Copy link
Contributor

Choose a reason for hiding this comment

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

In the Linux Kernel the units of the timeout are usually given in the macro name
HSSI_POLL_TIMEOUT_MS or HSSI_POLL_TIMEOUT_SEC would be clearer.

@coveralls
Copy link

coveralls commented Jun 17, 2024

Pull Request Test Coverage Report for Build 9550060885

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 64.641%

Totals Coverage Status
Change from base Build 9550043789: 0.0%
Covered Lines: 15826
Relevant Lines: 24483

💛 - Coveralls

Some operations are taking longer than the current timeout, such as
putting an HSSI port in loopback. Timeout is a failure, so waiting
a little long isn't a problem. Actual completion observed has been
over 100ms, so chose 1 second.

The current timeout logic could be improved but is not changed in
this commit. Time passed is calculated as the sum of sleep times,
which assumes MMIO reads are free and sleep is exactly the requested
wait.

Signed-off-by: Michael Adler <michael.adler@intel.com>
@coveralls
Copy link

coveralls commented Jun 17, 2024

Pull Request Test Coverage Report for Build 9550358699

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 64.641%

Totals Coverage Status
Change from base Build 9550043789: 0.0%
Covered Lines: 15826
Relevant Lines: 24483

💛 - Coveralls

@michael-adler michael-adler merged commit 51e92f5 into OFS:master Jun 17, 2024
23 checks passed
@michael-adler michael-adler deleted the mcadler/hssi_timeout branch June 17, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants