Skip to content

Commit

Permalink
Fixed multislot issues (#7631)
Browse files Browse the repository at this point in the history
Signed-off-by: Saifuddin <[email protected]>
  • Loading branch information
saifuddin-xilinx authored Jul 27, 2023
1 parent 66f6b88 commit 64f9555
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/runtime_src/core/common/drv/kds_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,10 @@ static int kds_cfg_legacy_update(struct kds_sched *kds)
}

run_polling:
if ((!KDS_SETTING(kds->cu_intr) && !kds->polling_thread) || kds->scu_mgmt.num_cus) {
if (kds->polling_thread)
return ret;

if (!KDS_SETTING(kds->cu_intr) || kds->scu_mgmt.num_cus) {
kds->polling_stop = 0;
kds->polling_thread = kthread_run(kds_polling_thread, kds, "kds_poll");
if (IS_ERR(kds->polling_thread)) {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime_src/core/pcie/driver/linux/xocl/xocl_xclbin.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static int xgq_xclbin_download(xdev_handle_t xdev, void *args)
struct xclbin_arg *arg = (struct xclbin_arg *)args;
int ret;

ret = xocl_xgq_download_axlf(xdev, arg->xclbin);
ret = xocl_xgq_download_axlf_slot(xdev, arg->xclbin, arg->slot_id);

return ret;
}
Expand Down

0 comments on commit 64f9555

Please sign in to comment.