Skip to content

Commit e7a1b53

Browse files
committed
Use new residency model if supported
Related-To: NEO-5007 Change-Id: I74ee500c94d2fea0f8d99dd1b912aa10536b6cae Signed-off-by: Lukasz Jobczyk <[email protected]>
1 parent dd7a5b0 commit e7a1b53

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

opencl/test/unit_test/test_files/igdrcl.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ DirectSubmissionDiagnosticExecutionCount = 30
8686
DirectSubmissionDisableCacheFlush = -1
8787
DirectSubmissionDisableMonitorFence = 0
8888
USMEvictAfterMigration = 1
89-
UseVmBind = 0
89+
UseVmBind = -1
9090
EnableNullHardware = 0
9191
ForceLinearImages = 0
9292
ForceSLML3Config = 0

shared/source/debug_settings/debug_variables_base.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ DECLARE_DEBUG_VARIABLE(int32_t, ForceUserptrAlignment, -1, "-1: no force (4kb),
209209
DECLARE_DEBUG_VARIABLE(int64_t, ForceSystemMemoryPlacement, 0, "0: default, >0: (bitmask) for given Graphics Allocation Type, force system memory placement")
210210
DECLARE_DEBUG_VARIABLE(int64_t, ForceNonSystemMemoryPlacement, 0, "0: default, >0: (bitmask) for given Graphics Allocation Type, force non-system memory placement")
211211
DECLARE_DEBUG_VARIABLE(int64_t, DisableIndirectAccess, -1, "0: default, 0: Indirect access for L0 kernels is enabled, 1: Indirect is disabled")
212-
DECLARE_DEBUG_VARIABLE(int32_t, UseVmBind, 0, "Use new residency model on Linux (requires kernel support), -1: default, 0: disabled, 1: enabled")
212+
DECLARE_DEBUG_VARIABLE(int32_t, UseVmBind, -1, "Use new residency model on Linux (requires kernel support), -1: default, 0: disabled, 1: enabled")
213213
DECLARE_DEBUG_VARIABLE(bool, UseMaxSimdSizeToDeduceMaxWorkgroupSize, false, "With this flag on, max workgroup size is deduced using SIMD32 instead of SIMD8, this causes the max wkg size to be 4 times bigger")
214214
DECLARE_DEBUG_VARIABLE(bool, ReturnRawGpuTimestamps, false, "Driver returns raw GPU tiemstamps instead of calculated ones.")
215215
DECLARE_DEBUG_VARIABLE(bool, ForcePerDssBackedBufferProgramming, false, "Always program per-DSS memory backed buffer in preamble")

shared/source/os_interface/linux/os_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ bool RootDeviceEnvironment::initOsInterface(std::unique_ptr<HwDeviceId> &&hwDevi
4848
return false;
4949
}
5050

51-
memoryOperationsInterface = DrmMemoryOperationsHandler::create(*drm, rootDeviceIndex);
5251
osInterface.reset(new OSInterface());
5352
osInterface->get()->setDrm(drm);
5453
auto hardwareInfo = getMutableHardwareInfo();
5554
HwInfoConfig *hwConfig = HwInfoConfig::get(hardwareInfo->platform.eProductFamily);
5655
if (hwConfig->configureHwInfo(hardwareInfo, hardwareInfo, osInterface.get())) {
5756
return false;
5857
}
58+
memoryOperationsInterface = DrmMemoryOperationsHandler::create(*drm, rootDeviceIndex);
5959
return true;
6060
}
6161
} // namespace NEO

0 commit comments

Comments
 (0)