feature: Enable page faults for xe driver with debugger

Related-to: NEO-10134

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
This commit is contained in:
Brandon Yates
2025-01-14 00:46:48 +00:00
committed by Compute-Runtime-Automation
parent 7fda1ba768
commit 4300f0bdbe
2 changed files with 14 additions and 3 deletions

View File

@@ -948,9 +948,8 @@ int IoctlHelperXe::queryDistances(std::vector<QueryItem> &queryItems, std::vecto
bool IoctlHelperXe::isPageFaultSupported() {
xeLog(" -> IoctlHelperXe::%s %d\n", __FUNCTION__, false);
return false;
};
}
uint32_t IoctlHelperXe::getEuStallFdParameter() {
xeLog(" -> IoctlHelperXe::%s\n", __FUNCTION__);
@@ -965,7 +964,8 @@ std::unique_ptr<uint8_t[]> 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;
if (enablePageFault) {
bool debuggingEnabled = drm.getRootDeviceEnvironment().executionEnvironment.isDebuggingEnabled();
if (enablePageFault || debuggingEnabled) {
flags |= DRM_XE_VM_CREATE_FLAG_FAULT_MODE;
}
return flags;