Add ForceAllResourcesUncached debug variable

Resolves: NEO-6563

Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
This commit is contained in:
Igor Venevtsev
2022-02-21 13:33:41 +00:00
committed by Compute-Runtime-Automation
parent faba32daf0
commit 086a70ca52
12 changed files with 75 additions and 17 deletions

View File

@@ -79,7 +79,7 @@ void DebuggerL0::initialize() {
*device, moduleDebugArea, 0, &debugArea,
sizeof(DebugAreaHeader));
if (hwHelper.disableL3CacheForDebug(hwInfo)) {
device->getGmmHelper()->disableL3CacheForDebug();
device->getGmmHelper()->forceAllResourcesUncached();
}
}
}

View File

@@ -1178,12 +1178,12 @@ TEST(Debugger, givenNonLegacyDebuggerWhenInitializingDeviceCapsThenUnrecoverable
using NotATSOrDG2 = AreNotGfxCores<IGFX_XE_HP_CORE, IGFX_XE_HPG_CORE>;
HWTEST2_F(L0DebuggerTest, givenNotAtsOrDg2AndDebugIsActiveThenDisableL3CacheInGmmHelperIsNotSet, NotATSOrDG2) {
EXPECT_FALSE(static_cast<MockGmmHelper *>(neoDevice->getGmmHelper())->l3CacheForDebugDisabled);
EXPECT_FALSE(static_cast<MockGmmHelper *>(neoDevice->getGmmHelper())->allResourcesUncached);
}
using ATSOrDG2 = IsWithinGfxCore<IGFX_XE_HP_CORE, IGFX_XE_HPG_CORE>;
HWTEST2_F(L0DebuggerTest, givenAtsOrDg2AndDebugIsActiveThenDisableL3CacheInGmmHelperIsSet, ATSOrDG2) {
EXPECT_TRUE(static_cast<MockGmmHelper *>(neoDevice->getGmmHelper())->l3CacheForDebugDisabled);
EXPECT_TRUE(static_cast<MockGmmHelper *>(neoDevice->getGmmHelper())->allResourcesUncached);
}
} // namespace ult
} // namespace L0