From c1ecebd9fbf544f712836d2f07720c80b1efe540 Mon Sep 17 00:00:00 2001 From: Bikash Singha <138746529+bisingha-xilinx@users.noreply.github.com> Date: Fri, 2 Aug 2024 00:07:50 +0530 Subject: [PATCH] CR-1205620: Removing cu_size limitation (#8309) (#8321) (cherry picked from commit 88e0054bcaa7f0d992fabbee050d5078b5ccd1d9) Signed-off-by: BikashSingha Signed-off-by: bisingha --- src/runtime_src/core/pcie/linux/shim.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime_src/core/pcie/linux/shim.cpp b/src/runtime_src/core/pcie/linux/shim.cpp index cba0f69a951..e8b90bf57b1 100644 --- a/src/runtime_src/core/pcie/linux/shim.cpp +++ b/src/runtime_src/core/pcie/linux/shim.cpp @@ -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(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; }