mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
feature: Enable page faults for xe driver with debugger on
Related-to: NEO-10134 Signed-off-by: Brandon Yates <brandon.yates@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
52ac3d8cf0
commit
4da8a3694c
@@ -968,9 +968,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__);
|
||||
@@ -985,7 +984,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;
|
||||
}
|
||||
if (!disableScratch) {
|
||||
|
||||
Reference in New Issue
Block a user