Skip to content

Commit 39dabcd

Browse files
bisingha-xilinxBikash Singha
and
Bikash Singha
authored
Fixing the bo sync logic in zocl (#8957) (#8958)
(cherry picked from commit 8adb134) Signed-off-by: Bikash Singha <bisingha@xcobisingha40x.xlnx.xilinx.com> Signed-off-by: bisingha <bikash.singha@amd.com> Co-authored-by: Bikash Singha <bisingha@xcobisingha40x.xlnx.xilinx.com>
1 parent 577c709 commit 39dabcd

File tree

1 file changed

+1
-1
lines changed
  • src/runtime_src/core/edge/drm/zocl/common

1 file changed

+1
-1
lines changed

src/runtime_src/core/edge/drm/zocl/common/zocl_bo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ int zocl_sync_bo_ioctl(struct drm_device *dev,
763763
}
764764

765765
bo = to_zocl_bo(gem_obj);
766-
if (bo->flags & ZOCL_BO_FLAGS_COHERENT) {
766+
if (bo->flags & ZOCL_BO_FLAGS_COHERENT && !(bo->flags & ZOCL_BO_FLAGS_CMA)) {
767767
/* The CMA buf is coherent, we don't need to do anything */
768768
rc = 0;
769769
goto out;

0 commit comments

Comments
 (0)