From aad0a1212d383969761d7f77466ff6e3afc1eaac Mon Sep 17 00:00:00 2001 From: DMG Karthik <146181807+karthdmg-xilinx@users.noreply.github.com> Date: Mon, 20 Jan 2025 14:36:40 +0530 Subject: [PATCH] Mark xcu status done in CU XGQ check (#8697) Signed-off-by: karthik dmg --- src/runtime_src/core/pcie/driver/linux/xocl/subdev/cu_xgq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runtime_src/core/pcie/driver/linux/xocl/subdev/cu_xgq.c b/src/runtime_src/core/pcie/driver/linux/xocl/subdev/cu_xgq.c index 35b8617d7a4..2601ed79946 100644 --- a/src/runtime_src/core/pcie/driver/linux/xocl/subdev/cu_xgq.c +++ b/src/runtime_src/core/pcie/driver/linux/xocl/subdev/cu_xgq.c @@ -58,6 +58,8 @@ static void cu_xgq_check(void *core, struct xcu_status *status, bool force) uint32_t cu_status = CU_AP_IDLE; status->num_ready = 1; + status->num_done = 1; + while (!xocl_xgq_check_response(cu_xgq->xgq, cu_xgq->xgq_client_id, &cu_status)); status->new_status = (cu_status == KDS_SKCRASHED) ? CU_AP_CRASHED : CU_AP_IDLE; }