mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
Do not use max power saving mode in VA sharing scenarios.
-This can be achieved by passing CL_QUEUE_THROTTLE_LOW_KHR as throttle hint to command queue. - This gives much better control about the granularity of this feature instead of triggering this for the whole context user may still have power saving mode queues. Change-Id: I066729f963119ddc1f62ad2785c342af2fea588e Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
cadc461712
commit
bc35cd250a
@@ -48,7 +48,6 @@ struct KmdNotifyTests : public ::testing::Test {
|
||||
using KmdNotifyHelper::acLineConnected;
|
||||
using KmdNotifyHelper::getMicrosecondsSinceEpoch;
|
||||
using KmdNotifyHelper::lastWaitForCompletionTimestampUs;
|
||||
using KmdNotifyHelper::maxPowerSavingMode;
|
||||
using KmdNotifyHelper::properties;
|
||||
|
||||
MockKmdNotifyHelper() = delete;
|
||||
@@ -348,25 +347,6 @@ TEST_F(KmdNotifyTests, givenDisabledKmdNotifyMechanismWhenAcLineIsDisconnectedTh
|
||||
EXPECT_EQ(10000, KmdNotifyConstants::timeoutInMicrosecondsForDisconnectedAcLine);
|
||||
}
|
||||
|
||||
TEST_F(KmdNotifyTests, givenKmdNotifyEnabledWhenInitMaxPowerSavingModeIsCalledThenObtainReturnOneAsWaitValue) {
|
||||
localHwInfo.capabilityTable.kmdNotifyProperties.enableKmdNotify = true;
|
||||
MockKmdNotifyHelper helper(&(localHwInfo.capabilityTable.kmdNotifyProperties));
|
||||
|
||||
EXPECT_FALSE(helper.maxPowerSavingMode);
|
||||
|
||||
int64_t timeout = 0;
|
||||
bool timeoutEnabled = helper.obtainTimeoutParams(timeout, false, 1, 2, 2, false);
|
||||
EXPECT_TRUE(timeoutEnabled);
|
||||
EXPECT_EQ(2, timeout);
|
||||
|
||||
helper.initMaxPowerSavingMode();
|
||||
EXPECT_TRUE(helper.maxPowerSavingMode);
|
||||
timeoutEnabled = helper.obtainTimeoutParams(timeout, false, 1, 2, 2, false);
|
||||
EXPECT_TRUE(timeoutEnabled);
|
||||
|
||||
EXPECT_EQ(1, timeout);
|
||||
}
|
||||
|
||||
TEST_F(KmdNotifyTests, givenEnabledKmdNotifyMechanismWhenAcLineIsDisconnectedThenDontChangeTimeoutValue) {
|
||||
localHwInfo.capabilityTable.kmdNotifyProperties.enableKmdNotify = true;
|
||||
localHwInfo.capabilityTable.kmdNotifyProperties.delayKmdNotifyMicroseconds = 5;
|
||||
|
||||
Reference in New Issue
Block a user