mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
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:
committed by
Compute-Runtime-Automation
parent
57084ef95c
commit
11e13ee04d
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user