Skip to content

Commit

Permalink
fix:set continuous mode bit for write hit/miss cases tests (#3062)
Browse files Browse the repository at this point in the history
CXL HE write hit/miss cases, sets continuous mode bit in rd_cfg instead of wr_cfg.
 set continuous mode bit write hit/miss case tests.

 Forced stop  control register ResetL bit is low causes timeout failures
 set ResetL too high for forced stop

Signed-off-by: anandaravuri <ananda.ravuri@intel.com>
  • Loading branch information
anandaravuri committed Dec 18, 2023
1 parent 1d67280 commit 6c1c4bd
Showing 1 changed file with 5 additions and 4 deletions.
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

0 comments on commit 6c1c4bd

Please sign in to comment.