mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
Compute-Runtime-Automation

parent
df9069c7bb
commit
06928a345a
@ -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) {
|
||||
|
@ -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);
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user