Skip to content

Commit

Permalink
CR-1205620: Removing cu_size limitation (#8309) (#8321)
Browse files Browse the repository at this point in the history
(cherry picked from commit 88e0054)

Signed-off-by: BikashSingha <[email protected]>
Signed-off-by: bisingha <[email protected]>
  • Loading branch information
bisingha-xilinx authored Aug 1, 2024
1 parent 324b063 commit c1ecebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime_src/core/pcie/linux/shim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2352,7 +2352,7 @@ int shim::xclRegRW(bool rd, uint32_t ipIndex, uint32_t offset, uint32_t *datap)
if (cumap.addr == nullptr) {
auto cu_subdev = "CU[" + std::to_string(ipIndex) + "]";
auto size = xrt_core::device_query<xq::cu_size>(mCoreDevice, xq::request::modifier::subdev, cu_subdev);
if (size <= 0 || size > 0x10000) {
if (size <= 0) {
xrt_logmsg(XRT_ERROR, "%s: incorrect cu size %d", __func__, size);
return -EINVAL;
}
Expand Down

0 comments on commit c1ecebd

Please sign in to comment.