Skip to content

Commit fa4c004

Browse files
Fixed xbutil issue for ert disable followed by enable mode (#7742)
Signed-off-by: Saifuddin <saifuddi@xilinx.com>
1 parent 2865a62 commit fa4c004

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/runtime_src/core/common/drv/kds_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,8 @@ kds_submit_ert(struct kds_sched *kds, struct kds_command *xcmd)
621621
return -EINVAL;
622622
}
623623

624-
ert->submit(ert, xcmd);
625624
set_xcmd_timestamp(xcmd, KDS_QUEUED);
625+
ert->submit(ert, xcmd);
626626
return 0;
627627
}
628628

src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_kds.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,6 +2259,8 @@ static int xocl_kds_update_xgq(struct xocl_dev *xdev, int slot_hdl,
22592259
XDEV(xdev)->kds.ert_disable = true;
22602260
goto create_regular_cu;
22612261
}
2262+
else
2263+
XDEV(xdev)->kds.ert_disable = false;
22622264

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

0 commit comments

Comments
 (0)