Add support for testing if L3 is configurable

Change-Id: I639e28171d0009566d7a2f04cac679d14f0340b1
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
This commit is contained in:
Sebastian Sanchez
2019-08-05 14:57:15 -07:00
parent cb73ea7361
commit a103ce177e
7 changed files with 49 additions and 0 deletions

View File

@@ -40,6 +40,13 @@ GEN11TEST_F(IclSlm, givenGen11WhenProgramingL3ThenErrorDetectionBehaviorControlB
EXPECT_TRUE((l3Config & errorDetectionBehaviorControlBit) != 0);
}
GEN11TEST_F(IclSlm, givenGen11IsL3Programing) {
bool isL3Programmable =
PreambleHelper<FamilyType>::isL3Configurable(**platformDevices);
EXPECT_FALSE(isL3Programmable);
}
typedef PreambleFixture Gen11UrbEntryAllocationSize;
GEN11TEST_F(Gen11UrbEntryAllocationSize, getUrbEntryAllocationSize) {
uint32_t actualVal = PreambleHelper<FamilyType>::getUrbEntryAllocationSize();

View File

@@ -57,6 +57,19 @@ BDWTEST_F(Gen8L3Config, checkSLM) {
EXPECT_TRUE((l3Config & errorDetectionBehaviorControlBit) != 0);
}
BDWTEST_F(Gen8L3Config, givenGen8IsL3Programing) {
bool l3ConfigDifference;
bool isL3Programmable;
l3ConfigDifference =
PreambleHelper<BDWFamily>::getL3Config(**platformDevices, true) !=
PreambleHelper<BDWFamily>::getL3Config(**platformDevices, false);
isL3Programmable =
PreambleHelper<BDWFamily>::isL3Configurable(**platformDevices);
EXPECT_EQ(l3ConfigDifference, isL3Programmable);
}
typedef PreambleFixture ThreadArbitrationGen8;
BDWTEST_F(ThreadArbitrationGen8, givenPolicyWhenThreadArbitrationProgrammedThenDoNothing) {
typedef BDWFamily::MI_LOAD_REGISTER_IMM MI_LOAD_REGISTER_IMM;

View File

@@ -48,3 +48,16 @@ GEN9TEST_F(PreambleTestGen9, givenDisabledPreemptionAndDisabledDebuggingWhenPrea
GEN9TEST_F(PreambleTestGen9, givenKernelDebuggingActiveAndDisabledPreemptionWhenGetAdditionalCommandsSizeIsCalledThen2MiLoadRegisterImmCmdsAreInlcuded) {
SourceLevelDebuggerPreambleTest<FamilyType>::givenKernelDebuggingActiveAndDisabledPreemptionWhenGetAdditionalCommandsSizeIsCalledThen2MiLoadRegisterImmCmdsAreInlcudedTest();
}
GEN9TEST_F(PreambleTestGen9, givenGen9IsL3Programing) {
bool l3ConfigDifference;
bool isL3Programmable;
l3ConfigDifference =
PreambleHelper<FamilyType>::getL3Config(**platformDevices, true) !=
PreambleHelper<FamilyType>::getL3Config(**platformDevices, false);
isL3Programmable =
PreambleHelper<FamilyType>::isL3Configurable(**platformDevices);
EXPECT_EQ(l3ConfigDifference, isL3Programmable);
}