performance: Enable waitpkg

Resolves: NEO-14336

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2025-03-11 13:25:31 +00:00
committed by Compute-Runtime-Automation
parent f52c81c0e4
commit 8ec5434460
3 changed files with 15 additions and 2 deletions

View File

@@ -9,6 +9,7 @@
#include "shared/source/utilities/wait_util.h"
#include "shared/test/common/helpers/debug_manager_state_restore.h"
#include "shared/test/common/helpers/variable_backup.h"
#include "shared/test/common/mocks/mock_execution_environment.h"
#include "shared/test/common/test_macros/hw_test.h"
#include "shared/test/unit_test/mocks/mock_cpuid_functions.h"
@@ -196,6 +197,19 @@ TEST_F(WaitPkgTest, givenEnabledSetToTrueAndWaitpkgSupportTrueWhenWaitInitialize
EXPECT_TRUE(WaitUtils::waitpkgUse);
}
TEST_F(WaitPkgTest, givenWaitpkgSupportTrueWhenCreateExecutionEnvironmentThenWaitPkgEnabled) {
CpuInfo::cpuidFunc = mockCpuidEnableAll;
WaitUtils::waitpkgSupport = true;
MockExecutionEnvironment executionEnvironment;
EXPECT_EQ(0u, WaitUtils::waitCount);
EXPECT_EQ(10000u, WaitUtils::waitpkgCounterValue);
EXPECT_EQ(0u, WaitUtils::waitpkgControlValue);
EXPECT_TRUE(WaitUtils::waitpkgUse);
}
TEST_F(WaitPkgTest, givenFullyEnabledWaitPkgAndOverrideCounterValueWhenWaitInitializedThenNewCounterValueSet) {
CpuInfo::cpuidFunc = mockCpuidEnableAll;