diff --git a/shared/source/os_interface/linux/xe/ioctl_helper_xe.cpp b/shared/source/os_interface/linux/xe/ioctl_helper_xe.cpp index 52be9d2f9d..1b2d732145 100644 --- a/shared/source/os_interface/linux/xe/ioctl_helper_xe.cpp +++ b/shared/source/os_interface/linux/xe/ioctl_helper_xe.cpp @@ -948,8 +948,9 @@ int IoctlHelperXe::queryDistances(std::vector &queryItems, std::vecto bool IoctlHelperXe::isPageFaultSupported() { xeLog(" -> IoctlHelperXe::%s %d\n", __FUNCTION__, false); + return false; -} +}; uint32_t IoctlHelperXe::getEuStallFdParameter() { xeLog(" -> IoctlHelperXe::%s\n", __FUNCTION__); @@ -964,8 +965,7 @@ std::unique_ptr IoctlHelperXe::createVmControlExtRegion(const std::op uint32_t IoctlHelperXe::getFlagsForVmCreate(bool disableScratch, bool enablePageFault, bool useVmBind) { xeLog(" -> IoctlHelperXe::%s %d,%d,%d\n", __FUNCTION__, disableScratch, enablePageFault, useVmBind); uint32_t flags = DRM_XE_VM_CREATE_FLAG_LR_MODE; - bool debuggingEnabled = drm.getRootDeviceEnvironment().executionEnvironment.isDebuggingEnabled(); - if (enablePageFault || debuggingEnabled) { + if (enablePageFault) { flags |= DRM_XE_VM_CREATE_FLAG_FAULT_MODE; } return flags; diff --git a/shared/test/unit_test/os_interface/linux/xe/ioctl_helper_xe_debugger_tests.cpp b/shared/test/unit_test/os_interface/linux/xe/ioctl_helper_xe_debugger_tests.cpp index cb87971306..cb878acf56 100644 --- a/shared/test/unit_test/os_interface/linux/xe/ioctl_helper_xe_debugger_tests.cpp +++ b/shared/test/unit_test/os_interface/linux/xe/ioctl_helper_xe_debugger_tests.cpp @@ -421,14 +421,3 @@ TEST_F(IoctlHelperXeTest, givenDebuggingEnabledWhenCallingVmBindThenWaitUserFenc waitUserFence = drm->waitUserFenceInputs[0]; EXPECT_EQ(expectedTimeout, waitUserFence.timeout); } - -TEST_F(IoctlHelperXeTest, givenDebuggingEnabledWhenCallinggetFlagsForVmCreateThenFaultModeIsEnabled) { - auto executionEnvironment = std::make_unique(); - executionEnvironment->setDebuggingMode(DebuggingMode::online); - auto drm = DrmMockXeDebug::create(*executionEnvironment->rootDeviceEnvironments[0]); - auto xeIoctlHelper = std::make_unique(*drm); - uint32_t flags = xeIoctlHelper->getFlagsForVmCreate(false, false, false); - EXPECT_EQ(flags & DRM_XE_VM_CREATE_FLAG_FAULT_MODE, static_cast(DRM_XE_VM_CREATE_FLAG_FAULT_MODE)); - flags = xeIoctlHelper->getFlagsForVmCreate(false, true, false); - EXPECT_EQ(flags & DRM_XE_VM_CREATE_FLAG_FAULT_MODE, static_cast(DRM_XE_VM_CREATE_FLAG_FAULT_MODE)); -} \ No newline at end of file