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

fix:set continuous mode bit for write hit/miss cases tests #3062

Merged
merged 2 commits into from
Dec 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions samples/cxl_host_exerciser/cxl_he_cache_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ class he_cache_cmd : public he_cmd {

// continuous mode
if (he_continuousmode_) {
he_rd_cfg_.continuous_mode_enable = 0x1;
he_wr_cfg_.continuous_mode_enable = 0x1;
host_exe_->write64(HE_WR_CONFIG, he_wr_cfg_.value);
host_exe_->write64(HE_WR_NUM_LINES, he_cls_count_);
host_exe_->write64(HE_WR_ADDR_TABLE_CTRL, wr_table_ctl_.value);
Expand Down Expand Up @@ -652,7 +652,7 @@ class he_cache_cmd : public he_cmd {

// continuous mode
if (he_continuousmode_) {
he_rd_cfg_.continuous_mode_enable = 0x1;
he_wr_cfg_.continuous_mode_enable = 0x1;
host_exe_->write64(HE_WR_CONFIG, he_wr_cfg_.value);
host_exe_->write64(HE_WR_NUM_LINES, he_cls_count_);
host_exe_->write64(HE_WR_ADDR_TABLE_CTRL, wr_table_ctl_.value);
Expand Down Expand Up @@ -893,7 +893,7 @@ class he_cache_cmd : public he_cmd {

// continuous mode
if (he_continuousmode_) {
he_rd_cfg_.continuous_mode_enable = 0x1;
he_wr_cfg_.continuous_mode_enable = 0x1;
host_exe_->write64(HE_WR_CONFIG, he_wr_cfg_.value);
host_exe_->write64(HE_WR_NUM_LINES, he_cls_count_);
host_exe_->write64(HE_WR_ADDR_TABLE_CTRL, wr_table_ctl_.value);
Expand Down Expand Up @@ -1120,7 +1120,7 @@ class he_cache_cmd : public he_cmd {

// continuous mode
if (he_continuousmode_) {
he_rd_cfg_.continuous_mode_enable = 0x1;
he_wr_cfg_.continuous_mode_enable = 0x1;
host_exe_->write64(HE_WR_CONFIG, he_wr_cfg_.value);
host_exe_->write64(HE_WR_NUM_LINES, he_cls_count_);
host_exe_->write64(HE_WR_ADDR_TABLE_CTRL, wr_table_ctl_.value);
Expand Down Expand Up @@ -1170,6 +1170,7 @@ class he_cache_cmd : public he_cmd {
// Force stop test
he_ctl_.value = 0;
he_ctl_.ForcedTestCmpl = 1;
he_ctl_.ResetL = 1;
host_exe_->write64(HE_CTL, he_ctl_.value);

if (!he_wait_test_completion())
Expand Down