mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Revert "feature: support explicit memory locking"
This reverts commit 27a3307bb0.
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e44ac2a001
commit
068f6a25c6
@@ -9,7 +9,6 @@ set(NEO_CORE_OS_INTERFACE_LINUX_XE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/drm_version_xe.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ioctl_helper_xe.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}ioctl_helper_xe_string_value_getter.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}ioctl_helper_xe_vm_bind_flag.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}ioctl_helper_xe_vm_export.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}ioctl_helper_xe_context.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}ioctl_helper_xe_perf.cpp
|
||||
|
||||
@@ -743,6 +743,21 @@ bool IoctlHelperXe::completionFenceExtensionSupported(const bool isVmBindAvailab
|
||||
return isVmBindAvailable;
|
||||
}
|
||||
|
||||
uint64_t IoctlHelperXe::getFlagsForVmBind(bool bindCapture, bool bindImmediate, bool bindMakeResident) {
|
||||
uint64_t ret = 0;
|
||||
xeLog(" -> IoctlHelperXe::%s %d %d %d\n", __FUNCTION__, bindCapture, bindImmediate, bindMakeResident);
|
||||
if (bindCapture) {
|
||||
ret |= XE_NEO_BIND_CAPTURE_FLAG;
|
||||
}
|
||||
if (bindImmediate) {
|
||||
ret |= XE_NEO_BIND_IMMEDIATE_FLAG;
|
||||
}
|
||||
if (bindMakeResident) {
|
||||
ret |= XE_NEO_BIND_MAKERESIDENT_FLAG;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
int IoctlHelperXe::queryDistances(std::vector<QueryItem> &queryItems, std::vector<DistanceInfo> &distanceInfos) {
|
||||
xeLog(" -> IoctlHelperXe::%s\n", __FUNCTION__);
|
||||
return 0;
|
||||
@@ -1227,7 +1242,6 @@ int IoctlHelperXe::xeVmBind(const VmBindParams &vmBindParams, bool isBind) {
|
||||
|
||||
if (isBind) {
|
||||
bind.bind.op = DRM_XE_VM_BIND_OP_MAP;
|
||||
bind.bind.flags = static_cast<uint32_t>(vmBindParams.flags);
|
||||
bind.bind.obj = vmBindParams.handle;
|
||||
if (bindInfo[index].userptr) {
|
||||
bind.bind.op = DRM_XE_VM_BIND_OP_MAP_USERPTR;
|
||||
|
||||
@@ -20,8 +20,7 @@ struct drm_xe_engine_class_instance;
|
||||
// Arbitratry value for easier identification in the logs for now
|
||||
#define XE_NEO_BIND_CAPTURE_FLAG 0x1
|
||||
#define XE_NEO_BIND_IMMEDIATE_FLAG 0x20
|
||||
#define XE_NEO_BIND_PIN_FLAG (1 << 3) // value for DRM_XE_VM_BIND_FLAG_PIN
|
||||
#define XE_NEO_BIND_MAKERESIDENT_FLAG XE_NEO_BIND_PIN_FLAG
|
||||
#define XE_NEO_BIND_MAKERESIDENT_FLAG 0x300
|
||||
|
||||
#define XE_NEO_VMCREATE_DISABLESCRATCH_FLAG 0x100000
|
||||
#define XE_NEO_VMCREATE_ENABLEPAGEFAULT_FLAG 0x20000
|
||||
@@ -77,7 +76,7 @@ class IoctlHelperXe : public IoctlHelper {
|
||||
bool getGemTiling(void *setTiling) override;
|
||||
uint32_t getDirectSubmissionFlag() override;
|
||||
std::unique_ptr<uint8_t[]> prepareVmBindExt(const StackVec<uint32_t, 2> &bindExtHandles) override;
|
||||
uint64_t getFlagsForVmBind(bool bindCapture, bool bindImmediate, bool bindMakeResident, bool bindLock) override;
|
||||
uint64_t getFlagsForVmBind(bool bindCapture, bool bindImmediate, bool bindMakeResident) override;
|
||||
int queryDistances(std::vector<QueryItem> &queryItems, std::vector<DistanceInfo> &distanceInfos) override;
|
||||
uint16_t getWaitUserFenceSoftFlag() override;
|
||||
int execBuffer(ExecBuffer *execBuffer, uint64_t completionGpuAddress, TaskCountType counterValue) override;
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/os_interface/linux/xe/ioctl_helper_xe.h"
|
||||
|
||||
#include "drm/xe_drm.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
uint64_t IoctlHelperXe::getFlagsForVmBind(bool bindCapture, bool bindImmediate, bool bindMakeResident, bool bindLock) {
|
||||
uint64_t ret = 0;
|
||||
xeLog(" -> IoctlHelperXe::%s %d %d %d %d\n", __FUNCTION__, bindCapture, bindImmediate, bindMakeResident, bindLock);
|
||||
if (bindCapture) {
|
||||
ret |= XE_NEO_BIND_CAPTURE_FLAG;
|
||||
}
|
||||
if (bindImmediate) {
|
||||
ret |= DRM_XE_VM_BIND_FLAG_IMMEDIATE;
|
||||
}
|
||||
if (bindMakeResident) {
|
||||
ret |= XE_NEO_BIND_MAKERESIDENT_FLAG;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user