fix: Crash on over memory allocation

- Add defer backing flag to gem create ioctl
- Make memory resident before lock

Related-To: NEO-13403

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
This commit is contained in:
Bellekallu Rajkiran
2025-02-03 10:27:00 +00:00
committed by Compute-Runtime-Automation
parent aab1113632
commit 3bef9f886a
9 changed files with 78 additions and 4 deletions

View File

@@ -31,6 +31,7 @@ class MockIoctlHelper : public IoctlHelperPrelim20 {
ADDMETHOD_CONST_NOBASE(isImmediateVmBindRequired, bool, false, ());
ADDMETHOD_CONST_NOBASE(getIoctlRequestValue, unsigned int, 1234u, (DrmIoctl));
ADDMETHOD_CONST_NOBASE(isWaitBeforeBindRequired, bool, false, (bool));
ADDMETHOD_CONST_NOBASE(makeResidentBeforeLockNeeded, bool, false, ());
ADDMETHOD_NOBASE(vmBind, int, 0, (const VmBindParams &));
ADDMETHOD_NOBASE(vmUnbind, int, 0, (const VmBindParams &));