Skip to content

Commit

Permalink
Fixed rw_shared flag for user managed kernel (#8158) (#8162)
Browse files Browse the repository at this point in the history
Signed-off-by: Saifuddin <[email protected]>
  • Loading branch information
saifuddin-xilinx authored May 12, 2024
1 parent 57b0979 commit b81cd3f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2251,6 +2251,8 @@ static int xocl_kds_update_xgq(struct xocl_dev *xdev, int slot_hdl,
goto out;
}

XDEV(xdev)->kds.cu_mgmt.rw_shared = cfg.rw_shared;

/* Don't send config command if ERT doesn't present */
if (!XDEV(xdev)->kds.ert)
goto create_regular_cu;
Expand All @@ -2259,7 +2261,6 @@ static int xocl_kds_update_xgq(struct xocl_dev *xdev, int slot_hdl,
XDEV(xdev)->kds.ert_disable = true;
goto create_regular_cu;
}
XDEV(xdev)->kds.cu_mgmt.rw_shared = cfg.rw_shared;

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

0 comments on commit b81cd3f

Please sign in to comment.