fix: Wait indefinitely for vmbind fence when debugging

Related-to: NEO-9672

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
This commit is contained in:
Brandon Yates
2024-04-17 23:00:57 +00:00
committed by Compute-Runtime-Automation
parent 57084ef95c
commit 11e13ee04d
2 changed files with 16 additions and 3 deletions

View File

@@ -1266,9 +1266,12 @@ int IoctlHelperXe::xeVmBind(const VmBindParams &vmBindParams, bool isBind) {
}
constexpr auto oneSecTimeout = 1000000000;
constexpr auto infiniteTimeout = -1;
bool debuggingEnabled = drm.getRootDeviceEnvironment().executionEnvironment.isDebuggingEnabled();
auto timeout = debuggingEnabled ? infiniteTimeout : oneSecTimeout;
return xeWaitUserFence(bind.exec_queue_id, DRM_XE_UFENCE_WAIT_OP_EQ,
sync[0].addr,
sync[0].timeline_value, oneSecTimeout);
sync[0].timeline_value, timeout);
}
xeLog("error: -> IoctlHelperXe::%s %s index=%d vmid=0x%x h=0x%x s=0x%llx o=0x%llx l=0x%llx f=0x%llx pat=%hu r=%d\n",