mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Revert "performance: don't wait immediately after VmBind"
This reverts commit 09118d2011.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0ec361bbb9
commit
99d4e6d054
@@ -1432,20 +1432,17 @@ int IoctlHelperXe::xeVmBind(const VmBindParams &vmBindParams, bool isBind) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (!isBind) {
|
||||
constexpr auto oneSecTimeout = 1000000000ll;
|
||||
constexpr auto infiniteTimeout = -1;
|
||||
bool debuggingEnabled = drm.getRootDeviceEnvironment().executionEnvironment.isDebuggingEnabled();
|
||||
uint64_t timeout = debuggingEnabled ? infiniteTimeout : oneSecTimeout;
|
||||
if (debugManager.flags.VmBindWaitUserFenceTimeout.get() != -1) {
|
||||
timeout = debugManager.flags.VmBindWaitUserFenceTimeout.get();
|
||||
}
|
||||
ret = xeWaitUserFence(bind.exec_queue_id, DRM_XE_UFENCE_WAIT_OP_EQ,
|
||||
sync[0].addr,
|
||||
sync[0].timeline_value, timeout,
|
||||
false, NEO::InterruptId::notUsed, nullptr);
|
||||
constexpr auto oneSecTimeout = 1000000000ll;
|
||||
constexpr auto infiniteTimeout = -1;
|
||||
bool debuggingEnabled = drm.getRootDeviceEnvironment().executionEnvironment.isDebuggingEnabled();
|
||||
uint64_t timeout = debuggingEnabled ? infiniteTimeout : oneSecTimeout;
|
||||
if (debugManager.flags.VmBindWaitUserFenceTimeout.get() != -1) {
|
||||
timeout = debugManager.flags.VmBindWaitUserFenceTimeout.get();
|
||||
}
|
||||
return ret;
|
||||
return xeWaitUserFence(bind.exec_queue_id, DRM_XE_UFENCE_WAIT_OP_EQ,
|
||||
sync[0].addr,
|
||||
sync[0].timeline_value, timeout,
|
||||
false, NEO::InterruptId::notUsed, nullptr);
|
||||
}
|
||||
|
||||
std::string IoctlHelperXe::getDrmParamString(DrmParam drmParam) const {
|
||||
|
||||
Reference in New Issue
Block a user