Disable timeout while waiting when direct submission active

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2021-02-17 10:33:41 +00:00
committed by Compute-Runtime-Automation
parent 15f3353351
commit 1844875b9d
7 changed files with 41 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Intel Corporation
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -18,11 +18,16 @@ bool KmdNotifyHelper::obtainTimeoutParams(int64_t &timeoutValueOutput,
uint32_t currentHwTag,
uint32_t taskCountToWait,
FlushStamp flushStampToWait,
bool forcePowerSavingMode) {
bool forcePowerSavingMode,
bool directSubmissionActive) {
if (flushStampToWait == 0) {
return false;
}
if (directSubmissionActive) {
return false;
}
if (DebugManager.flags.PowerSavingMode.get() || forcePowerSavingMode) {
timeoutValueOutput = 1;
return true;