Skip to content

Commit

Permalink
Fixed xbutil issue for ert disable followed by enable mode (#7742)
Browse files Browse the repository at this point in the history
Signed-off-by: Saifuddin <[email protected]>
  • Loading branch information
saifuddin-xilinx authored Oct 12, 2023
1 parent 2865a62 commit fa4c004
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime_src/core/common/drv/kds_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,8 @@ kds_submit_ert(struct kds_sched *kds, struct kds_command *xcmd)
return -EINVAL;
}

ert->submit(ert, xcmd);
set_xcmd_timestamp(xcmd, KDS_QUEUED);
ert->submit(ert, xcmd);
return 0;
}

Expand Down
2 changes: 2 additions & 0 deletions src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_kds.c
Original file line number Diff line number Diff line change
Expand Up @@ -2259,6 +2259,8 @@ static int xocl_kds_update_xgq(struct xocl_dev *xdev, int slot_hdl,
XDEV(xdev)->kds.ert_disable = true;
goto create_regular_cu;
}
else
XDEV(xdev)->kds.ert_disable = false;

// Soft Kernel Info
scu_info = kzalloc(MAX_CUS * sizeof(struct xrt_cu_info), GFP_KERNEL);
Expand Down

0 comments on commit fa4c004

Please sign in to comment.