Revert "Enable recoverable page faults by default on faultable hardware"

This reverts commit 4591b27900.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2023-01-27 02:19:31 +01:00
committed by Compute-Runtime-Automation
parent df9069c7bb
commit 06928a345a
3 changed files with 10 additions and 2 deletions

View File

@ -1181,7 +1181,7 @@ bool Drm::hasPageFaultSupport() const {
return !!DebugManager.flags.EnableRecoverablePageFaults.get();
}
return pageFaultSupported;
return false;
}
unsigned int Drm::bindDrmContext(uint32_t drmContextId, uint32_t deviceIndex, aub_stream::EngineType engineType, bool engineInstancedDevice) {

View File

@ -165,7 +165,7 @@ class Drm : public DriverModel {
MOCKABLE_VIRTUAL bool registerResourceClasses();
MOCKABLE_VIRTUAL void queryPageFaultSupport();
bool hasPageFaultSupport() const;
MOCKABLE_VIRTUAL bool hasPageFaultSupport() const;
MOCKABLE_VIRTUAL uint32_t registerResource(DrmResourceClass classType, const void *data, size_t size);
MOCKABLE_VIRTUAL void unregisterResource(uint32_t handle);

View File

@ -114,6 +114,14 @@ class DrmMock : public Drm {
queryPageFaultSupportCalled = true;
}
bool hasPageFaultSupport() const override {
if (DebugManager.flags.EnableRecoverablePageFaults.get() != -1) {
return !!DebugManager.flags.EnableRecoverablePageFaults.get();
}
return pageFaultSupported;
}
uint32_t createDrmContext(uint32_t drmVmId, bool isDirectSubmissionRequested, bool isCooperativeContextRequested) override {
capturedCooperativeContextRequest = isCooperativeContextRequested;
if (callBaseCreateDrmContext) {