mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 10:26:29 +08:00
Updating files modified in 2018 only. Older files remain with old style copyright header Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
216 lines
8.4 KiB
C++
216 lines
8.4 KiB
C++
/*
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "hw_cmds.h"
|
|
#include "hw_info_skl.h"
|
|
#include "runtime/aub_mem_dump/aub_services.h"
|
|
#include "runtime/helpers/engine_node.h"
|
|
#include "runtime/memory_manager/memory_constants.h"
|
|
|
|
namespace OCLRT {
|
|
|
|
const char *HwMapper<IGFX_SKYLAKE>::abbreviation = "skl";
|
|
|
|
bool isSimulationSKL(unsigned short deviceId) {
|
|
switch (deviceId) {
|
|
case ISKL_GT0_DESK_DEVICE_F0_ID:
|
|
case ISKL_GT1_DESK_DEVICE_F0_ID:
|
|
case ISKL_GT2_DESK_DEVICE_F0_ID:
|
|
case ISKL_GT3_DESK_DEVICE_F0_ID:
|
|
case ISKL_GT4_DESK_DEVICE_F0_ID:
|
|
return true;
|
|
}
|
|
return false;
|
|
};
|
|
|
|
const PLATFORM SKL::platform = {
|
|
IGFX_SKYLAKE,
|
|
PCH_UNKNOWN,
|
|
IGFX_GEN9_CORE,
|
|
IGFX_GEN9_CORE,
|
|
PLATFORM_NONE, // default init
|
|
0, // usDeviceID
|
|
9, // usRevId. 0 sets the stepping to A0
|
|
0, // usDeviceID_PCH
|
|
0, // usRevId_PCH
|
|
GTTYPE_UNDEFINED};
|
|
|
|
const RuntimeCapabilityTable SKL::capabilityTable{0,
|
|
83.333,
|
|
21,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true, // ftrSupportsVmeAvcTextureSampler
|
|
false, // ftrSupportsVmeAvcPreemption
|
|
false, // ftrRenderCompressedBuffers
|
|
false, // ftrRenderCompressedImages
|
|
PreemptionMode::MidThread,
|
|
{true, false},
|
|
&isSimulationSKL,
|
|
true,
|
|
true, // forceStatelessCompilationFor32Bit
|
|
{false, 0, false, 0, false, 0}, // KmdNotifyProperties
|
|
true, // ftr64KBpages
|
|
EngineType::ENGINE_RCS, // defaultEngineType
|
|
MemoryConstants::pageSize, // requiredPreemptionSurfaceSize
|
|
true, // isCore
|
|
true, // sourceLevelDebuggerSupported
|
|
CmdServicesMemTraceVersion::DeviceValues::Skl,
|
|
0, // extraQuantityThreadsPerEU
|
|
MemoryConstants::max48BitAddress}; // gpuAddressSpace
|
|
|
|
const HardwareInfo SKL_1x2x6::hwInfo = {
|
|
&SKL::platform,
|
|
&emptySkuTable,
|
|
&emptyWaTable,
|
|
&SKL_1x2x6::gtSystemInfo,
|
|
SKL::capabilityTable,
|
|
};
|
|
GT_SYSTEM_INFO SKL_1x2x6::gtSystemInfo = {0};
|
|
void SKL_1x2x6::setupHardwareInfo(GT_SYSTEM_INFO *gtSysInfo, FeatureTable *featureTable, bool setupFeatureTable) {
|
|
gtSysInfo->EUCount = 11;
|
|
gtSysInfo->ThreadCount = 11 * SKL::threadsPerEu;
|
|
gtSysInfo->SliceCount = 1;
|
|
gtSysInfo->SubSliceCount = 2;
|
|
gtSysInfo->L3CacheSizeInKb = 384;
|
|
gtSysInfo->L3BankCount = 2;
|
|
gtSysInfo->MaxFillRate = 8;
|
|
gtSysInfo->TotalVsThreads = 336;
|
|
gtSysInfo->TotalHsThreads = 336;
|
|
gtSysInfo->TotalDsThreads = 336;
|
|
gtSysInfo->TotalGsThreads = 336;
|
|
gtSysInfo->TotalPsThreadsWindowerRange = 64;
|
|
gtSysInfo->CsrSizeInMb = 8;
|
|
gtSysInfo->MaxEuPerSubSlice = SKL::maxEuPerSubslice;
|
|
gtSysInfo->MaxSlicesSupported = SKL::maxSlicesSupported;
|
|
gtSysInfo->MaxSubSlicesSupported = SKL::maxSubslicesSupported;
|
|
gtSysInfo->IsL3HashModeEnabled = false;
|
|
gtSysInfo->IsDynamicallyPopulated = false;
|
|
};
|
|
|
|
const HardwareInfo SKL_1x3x6::hwInfo = {
|
|
&SKL::platform,
|
|
&emptySkuTable,
|
|
&emptyWaTable,
|
|
&SKL_1x3x6::gtSystemInfo,
|
|
SKL::capabilityTable,
|
|
};
|
|
GT_SYSTEM_INFO SKL_1x3x6::gtSystemInfo = {0};
|
|
void SKL_1x3x6::setupHardwareInfo(GT_SYSTEM_INFO *gtSysInfo, FeatureTable *featureTable, bool setupFeatureTable) {
|
|
gtSysInfo->EUCount = 17;
|
|
gtSysInfo->ThreadCount = 17 * SKL::threadsPerEu;
|
|
gtSysInfo->SliceCount = 1;
|
|
gtSysInfo->SubSliceCount = 3;
|
|
gtSysInfo->L3CacheSizeInKb = 768;
|
|
gtSysInfo->L3BankCount = 4;
|
|
gtSysInfo->MaxFillRate = 8;
|
|
gtSysInfo->TotalVsThreads = 336;
|
|
gtSysInfo->TotalHsThreads = 336;
|
|
gtSysInfo->TotalDsThreads = 336;
|
|
gtSysInfo->TotalGsThreads = 336;
|
|
gtSysInfo->TotalPsThreadsWindowerRange = 64;
|
|
gtSysInfo->CsrSizeInMb = 8;
|
|
gtSysInfo->MaxEuPerSubSlice = SKL::maxEuPerSubslice;
|
|
gtSysInfo->MaxSlicesSupported = SKL::maxSlicesSupported;
|
|
gtSysInfo->MaxSubSlicesSupported = SKL::maxSubslicesSupported;
|
|
gtSysInfo->IsL3HashModeEnabled = false;
|
|
gtSysInfo->IsDynamicallyPopulated = false;
|
|
};
|
|
|
|
const HardwareInfo SKL_1x3x8::hwInfo = {
|
|
&SKL::platform,
|
|
&emptySkuTable,
|
|
&emptyWaTable,
|
|
&SKL_1x3x8::gtSystemInfo,
|
|
SKL::capabilityTable,
|
|
};
|
|
GT_SYSTEM_INFO SKL_1x3x8::gtSystemInfo = {0};
|
|
void SKL_1x3x8::setupHardwareInfo(GT_SYSTEM_INFO *gtSysInfo, FeatureTable *featureTable, bool setupFeatureTable) {
|
|
gtSysInfo->EUCount = 23;
|
|
gtSysInfo->ThreadCount = 23 * SKL::threadsPerEu;
|
|
gtSysInfo->SliceCount = 1;
|
|
gtSysInfo->SubSliceCount = 3;
|
|
gtSysInfo->L3CacheSizeInKb = 768;
|
|
gtSysInfo->L3BankCount = 4;
|
|
gtSysInfo->MaxFillRate = 8;
|
|
gtSysInfo->TotalVsThreads = 336;
|
|
gtSysInfo->TotalHsThreads = 336;
|
|
gtSysInfo->TotalDsThreads = 336;
|
|
gtSysInfo->TotalGsThreads = 336;
|
|
gtSysInfo->TotalPsThreadsWindowerRange = 64;
|
|
gtSysInfo->CsrSizeInMb = 8;
|
|
gtSysInfo->MaxEuPerSubSlice = SKL::maxEuPerSubslice;
|
|
gtSysInfo->MaxSlicesSupported = SKL::maxSlicesSupported;
|
|
gtSysInfo->MaxSubSlicesSupported = SKL::maxSubslicesSupported;
|
|
gtSysInfo->IsL3HashModeEnabled = false;
|
|
gtSysInfo->IsDynamicallyPopulated = false;
|
|
};
|
|
|
|
const HardwareInfo SKL_2x3x8::hwInfo = {
|
|
&SKL::platform,
|
|
&emptySkuTable,
|
|
&emptyWaTable,
|
|
&SKL_2x3x8::gtSystemInfo,
|
|
SKL::capabilityTable,
|
|
};
|
|
GT_SYSTEM_INFO SKL_2x3x8::gtSystemInfo = {0};
|
|
void SKL_2x3x8::setupHardwareInfo(GT_SYSTEM_INFO *gtSysInfo, FeatureTable *featureTable, bool setupFeatureTable) {
|
|
gtSysInfo->EUCount = 47;
|
|
gtSysInfo->ThreadCount = 47 * SKL::threadsPerEu;
|
|
gtSysInfo->SliceCount = 2;
|
|
gtSysInfo->SubSliceCount = 6;
|
|
gtSysInfo->L3CacheSizeInKb = 1536;
|
|
gtSysInfo->L3BankCount = 8;
|
|
gtSysInfo->MaxFillRate = 16;
|
|
gtSysInfo->TotalVsThreads = 336;
|
|
gtSysInfo->TotalHsThreads = 336;
|
|
gtSysInfo->TotalDsThreads = 336;
|
|
gtSysInfo->TotalGsThreads = 336;
|
|
gtSysInfo->TotalPsThreadsWindowerRange = 64;
|
|
gtSysInfo->CsrSizeInMb = 8;
|
|
gtSysInfo->MaxEuPerSubSlice = SKL::maxEuPerSubslice;
|
|
gtSysInfo->MaxSlicesSupported = SKL::maxSlicesSupported;
|
|
gtSysInfo->MaxSubSlicesSupported = SKL::maxSubslicesSupported;
|
|
gtSysInfo->IsL3HashModeEnabled = false;
|
|
gtSysInfo->IsDynamicallyPopulated = false;
|
|
};
|
|
|
|
const HardwareInfo SKL_3x3x8::hwInfo = {
|
|
&SKL::platform,
|
|
&emptySkuTable,
|
|
&emptyWaTable,
|
|
&SKL_3x3x8::gtSystemInfo,
|
|
SKL::capabilityTable,
|
|
};
|
|
GT_SYSTEM_INFO SKL_3x3x8::gtSystemInfo = {0};
|
|
void SKL_3x3x8::setupHardwareInfo(GT_SYSTEM_INFO *gtSysInfo, FeatureTable *featureTable, bool setupFeatureTable) {
|
|
gtSysInfo->EUCount = 71;
|
|
gtSysInfo->ThreadCount = 71 * SKL::threadsPerEu;
|
|
gtSysInfo->SliceCount = 3;
|
|
gtSysInfo->SubSliceCount = 9;
|
|
gtSysInfo->L3CacheSizeInKb = 2304;
|
|
gtSysInfo->L3BankCount = 12;
|
|
gtSysInfo->MaxFillRate = 24;
|
|
gtSysInfo->TotalVsThreads = 336;
|
|
gtSysInfo->TotalHsThreads = 336;
|
|
gtSysInfo->TotalDsThreads = 336;
|
|
gtSysInfo->TotalGsThreads = 336;
|
|
gtSysInfo->TotalPsThreadsWindowerRange = 64;
|
|
gtSysInfo->CsrSizeInMb = 8;
|
|
gtSysInfo->MaxEuPerSubSlice = SKL::maxEuPerSubslice;
|
|
gtSysInfo->MaxSlicesSupported = SKL::maxSlicesSupported;
|
|
gtSysInfo->MaxSubSlicesSupported = SKL::maxSubslicesSupported;
|
|
gtSysInfo->IsL3HashModeEnabled = false;
|
|
gtSysInfo->IsDynamicallyPopulated = false;
|
|
};
|
|
|
|
const HardwareInfo SKL::hwInfo = SKL_1x3x8::hwInfo;
|
|
void (*SKL::setupHardwareInfo)(GT_SYSTEM_INFO *, FeatureTable *, bool) = SKL_1x3x8::setupHardwareInfo;
|
|
} // namespace OCLRT
|