Skip to content

Commit

Permalink
Mark xcu status done in CU XGQ check (#8697)
Browse files Browse the repository at this point in the history
Signed-off-by: karthik dmg <[email protected]>
  • Loading branch information
karthdmg-xilinx authored Jan 20, 2025
1 parent 52b987e commit aad0a12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runtime_src/core/pcie/driver/linux/xocl/subdev/cu_xgq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aad0a12

Please sign in to comment.