mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
KMD Notfy: Multiply timeout by taskCount diff only on Linux
Change-Id: Idb75dcc02cd218ff097f29d6881c97bb8feb25da
This commit is contained in:
committed by
sys_ocldev
parent
6eec23844b
commit
5ed13d7c88
@@ -221,25 +221,6 @@ HWTEST_F(KmdNotifyTests, givenQuickSleepRequestWhenItsSporadicWaitOptimizationIs
|
||||
csr->waitForTaskCountWithKmdNotifyFallback(taskCountToWait, 1, true);
|
||||
}
|
||||
|
||||
HWTEST_F(KmdNotifyTests, givenComputeTimeoutMultiplierWhenWaitCalledThenUseNewTimeout) {
|
||||
auto csr = createMockCsr<FamilyType>();
|
||||
|
||||
*device->getTagAddress() = taskCountToWait;
|
||||
taskCountToWait += 5;
|
||||
|
||||
auto expectedTimeout = device->getHardwareInfo().capabilityTable.kmdNotifyProperties.delayKmdNotifyMicroseconds *
|
||||
(taskCountToWait - *device->getTagAddress());
|
||||
|
||||
auto updateHwTag = [&](bool, int64_t, uint32_t) {
|
||||
*device->getTagAddress() = taskCountToWait;
|
||||
return true;
|
||||
};
|
||||
|
||||
EXPECT_CALL(*csr, waitForCompletionWithTimeout(true, expectedTimeout, ::testing::_)).Times(1).WillOnce(::testing::Invoke(updateHwTag));
|
||||
|
||||
csr->waitForTaskCountWithKmdNotifyFallback(taskCountToWait, 1, false);
|
||||
}
|
||||
|
||||
HWTEST_F(KmdNotifyTests, givenTaskCountEqualToHwTagWhenWaitCalledThenDontMultiplyTimeout) {
|
||||
auto csr = createMockCsr<FamilyType>();
|
||||
*device->getTagAddress() = taskCountToWait;
|
||||
|
||||
Reference in New Issue
Block a user