mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
feature: enable tbx fault manager by default
Related-To: NEO-13748 Signed-off-by: Jack Myers <jack.myers@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b462f990b6
commit
f2b5126598
@@ -85,7 +85,7 @@ bool TbxCommandStreamReceiverHw<GfxFamily>::isAllocTbxFaultable(GraphicsAllocati
|
||||
}
|
||||
auto allocType = gfxAlloc->getAllocationType();
|
||||
|
||||
if (allocType == AllocationType::bufferHostMemory || allocType == AllocationType::timestampPacketTagBuffer) {
|
||||
if (allocType == AllocationType::bufferHostMemory) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -198,7 +198,10 @@ class DebugSettingsManager : NEO::NonCopyableAndNonMovableClass {
|
||||
auto setCsr = flags.SetCommandStreamReceiver.get();
|
||||
auto isTbxMode = (setCsr == static_cast<int32_t>(CommandStreamReceiverType::tbx)) ||
|
||||
(setCsr == static_cast<int32_t>(CommandStreamReceiverType::tbxWithAub));
|
||||
auto isFaultManagerEnabledInEnvVars = flags.EnableTbxPageFaultManager.get();
|
||||
auto isFaultManagerEnabledInEnvVars = true;
|
||||
if (flags.EnableTbxPageFaultManager.get() == 0) {
|
||||
isFaultManagerEnabledInEnvVars = false;
|
||||
}
|
||||
return isFaultManagerEnabledInEnvVars && isTbxMode;
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ DECLARE_DEBUG_VARIABLE(bool, AUBDumpAllocsOnEnqueueSVMMemcpyOnly, false, "Force
|
||||
DECLARE_DEBUG_VARIABLE(bool, AUBDumpForceAllToLocalMemory, false, "Force placing every allocation in local memory address space")
|
||||
DECLARE_DEBUG_VARIABLE(bool, GenerateAubFilePerProcessId, true, "Generate aub file with process id")
|
||||
DECLARE_DEBUG_VARIABLE(bool, SetBufferHostMemoryAlwaysAubWritable, false, "Make buffer host memory allocation always uploaded to AUB/TBX")
|
||||
DECLARE_DEBUG_VARIABLE(bool, EnableTbxPageFaultManager, false, "Enables experimental page fault manager for host buffers and some other alloc types, replaces SetBufferHostMemoryAlwaysAubWritable")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, EnableTbxPageFaultManager, -1, "Enable/Disable TbxPageFaultManager, overrides SetBufferHostMemoryAlwaysAubWritable to false if enabled: default 1, 0 - disable, 1 - enable")
|
||||
|
||||
/*DEBUG FLAGS*/
|
||||
DECLARE_DEBUG_VARIABLE(bool, EnableSWTags, false, "Enable software tagging in batch buffer")
|
||||
|
||||
@@ -24,7 +24,7 @@ bool TbxPageFaultManager::verifyAndHandlePageFault(void *ptr, bool handleFault)
|
||||
if (allocPtr != nullptr) {
|
||||
auto faultData = memoryData[allocPtr];
|
||||
if (faultData.domain == CpuPageFaultManager::AllocationDomain::gpu) {
|
||||
this->allowCPUMemoryAccess(ptr, faultData.size);
|
||||
this->allowCPUMemoryAccess(allocPtr, faultData.size);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user