mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 15:53:13 +08:00
fix: add aub memory interface write for the flush of aub/tbx csr
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
04af8bc5b4
commit
0f4b953429
@@ -141,4 +141,33 @@ DeviceBitfield AubMemoryOperationsHandler::getMemoryBanksBitfield(GraphicsAlloca
|
||||
return {};
|
||||
}
|
||||
|
||||
void AubMemoryOperationsHandler::processFlushResidency(Device *device) {
|
||||
for (const auto &allocation : this->residentAllocations) {
|
||||
if (!isAubWritable(*allocation, device)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
uint64_t gpuAddress = device->getGmmHelper()->decanonize(allocation->getGpuAddress());
|
||||
aub_stream::AllocationParams params(gpuAddress,
|
||||
allocation->getUnderlyingBuffer(),
|
||||
allocation->getUnderlyingBufferSize(),
|
||||
allocation->storageInfo.getMemoryBanks(),
|
||||
AubMemDump::DataTypeHintValues::TraceNotype,
|
||||
allocation->getUsedPageSize());
|
||||
|
||||
auto gmm = allocation->getDefaultGmm();
|
||||
|
||||
if (gmm) {
|
||||
params.additionalParams.compressionEnabled = gmm->isCompressionEnabled();
|
||||
params.additionalParams.uncached = CacheSettingsHelper::isUncachedType(gmm->resourceParams.Usage);
|
||||
}
|
||||
|
||||
if (allocation->storageInfo.cloningOfPageTables || !allocation->isAllocatedInLocalMemoryPool()) {
|
||||
aubManager->writeMemory2(params);
|
||||
} else {
|
||||
device->getDefaultEngine().commandStreamReceiver->writeMemoryAub(params);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user