Add debug flag for EOT WA

EOT WA requires allocating last 64KB of kernel heap and putting EOT
signature at the last 16 bytes of kernel heap

Related-To: NEO-7099
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-06-15 01:12:33 +00:00
committed by Compute-Runtime-Automation
parent 9a667308b9
commit cf3817e058
21 changed files with 271 additions and 12 deletions

View File

@ -500,6 +500,25 @@ HWTEST_F(CommandStreamReceiverFlushTaskTests, WhenFlushingThenScratchAllocationI
EXPECT_TRUE(commandStreamReceiver->isMadeNonResident(scratchAllocation));
}
HWTEST_F(CommandStreamReceiverFlushTaskTests, givenAdditionalAllocationForResidencyWhenFlushingThenHandleResidency) {
auto commandStreamReceiver = new MockCsrHw<FamilyType>(*pDevice->executionEnvironment, pDevice->getRootDeviceIndex(), pDevice->getDeviceBitfield());
pDevice->resetCommandStreamReceiver(commandStreamReceiver);
MockGraphicsAllocation allocation{};
commandStreamReceiver->addAdditionalAllocationForResidency(&allocation);
flushTask(*commandStreamReceiver);
auto tagAllocation = commandStreamReceiver->getTagAllocation();
ASSERT_NE(tagAllocation, nullptr);
EXPECT_TRUE(commandStreamReceiver->isMadeResident(tagAllocation));
EXPECT_TRUE(commandStreamReceiver->isMadeResident(&allocation));
EXPECT_TRUE(commandStreamReceiver->isMadeNonResident(tagAllocation));
EXPECT_TRUE(commandStreamReceiver->isMadeNonResident(&allocation));
}
HWTEST_F(CommandStreamReceiverFlushTaskTests, givenCommandStreamReceiverWhenFenceAllocationIsRequiredAndFlushTaskIsCalledThenFenceAllocationIsMadeResident) {
RAIIHwHelperFactory<MockHwHelperWithFenceAllocation<FamilyType>> hwHelperBackup{pDevice->getHardwareInfo().platform.eRenderCoreFamily};