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