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

host_exerciser updates #2355

Merged
merged 2 commits into from
Nov 2, 2021
Merged

host_exerciser updates #2355

merged 2 commits into from
Nov 2, 2021

Conversation

michael-adler
Copy link
Member

  • Read the AFU frequency from a new CSR.
  • Add tests for PCIe atomic functions, including validating that each function
    is performed properly.
  • Fill the source buffer with random data instead of the same pattern over
    and over so that read errors are more likely to be found.
  • Make the log level work. Dump a few lines of the buffers in some modes.

- Read the AFU frequency from a new CSR.
- Add tests for PCIe atomic functions, including validating that each function
  is performed properly.
- Fill the source buffer with random data instead of the same pattern over
  and over so that read errors are more likely to be found.
- Make the log level work. Dump a few lines of the buffers in some modes.
@michael-adler michael-adler self-assigned this Nov 2, 2021
@michael-adler michael-adler requested a review from a team as a code owner November 2, 2021 22:32
@coveralls
Copy link

coveralls commented Nov 2, 2021

Coverage Status

Coverage decreased (-0.4%) to 61.906% when pulling 625d825 on mcadler/he_atomic into 0d4323a on master.

anandaravuri
anandaravuri previously approved these changes Nov 2, 2021
tswhison
tswhison previously approved these changes Nov 2, 2021
@@ -331,6 +356,10 @@ class host_exerciser : public test_afu {
// Configures test rollover or test termination
app_.add_option("--continuousmode", he_continuousmode_, "test rollover or test termination")->default_val("false");

// Atomic function
app_.add_option("--atomic", he_req_atomic_func_, "atomic requests (only permitted in combination with lpbk/cl_1)")
Copy link
Contributor

Choose a reason for hiding this comment

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

Should he_req_atomic_func_ be initialized in the constructor?

@@ -346,12 +375,14 @@ class host_exerciser : public test_afu {
app_.add_option("--contmodetime", he_contmodetime_,
"Continuous mode time in seconds")->default_val("0");

app_.add_option("--clock-mhz", he_clock_mhz_,
Copy link
Contributor

Choose a reason for hiding this comment

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

Should he_clock_mhz_ be initialized in the constructor?

Copy link
Member Author

Choose a reason for hiding this comment

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

Isn't that what default_val is for? That's how all the other params are handled, too.


// In atomic mode, at most the first 8 bytes of each line will be
// updated and copied. In the source buffer, write a function of
// the value at the start of each line to the second postion so
Copy link
Contributor

Choose a reason for hiding this comment

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

s/postion/position/

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed typo. Please approve again.

@michael-adler michael-adler merged commit d80afb6 into master Nov 2, 2021
@michael-adler michael-adler deleted the mcadler/he_atomic branch November 2, 2021 23:23
anandaravuri pushed a commit that referenced this pull request Nov 3, 2021
host_exerciser updates

- Read the AFU frequency from a new CSR.
- Add tests for PCIe atomic functions, including validating that each function
  is performed properly.
- Fill the source buffer with random data instead of the same pattern over
  and over so that read errors are more likely to be found.
- Make the log level work. Dump a few lines of the buffers in some modes.
anandaravuri added a commit that referenced this pull request Nov 3, 2021
host_exerciser updates

- Read the AFU frequency from a new CSR.
- Add tests for PCIe atomic functions, including validating that each function
  is performed properly.
- Fill the source buffer with random data instead of the same pattern over
  and over so that read errors are more likely to be found.
- Make the log level work. Dump a few lines of the buffers in some modes.

Co-authored-by: Michael Adler <Michael.Adler@intel.com>
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.

4 participants