mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Revert "feature: enable defer backing by default"
This reverts commit 94a857b975.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f60868c2bb
commit
936de45c71
@@ -509,10 +509,10 @@ DECLARE_DEBUG_VARIABLE(bool, ForceSamplerLowFilteringPrecision, false, "Force Lo
|
||||
DECLARE_DEBUG_VARIABLE(bool, EnablePrivateBO, false, "Enable PRELIM_I915_GEM_CREATE_EXT_VM_PRIVATE extension creating VM_PRIVATE BOs")
|
||||
DECLARE_DEBUG_VARIABLE(bool, EnableAIL, true, "Enables AIL")
|
||||
DECLARE_DEBUG_VARIABLE(bool, EnableReservingInSvmRange, true, "Enables reserving virtual memory in the SVM range")
|
||||
DECLARE_DEBUG_VARIABLE(bool, EnableDeferBacking, false, "Enables defer backing on xe kmd")
|
||||
DECLARE_DEBUG_VARIABLE(bool, DisableProgrammableMetricsSupport, false, "Disable Programmable Metrics support")
|
||||
DECLARE_DEBUG_VARIABLE(bool, Enable512NumGrfs, true, "Enable support for 512 of GRFs per thread")
|
||||
DECLARE_DEBUG_VARIABLE(int64_t, VmBindWaitUserFenceTimeout, -1, "-1: default, >0: time in ns for wait function timeout")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, EnableDeferBacking, -1, "Enables defer backing on xe kmd, -1:default(enabled), 0:disable, 1:enable")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, ForceRunAloneContext, -1, "Control creation of run-alone HW context, -1:default, 0:disable, 1:enable")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, AddClGlSharing, -1, "Add cl-gl extension")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, EnableBOMmapCreate, -1, "Create BOs using mmap, -1:default, 0:disable(GEM_USERPTR), 1:enable")
|
||||
|
||||
@@ -1685,7 +1685,6 @@ void DrmMemoryManager::makeAllocationResidentIfNeeded(GraphicsAllocation *alloca
|
||||
auto ioctlHelper = this->getDrm(rootDeviceIndex).getIoctlHelper();
|
||||
if (ioctlHelper->makeResidentBeforeLockNeeded()) {
|
||||
auto memoryOperationsInterface = executionEnvironment.rootDeviceEnvironments[rootDeviceIndex]->memoryOperationsInterface.get();
|
||||
registerAllocationInOs(allocation);
|
||||
[[maybe_unused]] auto ret = memoryOperationsInterface->makeResidentWithinOsContext(getDefaultOsContext(rootDeviceIndex), ArrayRef<NEO::GraphicsAllocation *>(&allocation, 1), false, false, true) == MemoryOperationsStatus::success;
|
||||
DEBUG_BREAK_IF(!ret);
|
||||
}
|
||||
|
||||
@@ -271,10 +271,6 @@ bool IoctlHelperXe::initialize() {
|
||||
assignValue(tileIdToMediaGtId, gt.tile_id, gt.gt_id);
|
||||
}
|
||||
}
|
||||
if (debugManager.flags.EnableDeferBacking.get() != -1) {
|
||||
enableDeferBacking = debugManager.flags.EnableDeferBacking.get();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -657,7 +653,7 @@ int IoctlHelperXe::createGemExt(const MemRegionsVec &memClassInstances, size_t a
|
||||
create.placement = static_cast<uint32_t>(memoryInstances.to_ulong());
|
||||
create.cpu_caching = this->getCpuCachingMode(isCoherent, isSysMemOnly);
|
||||
|
||||
if (enableDeferBacking) {
|
||||
if (debugManager.flags.EnableDeferBacking.get()) {
|
||||
create.flags |= DRM_XE_GEM_CREATE_FLAG_DEFER_BACKING;
|
||||
}
|
||||
|
||||
@@ -1858,7 +1854,11 @@ bool IoctlHelperXe::isImmediateVmBindRequired() const {
|
||||
}
|
||||
|
||||
bool IoctlHelperXe::makeResidentBeforeLockNeeded() const {
|
||||
return enableDeferBacking;
|
||||
auto makeResidentBeforeLockNeeded = false;
|
||||
if (debugManager.flags.EnableDeferBacking.get()) {
|
||||
makeResidentBeforeLockNeeded = true;
|
||||
}
|
||||
return makeResidentBeforeLockNeeded;
|
||||
}
|
||||
|
||||
void IoctlHelperXe::insertEngineToContextParams(ContextParamEngines<> &contextParamEngines, uint32_t engineId, const EngineClassInstance *engineClassInstance, uint32_t tileId, bool hasVirtualEngines) {
|
||||
|
||||
@@ -233,7 +233,6 @@ class IoctlHelperXe : public IoctlHelper {
|
||||
};
|
||||
|
||||
std::unique_ptr<EuDebugInterface> euDebugInterface;
|
||||
bool enableDeferBacking = true;
|
||||
};
|
||||
|
||||
template <typename... XeLogArgs>
|
||||
|
||||
Reference in New Issue
Block a user