mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
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:
committed by
Compute-Runtime-Automation
parent
e2dcd8909c
commit
e188de2489
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user