2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2021-04-23 22:30:04 +08:00
|
|
|
#include "shared/source/gmm_helper/gmm_lib.h"
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/helpers/basic_math.h"
|
2021-07-06 22:26:44 +08:00
|
|
|
#include "shared/source/helpers/topology_map.h"
|
2021-06-30 00:23:56 +08:00
|
|
|
#include "shared/source/memory_manager/definitions/engine_limits.h"
|
2020-11-05 20:40:03 +08:00
|
|
|
#include "shared/source/os_interface/driver_info.h"
|
2021-01-30 06:23:06 +08:00
|
|
|
#include "shared/source/os_interface/linux/cache_info.h"
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/os_interface/linux/engine_info.h"
|
|
|
|
#include "shared/source/os_interface/linux/hw_device_id.h"
|
|
|
|
#include "shared/source/os_interface/linux/memory_info.h"
|
2021-05-21 07:17:57 +08:00
|
|
|
#include "shared/source/os_interface/os_interface.h"
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/utilities/api_intercept.h"
|
2020-09-14 19:28:47 +08:00
|
|
|
#include "shared/source/utilities/stackvec.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-08-21 18:50:47 +08:00
|
|
|
#include "drm/i915_drm.h"
|
2019-07-11 20:29:45 +08:00
|
|
|
#include "engine_node.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "igfxfmid.h"
|
|
|
|
|
2020-09-14 19:28:47 +08:00
|
|
|
#include <array>
|
2017-12-21 07:45:38 +08:00
|
|
|
#include <cerrno>
|
2019-02-27 18:39:32 +08:00
|
|
|
#include <fcntl.h>
|
2021-08-19 23:26:34 +08:00
|
|
|
#include <limits>
|
2019-03-19 20:53:55 +08:00
|
|
|
#include <memory>
|
2020-11-20 04:43:01 +08:00
|
|
|
#include <mutex>
|
2017-12-21 07:45:38 +08:00
|
|
|
#include <string>
|
2019-02-27 18:39:32 +08:00
|
|
|
#include <sys/ioctl.h>
|
|
|
|
#include <unistd.h>
|
2021-04-21 21:52:11 +08:00
|
|
|
#include <unordered_map>
|
2020-07-07 15:34:31 +08:00
|
|
|
#include <vector>
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2018-02-05 15:54:46 +08:00
|
|
|
struct GT_SYSTEM_INFO;
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
#define I915_CONTEXT_PRIVATE_PARAM_BOOST 0x80000000
|
|
|
|
|
2020-07-02 17:49:46 +08:00
|
|
|
class BufferObject;
|
2017-12-21 07:45:38 +08:00
|
|
|
class DeviceFactory;
|
2020-08-11 20:00:41 +08:00
|
|
|
class OsContext;
|
2018-02-05 15:54:46 +08:00
|
|
|
struct HardwareInfo;
|
2020-01-30 02:10:49 +08:00
|
|
|
struct RootDeviceEnvironment;
|
2020-11-24 23:00:33 +08:00
|
|
|
struct SystemInfo;
|
2018-02-05 15:54:46 +08:00
|
|
|
|
2019-10-15 21:01:57 +08:00
|
|
|
struct DeviceDescriptor { // NOLINT(clang-analyzer-optin.performance.Padding)
|
2018-02-05 15:54:46 +08:00
|
|
|
unsigned short deviceId;
|
|
|
|
const HardwareInfo *pHwInfo;
|
2019-03-28 22:34:26 +08:00
|
|
|
void (*setupHardwareInfo)(HardwareInfo *, bool);
|
2018-02-05 15:54:46 +08:00
|
|
|
GTTYPE eGtType;
|
2020-11-10 01:35:33 +08:00
|
|
|
const char *devName;
|
2018-02-05 15:54:46 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
extern const DeviceDescriptor deviceDescriptorTable[];
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2021-06-28 21:17:49 +08:00
|
|
|
namespace IoctlHelper {
|
|
|
|
std::string getIoctlParamString(int param);
|
|
|
|
std::string getIoctlParamStringRemaining(int param);
|
|
|
|
std::string getIoctlString(unsigned long request);
|
|
|
|
std::string getIoctlStringRemaining(unsigned long request);
|
|
|
|
} // namespace IoctlHelper
|
|
|
|
|
2021-05-21 07:17:57 +08:00
|
|
|
class Drm : public DriverModel {
|
2017-12-21 07:45:38 +08:00
|
|
|
friend DeviceFactory;
|
|
|
|
|
|
|
|
public:
|
2021-05-21 07:17:57 +08:00
|
|
|
static constexpr DriverModelType driverModelType = DriverModelType::DRM;
|
|
|
|
|
2020-09-14 19:28:47 +08:00
|
|
|
enum class ResourceClass : uint32_t {
|
|
|
|
Elf,
|
|
|
|
Isa,
|
|
|
|
ModuleHeapDebugArea,
|
|
|
|
ContextSaveArea,
|
|
|
|
SbaTrackingBuffer,
|
|
|
|
MaxSize
|
|
|
|
};
|
|
|
|
|
2021-04-27 22:45:13 +08:00
|
|
|
struct QueryTopologyData {
|
|
|
|
int sliceCount;
|
|
|
|
int subSliceCount;
|
|
|
|
int euCount;
|
|
|
|
|
|
|
|
int maxSliceCount;
|
|
|
|
int maxSubSliceCount;
|
|
|
|
int maxEuCount;
|
|
|
|
};
|
|
|
|
|
2019-02-11 23:49:23 +08:00
|
|
|
virtual ~Drm();
|
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
virtual int ioctl(unsigned long request, void *arg);
|
|
|
|
|
|
|
|
int getDeviceID(int &devId);
|
2021-05-21 07:17:57 +08:00
|
|
|
unsigned int getDeviceHandle() const override {
|
|
|
|
return 0;
|
|
|
|
}
|
2017-12-21 07:45:38 +08:00
|
|
|
int getDeviceRevID(int &revId);
|
|
|
|
int getExecSoftPin(int &execSoftPin);
|
|
|
|
int enableTurboBoost();
|
|
|
|
int getEuTotal(int &euTotal);
|
|
|
|
int getSubsliceTotal(int &subsliceTotal);
|
|
|
|
|
2020-04-10 19:54:07 +08:00
|
|
|
int getMaxGpuFrequency(HardwareInfo &hwInfo, int &maxGpuFrequency);
|
2017-12-21 07:45:38 +08:00
|
|
|
int getEnabledPooledEu(int &enabled);
|
|
|
|
int getMinEuInPool(int &minEUinPool);
|
2021-06-25 20:28:28 +08:00
|
|
|
int getTimestampFrequency(int &frequency);
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-12-17 22:17:52 +08:00
|
|
|
int queryGttSize(uint64_t >tSizeOutput);
|
2018-12-07 22:03:23 +08:00
|
|
|
bool isPreemptionSupported() const { return preemptionSupported; }
|
2019-12-24 19:20:23 +08:00
|
|
|
|
2018-12-07 22:03:23 +08:00
|
|
|
MOCKABLE_VIRTUAL void checkPreemptionSupport();
|
2020-02-06 00:43:02 +08:00
|
|
|
inline int getFileDescriptor() const { return hwDeviceId->getFileDescriptor(); }
|
2021-06-01 00:58:10 +08:00
|
|
|
ADAPTER_BDF getAdapterBDF() const {
|
|
|
|
return adapterBDF;
|
|
|
|
}
|
|
|
|
int queryAdapterBDF();
|
2020-07-14 10:36:16 +08:00
|
|
|
int createDrmVirtualMemory(uint32_t &drmVmId);
|
2020-07-07 15:34:31 +08:00
|
|
|
void destroyDrmVirtualMemory(uint32_t drmVmId);
|
2021-05-11 19:12:49 +08:00
|
|
|
uint32_t createDrmContext(uint32_t drmVmId, bool isSpecialContextRequested);
|
|
|
|
void appendDrmContextFlags(drm_i915_gem_context_create_ext &gcc, bool isSpecialContextRequested);
|
2018-12-11 15:21:56 +08:00
|
|
|
void destroyDrmContext(uint32_t drmContextId);
|
2020-08-31 13:04:58 +08:00
|
|
|
int queryVmId(uint32_t drmContextId, uint32_t &vmId);
|
2018-12-11 15:21:56 +08:00
|
|
|
void setLowPriorityContextParam(uint32_t drmContextId);
|
2019-12-24 19:20:23 +08:00
|
|
|
|
2021-05-11 23:17:47 +08:00
|
|
|
unsigned int bindDrmContext(uint32_t drmContextId, uint32_t deviceIndex, aub_stream::EngineType engineType, bool engineInstancedDevice);
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
void setGtType(GTTYPE eGtType) { this->eGtType = eGtType; }
|
|
|
|
GTTYPE getGtType() const { return this->eGtType; }
|
2018-02-28 19:09:48 +08:00
|
|
|
MOCKABLE_VIRTUAL int getErrno();
|
2019-08-21 18:50:47 +08:00
|
|
|
bool setQueueSliceCount(uint64_t sliceCount);
|
|
|
|
void checkQueueSliceSupport();
|
|
|
|
uint64_t getSliceMask(uint64_t sliceCount);
|
2020-11-24 23:00:33 +08:00
|
|
|
MOCKABLE_VIRTUAL bool querySystemInfo();
|
2020-08-25 01:08:59 +08:00
|
|
|
MOCKABLE_VIRTUAL bool queryEngineInfo();
|
2021-03-31 13:54:22 +08:00
|
|
|
MOCKABLE_VIRTUAL bool sysmanQueryEngineInfo();
|
|
|
|
MOCKABLE_VIRTUAL bool queryEngineInfo(bool isSysmanEnabled);
|
2020-06-17 17:47:48 +08:00
|
|
|
MOCKABLE_VIRTUAL bool queryMemoryInfo();
|
2021-04-27 22:45:13 +08:00
|
|
|
bool queryTopology(const HardwareInfo &hwInfo, QueryTopologyData &data);
|
2020-07-07 15:34:31 +08:00
|
|
|
bool createVirtualMemoryAddressSpace(uint32_t vmCount);
|
|
|
|
void destroyVirtualMemoryAddressSpace();
|
|
|
|
uint32_t getVirtualMemoryAddressSpace(uint32_t vmId);
|
2020-08-11 20:00:41 +08:00
|
|
|
int bindBufferObject(OsContext *osContext, uint32_t vmHandleId, BufferObject *bo);
|
|
|
|
int unbindBufferObject(OsContext *osContext, uint32_t vmHandleId, BufferObject *bo);
|
2019-10-18 16:15:09 +08:00
|
|
|
int setupHardwareInfo(DeviceDescriptor *, bool);
|
2021-06-15 18:43:12 +08:00
|
|
|
void setupSystemInfo(HardwareInfo *hwInfo, SystemInfo *sysInfo);
|
2021-01-30 06:23:06 +08:00
|
|
|
void setupCacheInfo(const HardwareInfo &hwInfo);
|
2019-12-24 19:20:23 +08:00
|
|
|
|
2021-05-26 00:42:36 +08:00
|
|
|
PhysicalDevicePciBusInfo getPciBusInfo() const override;
|
2020-11-05 20:40:03 +08:00
|
|
|
|
2020-02-11 00:05:32 +08:00
|
|
|
bool areNonPersistentContextsSupported() const { return nonPersistentContextsSupported; }
|
|
|
|
void checkNonPersistentContextsSupport();
|
2019-12-24 19:20:23 +08:00
|
|
|
void setNonPersistentContext(uint32_t drmContextId);
|
2020-07-15 14:07:53 +08:00
|
|
|
bool isPerContextVMRequired() {
|
|
|
|
return requirePerContextVM;
|
|
|
|
}
|
2020-11-23 22:31:20 +08:00
|
|
|
void setPerContextVMRequired(bool required) {
|
|
|
|
requirePerContextVM = required;
|
|
|
|
}
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2021-01-26 04:43:48 +08:00
|
|
|
void checkContextDebugSupport();
|
|
|
|
bool isContextDebugSupported() { return contextDebugSupported; }
|
|
|
|
MOCKABLE_VIRTUAL void setContextDebugFlag(uint32_t drmContextId);
|
|
|
|
|
2021-09-10 05:16:11 +08:00
|
|
|
void setUnrecoverableContext(uint32_t drmContextId);
|
|
|
|
|
2021-02-05 23:27:21 +08:00
|
|
|
void setDirectSubmissionActive(bool value) { this->directSubmissionActive = value; }
|
|
|
|
bool isDirectSubmissionActive() { return this->directSubmissionActive; }
|
|
|
|
|
2020-11-23 22:31:20 +08:00
|
|
|
MOCKABLE_VIRTUAL bool isVmBindAvailable();
|
2020-09-14 19:28:47 +08:00
|
|
|
MOCKABLE_VIRTUAL bool registerResourceClasses();
|
|
|
|
|
2021-11-12 06:11:38 +08:00
|
|
|
MOCKABLE_VIRTUAL void queryPageFaultSupport();
|
2021-11-19 00:06:26 +08:00
|
|
|
MOCKABLE_VIRTUAL bool hasPageFaultSupport() const;
|
2021-11-02 15:54:20 +08:00
|
|
|
|
2020-10-17 06:52:18 +08:00
|
|
|
MOCKABLE_VIRTUAL uint32_t registerResource(ResourceClass classType, const void *data, size_t size);
|
2020-09-14 19:28:47 +08:00
|
|
|
MOCKABLE_VIRTUAL void unregisterResource(uint32_t handle);
|
2020-10-26 21:48:20 +08:00
|
|
|
MOCKABLE_VIRTUAL uint32_t registerIsaCookie(uint32_t isaHandle);
|
2020-09-14 19:28:47 +08:00
|
|
|
|
2021-02-24 01:57:27 +08:00
|
|
|
MOCKABLE_VIRTUAL bool isDebugAttachAvailable();
|
|
|
|
|
2021-05-21 07:17:57 +08:00
|
|
|
void setGmmInputArgs(void *args) override;
|
|
|
|
|
2020-11-24 23:00:33 +08:00
|
|
|
SystemInfo *getSystemInfo() const {
|
|
|
|
return systemInfo.get();
|
|
|
|
}
|
|
|
|
|
2021-01-30 06:23:06 +08:00
|
|
|
CacheInfo *getCacheInfo() const {
|
|
|
|
return cacheInfo.get();
|
|
|
|
}
|
|
|
|
|
2019-04-30 19:09:49 +08:00
|
|
|
MemoryInfo *getMemoryInfo() const {
|
2019-04-10 20:32:41 +08:00
|
|
|
return memoryInfo.get();
|
|
|
|
}
|
2020-06-05 21:18:28 +08:00
|
|
|
|
2020-08-25 01:08:59 +08:00
|
|
|
EngineInfo *getEngineInfo() const {
|
|
|
|
return engineInfo.get();
|
|
|
|
}
|
2021-03-31 13:54:22 +08:00
|
|
|
|
2020-07-21 23:24:26 +08:00
|
|
|
RootDeviceEnvironment &getRootDeviceEnvironment() {
|
|
|
|
return rootDeviceEnvironment;
|
|
|
|
}
|
|
|
|
|
2020-09-14 19:28:47 +08:00
|
|
|
bool resourceRegistrationEnabled() {
|
|
|
|
return classHandles.size() > 0;
|
|
|
|
}
|
|
|
|
|
2019-10-15 00:05:30 +08:00
|
|
|
static bool isi915Version(int fd);
|
2020-02-07 21:32:02 +08:00
|
|
|
|
2021-10-21 20:37:31 +08:00
|
|
|
static Drm *create(std::unique_ptr<HwDeviceIdDrm> &&hwDeviceId, RootDeviceEnvironment &rootDeviceEnvironment);
|
2020-09-17 20:56:32 +08:00
|
|
|
static void overrideBindSupport(bool &useVmBind);
|
2020-12-17 01:59:34 +08:00
|
|
|
std::string getPciPath() {
|
|
|
|
return hwDeviceId->getPciPath();
|
|
|
|
}
|
2020-02-12 00:48:40 +08:00
|
|
|
|
2021-02-05 23:27:21 +08:00
|
|
|
void waitForBind(uint32_t vmHandleId);
|
|
|
|
uint64_t getNextFenceVal(uint32_t vmHandleId) { return ++fenceVal[vmHandleId]; }
|
|
|
|
uint64_t *getFenceAddr(uint32_t vmHandleId) { return &pagingFence[vmHandleId]; }
|
|
|
|
|
2021-06-15 19:31:12 +08:00
|
|
|
int waitHandle(uint32_t waitHandle, int64_t timeout);
|
2021-06-04 20:23:20 +08:00
|
|
|
enum class ValueWidth : uint32_t {
|
|
|
|
U8,
|
|
|
|
U16,
|
|
|
|
U32,
|
|
|
|
U64
|
|
|
|
};
|
2021-06-22 20:06:35 +08:00
|
|
|
MOCKABLE_VIRTUAL int waitUserFence(uint32_t ctxId, uint64_t address, uint64_t value, ValueWidth dataWidth, int64_t timeout, uint16_t flags);
|
2021-06-04 20:23:20 +08:00
|
|
|
|
2021-09-02 00:28:18 +08:00
|
|
|
void setNewResourceBoundToVM(uint32_t vmHandleId);
|
2021-04-14 22:40:23 +08:00
|
|
|
|
2021-05-07 23:29:28 +08:00
|
|
|
const std::vector<int> &getSliceMappings(uint32_t deviceIndex);
|
2021-07-06 22:26:44 +08:00
|
|
|
const TopologyMap &getTopologyMap();
|
2021-05-07 23:29:28 +08:00
|
|
|
|
2021-05-28 01:44:47 +08:00
|
|
|
static std::vector<std::unique_ptr<HwDeviceId>> discoverDevices(ExecutionEnvironment &executionEnvironment);
|
2021-10-11 23:34:03 +08:00
|
|
|
static std::vector<std::unique_ptr<HwDeviceId>> discoverDevice(ExecutionEnvironment &executionEnvironment, std::string &osPciPath);
|
|
|
|
static std::vector<std::unique_ptr<HwDeviceId>> discoverDevices(ExecutionEnvironment &executionEnvironment, std::string &osPciPath);
|
2021-05-28 01:44:47 +08:00
|
|
|
|
2021-08-09 22:33:44 +08:00
|
|
|
std::unique_lock<std::mutex> lockBindFenceMutex();
|
|
|
|
|
2021-10-06 09:57:55 +08:00
|
|
|
void setPciDomain(uint32_t domain) {
|
|
|
|
pciDomain = domain;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t getPciDomain() {
|
|
|
|
return pciDomain;
|
|
|
|
}
|
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
protected:
|
2021-10-21 20:37:31 +08:00
|
|
|
Drm(std::unique_ptr<HwDeviceIdDrm> &&hwDeviceIdIn, RootDeviceEnvironment &rootDeviceEnvironment);
|
2021-06-01 00:58:10 +08:00
|
|
|
|
2021-10-19 10:39:47 +08:00
|
|
|
uint32_t createDrmContextExt(drm_i915_gem_context_create_ext &gcc, uint32_t drmVmId, bool isSpecialContextRequested);
|
2019-08-21 18:50:47 +08:00
|
|
|
int getQueueSliceCount(drm_i915_gem_context_param_sseu *sseu);
|
2021-05-07 23:29:28 +08:00
|
|
|
bool translateTopologyInfo(const drm_i915_query_topology_info *queryTopologyInfo, QueryTopologyData &data, TopologyMapping &mapping);
|
2020-09-08 23:33:33 +08:00
|
|
|
std::string generateUUID();
|
2020-12-12 05:28:22 +08:00
|
|
|
std::string generateElfUUID(const void *data);
|
2020-04-09 00:14:19 +08:00
|
|
|
std::string getSysFsPciPath();
|
2020-11-19 19:04:17 +08:00
|
|
|
std::unique_ptr<uint8_t[]> query(uint32_t queryId, uint32_t queryItemFlags, int32_t &length);
|
2021-04-21 21:52:11 +08:00
|
|
|
void printIoctlStatistics();
|
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
#pragma pack(1)
|
|
|
|
struct PCIConfig {
|
|
|
|
uint16_t VendorID;
|
|
|
|
uint16_t DeviceID;
|
|
|
|
uint16_t Command;
|
|
|
|
uint16_t Status;
|
|
|
|
uint8_t Revision;
|
|
|
|
uint8_t ProgIF;
|
|
|
|
uint8_t Subclass;
|
|
|
|
uint8_t ClassCode;
|
|
|
|
uint8_t cacheLineSize;
|
|
|
|
uint8_t LatencyTimer;
|
|
|
|
uint8_t HeaderType;
|
|
|
|
uint8_t BIST;
|
|
|
|
uint32_t BAR0[6];
|
|
|
|
uint32_t CardbusCISPointer;
|
|
|
|
uint16_t SubsystemVendorID;
|
|
|
|
uint16_t SubsystemDeviceID;
|
|
|
|
uint32_t ROM;
|
|
|
|
uint8_t Capabilities;
|
|
|
|
uint8_t Reserved[7];
|
|
|
|
uint8_t InterruptLine;
|
|
|
|
uint8_t InterruptPIN;
|
|
|
|
uint8_t MinGrant;
|
|
|
|
uint8_t MaxLatency;
|
|
|
|
};
|
|
|
|
#pragma pack()
|
2021-06-01 00:58:10 +08:00
|
|
|
|
|
|
|
drm_i915_gem_context_param_sseu sseu{};
|
|
|
|
ADAPTER_BDF adapterBDF{};
|
2021-10-06 09:57:55 +08:00
|
|
|
uint32_t pciDomain = 0;
|
2021-06-01 00:58:10 +08:00
|
|
|
|
2021-07-06 22:26:44 +08:00
|
|
|
TopologyMap topologyMap;
|
2021-08-19 23:26:34 +08:00
|
|
|
struct IoctlStatisticsEntry {
|
|
|
|
long long totalTime = 0;
|
|
|
|
uint64_t count = 0;
|
|
|
|
long long minTime = std::numeric_limits<long long>::max();
|
|
|
|
long long maxTime = 0;
|
|
|
|
};
|
|
|
|
std::unordered_map<unsigned long, IoctlStatisticsEntry> ioctlStatistics;
|
2021-06-01 00:58:10 +08:00
|
|
|
|
2021-08-09 22:33:44 +08:00
|
|
|
std::mutex bindFenceMutex;
|
2021-06-01 00:58:10 +08:00
|
|
|
std::array<uint64_t, EngineLimits::maxHandleCount> pagingFence;
|
|
|
|
std::array<uint64_t, EngineLimits::maxHandleCount> fenceVal;
|
|
|
|
StackVec<uint32_t, size_t(ResourceClass::MaxSize)> classHandles;
|
|
|
|
std::vector<uint32_t> virtualMemoryIds;
|
|
|
|
|
|
|
|
std::unique_ptr<HwDeviceIdDrm> hwDeviceId;
|
|
|
|
std::unique_ptr<SystemInfo> systemInfo;
|
|
|
|
std::unique_ptr<CacheInfo> cacheInfo;
|
|
|
|
std::unique_ptr<EngineInfo> engineInfo;
|
|
|
|
std::unique_ptr<MemoryInfo> memoryInfo;
|
|
|
|
|
|
|
|
std::once_flag checkBindOnce;
|
|
|
|
|
|
|
|
RootDeviceEnvironment &rootDeviceEnvironment;
|
|
|
|
uint64_t uuid = 0;
|
|
|
|
|
|
|
|
int deviceId = 0;
|
|
|
|
int revisionId = 0;
|
|
|
|
GTTYPE eGtType = GTTYPE_UNDEFINED;
|
|
|
|
|
|
|
|
bool sliceCountChangeSupported = false;
|
|
|
|
bool preemptionSupported = false;
|
|
|
|
bool nonPersistentContextsSupported = false;
|
|
|
|
bool requirePerContextVM = false;
|
|
|
|
bool bindAvailable = false;
|
|
|
|
bool directSubmissionActive = false;
|
|
|
|
bool contextDebugSupported = false;
|
2021-11-02 15:54:20 +08:00
|
|
|
bool pageFaultSupported = false;
|
2021-06-01 00:58:10 +08:00
|
|
|
|
2018-03-12 19:03:20 +08:00
|
|
|
private:
|
|
|
|
int getParamIoctl(int param, int *dstValue);
|
2017-12-21 07:45:38 +08:00
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|