Revert "fix: allow using recoverable pagefaults on xekmd"

This reverts commit 4404d0c6b8.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2024-08-20 05:18:42 +02:00
committed by Compute-Runtime-Automation
parent 4748283cfd
commit 006285105d
2 changed files with 2 additions and 14 deletions

View File

@@ -871,9 +871,9 @@ int IoctlHelperXe::queryDistances(std::vector<QueryItem> &queryItems, std::vecto
}
bool IoctlHelperXe::isPageFaultSupported() {
xeLog(" -> IoctlHelperXe::%s %d\n", __FUNCTION__, supportedFeatures.flags.pageFault == true);
xeLog(" -> IoctlHelperXe::%s %d\n", __FUNCTION__, false);
return supportedFeatures.flags.pageFault;
return false;
};
uint32_t IoctlHelperXe::getEuStallFdParameter() {

View File

@@ -2314,18 +2314,6 @@ TEST(IoctlHelperXeVmBindTest, givenDeviceInFaultModeWhenInitializeIoctlHelperThe
}
}
TEST(IoctlHelperXeVmBindTest, givenPageFaultSupportIsSetWhenCallingIsPageFaultSupportedThenProperValueIsReturned) {
auto executionEnvironment = std::make_unique<MockExecutionEnvironment>();
auto drm = DrmMockXeVmBind::create(*executionEnvironment->rootDeviceEnvironments[0]);
for (const auto &recoverablePageFault : ::testing::Bool()) {
drm->supportsRecoverablePageFault = recoverablePageFault;
auto xeIoctlHelper = std::make_unique<MockIoctlHelperXe>(*drm);
xeIoctlHelper->initialize();
EXPECT_EQ(xeIoctlHelper->isPageFaultSupported(), recoverablePageFault);
}
}
struct HwIpVersionFixture {
HwIpVersionFixture() : hwInfo{*executionEnvironment.rootDeviceEnvironments[0]->getHardwareInfo()},