fix: initialize page tables before access for TSP allocation in TBX mode

Related-To: NEO-8340

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2024-07-11 13:28:17 +00:00
committed by Compute-Runtime-Automation
parent e2dcd8909c
commit e188de2489
2 changed files with 35 additions and 1 deletions

View File

@@ -988,7 +988,16 @@ void CommandQueue::obtainNewTimestampPacketNodes(size_t numberOfNodes, Timestamp
DEBUG_BREAK_IF(timestampPacketContainer->peekNodes().size() > 0);
for (size_t i = 0; i < numberOfNodes; i++) {
timestampPacketContainer->add(allocator->getTag());
auto newTag = allocator->getTag();
if (csr.getType() != CommandStreamReceiverType::hardware) {
auto tagAlloc = newTag->getBaseGraphicsAllocation()->getGraphicsAllocation(csr.getRootDeviceIndex());
// initialize full page tables for the first time
csr.writeMemory(*tagAlloc, false, 0, 0);
}
timestampPacketContainer->add(newTag);
}
}