From 687eac7d5322ae9fc9ccd4c7937cc6282d17e68c Mon Sep 17 00:00:00 2001 From: Saifuddin Kaijar <54270703+saifuddin-xilinx@users.noreply.github.com> Date: Wed, 22 May 2024 15:03:24 +0530 Subject: [PATCH] Fixed a issue which is causing lsf. This is related to CR-1177852 (#8188) Signed-off-by: Saifuddin --- src/runtime_src/core/common/drv/kds_core.c | 3 ++- src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_kds.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/runtime_src/core/common/drv/kds_core.c b/src/runtime_src/core/common/drv/kds_core.c index 10184223e9d..51f8ffe076f 100644 --- a/src/runtime_src/core/common/drv/kds_core.c +++ b/src/runtime_src/core/common/drv/kds_core.c @@ -621,8 +621,9 @@ 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; } diff --git a/src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_kds.c b/src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_kds.c index 5c99488d1dd..4321232c605 100644 --- a/src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_kds.c +++ b/src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_kds.c @@ -2261,6 +2261,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);