mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
Poll task count indefinitely on high throttle command queue
Resolves: NEO-6781 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0c064ccf4c
commit
a230f267e1
@@ -38,11 +38,11 @@ struct BcsBufferTests : public ::testing::Test {
|
||||
using UltCommandStreamReceiver<FamilyType>::UltCommandStreamReceiver;
|
||||
|
||||
WaitStatus waitForTaskCountWithKmdNotifyFallback(uint32_t taskCountToWait, FlushStamp flushStampToWait,
|
||||
bool useQuickKmdSleep, bool forcePowerSavingMode) override {
|
||||
bool useQuickKmdSleep, QueueThrottle throttle) override {
|
||||
EXPECT_EQ(this->latestFlushedTaskCount, taskCountToWait);
|
||||
EXPECT_EQ(0u, flushStampToWait);
|
||||
EXPECT_FALSE(useQuickKmdSleep);
|
||||
EXPECT_FALSE(forcePowerSavingMode);
|
||||
EXPECT_EQ(throttle, QueueThrottle::MEDIUM);
|
||||
EXPECT_EQ(1u, this->activePartitions);
|
||||
waitForTaskCountWithKmdNotifyFallbackCalled++;
|
||||
|
||||
|
||||
@@ -31,9 +31,9 @@ class MyCsr : public UltCommandStreamReceiver<Family> {
|
||||
MyCsr(const ExecutionEnvironment &executionEnvironment, const DeviceBitfield deviceBitfield)
|
||||
: UltCommandStreamReceiver<Family>(const_cast<ExecutionEnvironment &>(executionEnvironment), 0, deviceBitfield) {}
|
||||
|
||||
WaitStatus waitForCompletionWithTimeout(bool enableTimeout, int64_t timeoutMs, uint32_t taskCountToWait) override {
|
||||
WaitStatus waitForCompletionWithTimeout(const WaitParams ¶ms, uint32_t taskCountToWait) override {
|
||||
waitForCompletionWithTimeoutCalled++;
|
||||
waitForCompletionWithTimeoutParamsPassed.push_back({enableTimeout, timeoutMs, taskCountToWait});
|
||||
waitForCompletionWithTimeoutParamsPassed.push_back({params.enableTimeout, params.waitTimeout, taskCountToWait});
|
||||
*this->getTagAddress() = getTagAddressValue;
|
||||
return waitForCompletionWithTimeoutResult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user