2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2019-02-27 11:39:32 +01:00
|
|
|
* Copyright (C) 2017-2019 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
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2019-02-27 11:39:32 +01:00
|
|
|
#include "runtime/aub_mem_dump/aub_services.h"
|
|
|
|
|
#include "runtime/memory_manager/memory_constants.h"
|
|
|
|
|
|
2018-10-27 14:46:29 -07:00
|
|
|
#include "engine_node.h"
|
2017-12-21 00:45:38 +01:00
|
|
|
#include "hw_cmds.h"
|
2018-07-18 14:11:05 +02:00
|
|
|
#include "hw_info_glk.h"
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
|
const char *HwMapper<IGFX_GEMINILAKE>::abbreviation = "glk";
|
|
|
|
|
|
|
|
|
|
bool isSimulationGLK(unsigned short deviceId) {
|
|
|
|
|
return false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const PLATFORM GLK::platform = {
|
|
|
|
|
IGFX_GEMINILAKE,
|
|
|
|
|
PCH_UNKNOWN,
|
|
|
|
|
IGFX_GEN9_CORE,
|
|
|
|
|
IGFX_GEN9_CORE,
|
|
|
|
|
PLATFORM_MOBILE, // default init
|
|
|
|
|
0, // usDeviceID
|
|
|
|
|
0, // usRevId. 0 sets the stepping to A0
|
|
|
|
|
0, // usDeviceID_PCH
|
|
|
|
|
0, // usRevId_PCH
|
|
|
|
|
GTTYPE_UNDEFINED};
|
|
|
|
|
|
2018-12-06 15:33:02 +01:00
|
|
|
const RuntimeCapabilityTable GLK::capabilityTable{
|
|
|
|
|
{30000, 0, 0, true, false, false}, // kmdNotifyProperties
|
|
|
|
|
{true, false}, // whitelistedRegisters
|
|
|
|
|
MemoryConstants::max48BitAddress, // gpuAddressSpace
|
|
|
|
|
52.083, // defaultProfilingTimerResolution
|
|
|
|
|
MemoryConstants::pageSize, // requiredPreemptionSurfaceSize
|
|
|
|
|
&isSimulationGLK, // isSimulation
|
|
|
|
|
PreemptionMode::MidThread, // defaultPreemptionMode
|
2019-03-27 10:06:29 +01:00
|
|
|
aub_stream::ENGINE_RCS, // defaultEngineType
|
2018-12-06 15:33:02 +01:00
|
|
|
0, // maxRenderFrequency
|
|
|
|
|
12, // clVersionSupport
|
|
|
|
|
CmdServicesMemTraceVersion::DeviceValues::Glk, // aubDeviceId
|
|
|
|
|
0, // extraQuantityThreadsPerEU
|
|
|
|
|
64, // slmSize
|
2019-04-16 09:06:37 +02:00
|
|
|
false, // blitterOperationsSupported
|
2018-12-06 15:33:02 +01:00
|
|
|
true, // ftrSupportsFP64
|
|
|
|
|
true, // ftrSupports64BitMath
|
|
|
|
|
false, // ftrSvm
|
|
|
|
|
true, // ftrSupportsCoherency
|
|
|
|
|
true, // ftrSupportsVmeAvcTextureSampler
|
|
|
|
|
false, // ftrSupportsVmeAvcPreemption
|
|
|
|
|
false, // ftrRenderCompressedBuffers
|
|
|
|
|
false, // ftrRenderCompressedImages
|
|
|
|
|
false, // ftr64KBpages
|
|
|
|
|
true, // instrumentationEnabled
|
|
|
|
|
false, // forceStatelessCompilationFor32Bit
|
|
|
|
|
false, // isCore
|
|
|
|
|
true, // sourceLevelDebuggerSupported
|
|
|
|
|
true, // supportsVme
|
|
|
|
|
false // supportCacheFlushAfterWalker
|
|
|
|
|
};
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2019-03-28 15:34:26 +01:00
|
|
|
WorkaroundTable GLK::workaroundTable = {};
|
|
|
|
|
FeatureTable GLK::featureTable = {};
|
|
|
|
|
|
|
|
|
|
void GLK::setupFeatureAndWorkaroundTable(HardwareInfo *hwInfo) {
|
2019-05-06 12:33:44 +02:00
|
|
|
FeatureTable *pSkuTable = &hwInfo->pSkuTable;
|
|
|
|
|
WorkaroundTable *pWaTable = &hwInfo->pWaTable;
|
2019-03-28 15:34:26 +01:00
|
|
|
|
2019-04-25 15:14:36 +02:00
|
|
|
pSkuTable->ftrGpGpuMidBatchPreempt = true;
|
|
|
|
|
pSkuTable->ftrGpGpuThreadGroupLevelPreempt = true;
|
|
|
|
|
pSkuTable->ftrL3IACoherency = true;
|
2019-03-28 15:34:26 +01:00
|
|
|
pSkuTable->ftrGpGpuMidThreadLevelPreempt = false;
|
|
|
|
|
pSkuTable->ftr3dMidBatchPreempt = true;
|
|
|
|
|
pSkuTable->ftr3dObjectLevelPreempt = true;
|
|
|
|
|
pSkuTable->ftrPerCtxtPreemptionGranularityControl = true;
|
|
|
|
|
pSkuTable->ftrLCIA = true;
|
|
|
|
|
pSkuTable->ftrPPGTT = true;
|
|
|
|
|
pSkuTable->ftrIA32eGfxPTEs = true;
|
|
|
|
|
pSkuTable->ftrTranslationTable = true;
|
|
|
|
|
pSkuTable->ftrUserModeTranslationTable = true;
|
|
|
|
|
pSkuTable->ftrEnableGuC = true;
|
|
|
|
|
pSkuTable->ftrTileMappedResource = true;
|
|
|
|
|
pSkuTable->ftrULT = true;
|
|
|
|
|
pSkuTable->ftrAstcHdr2D = true;
|
|
|
|
|
pSkuTable->ftrAstcLdr2D = true;
|
|
|
|
|
pSkuTable->ftrTileY = true;
|
|
|
|
|
|
|
|
|
|
pWaTable->waLLCCachingUnsupported = true;
|
|
|
|
|
pWaTable->waMsaa8xTileYDepthPitchAlignment = true;
|
|
|
|
|
pWaTable->waFbcLinearSurfaceStride = true;
|
|
|
|
|
pWaTable->wa4kAlignUVOffsetNV12LinearSurface = true;
|
|
|
|
|
pWaTable->waEnablePreemptionGranularityControlByUMD = true;
|
|
|
|
|
pWaTable->waSendMIFLUSHBeforeVFE = true;
|
|
|
|
|
pWaTable->waForcePcBbFullCfgRestore = true;
|
|
|
|
|
pWaTable->waReportPerfCountUseGlobalContextID = true;
|
|
|
|
|
pWaTable->waSamplerCacheFlushBetweenRedescribedSurfaceReads = true;
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-21 00:45:38 +01:00
|
|
|
const HardwareInfo GLK_1x3x6::hwInfo = {
|
|
|
|
|
&GLK::platform,
|
2019-03-28 15:34:26 +01:00
|
|
|
&GLK::featureTable,
|
|
|
|
|
&GLK::workaroundTable,
|
2017-12-21 00:45:38 +01:00
|
|
|
&GLK_1x3x6::gtSystemInfo,
|
|
|
|
|
GLK::capabilityTable,
|
|
|
|
|
};
|
2019-03-28 15:34:26 +01:00
|
|
|
|
2017-12-21 00:45:38 +01:00
|
|
|
GT_SYSTEM_INFO GLK_1x3x6::gtSystemInfo = {0};
|
2019-03-28 15:34:26 +01:00
|
|
|
void GLK_1x3x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2019-05-06 12:33:44 +02:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->pSysInfo;
|
2017-12-21 00:45:38 +01:00
|
|
|
gtSysInfo->EUCount = 18;
|
|
|
|
|
gtSysInfo->ThreadCount = 18 * GLK::threadsPerEu;
|
|
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
|
gtSysInfo->SubSliceCount = 3;
|
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 384;
|
|
|
|
|
gtSysInfo->L3BankCount = 2;
|
|
|
|
|
gtSysInfo->MaxFillRate = 8;
|
|
|
|
|
gtSysInfo->TotalVsThreads = 112;
|
|
|
|
|
gtSysInfo->TotalHsThreads = 112;
|
|
|
|
|
gtSysInfo->TotalDsThreads = 112;
|
|
|
|
|
gtSysInfo->TotalGsThreads = 112;
|
|
|
|
|
gtSysInfo->TotalPsThreadsWindowerRange = 64;
|
|
|
|
|
gtSysInfo->CsrSizeInMb = 8;
|
|
|
|
|
gtSysInfo->MaxEuPerSubSlice = GLK::maxEuPerSubslice;
|
|
|
|
|
gtSysInfo->MaxSlicesSupported = GLK::maxSlicesSupported;
|
|
|
|
|
gtSysInfo->MaxSubSlicesSupported = GLK::maxSubslicesSupported;
|
|
|
|
|
gtSysInfo->IsL3HashModeEnabled = false;
|
|
|
|
|
gtSysInfo->IsDynamicallyPopulated = false;
|
2019-03-28 15:34:26 +01:00
|
|
|
if (setupFeatureTableAndWorkaroundTable) {
|
|
|
|
|
setupFeatureAndWorkaroundTable(hwInfo);
|
|
|
|
|
}
|
2017-12-21 00:45:38 +01:00
|
|
|
};
|
|
|
|
|
|
2018-03-23 10:35:30 +01:00
|
|
|
const HardwareInfo GLK_1x2x6::hwInfo = {
|
|
|
|
|
&GLK::platform,
|
2019-03-28 15:34:26 +01:00
|
|
|
&GLK::featureTable,
|
|
|
|
|
&GLK::workaroundTable,
|
2018-03-23 10:35:30 +01:00
|
|
|
&GLK_1x2x6::gtSystemInfo,
|
|
|
|
|
GLK::capabilityTable,
|
|
|
|
|
};
|
|
|
|
|
GT_SYSTEM_INFO GLK_1x2x6::gtSystemInfo = {0};
|
2019-03-28 15:34:26 +01:00
|
|
|
void GLK_1x2x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2019-05-06 12:33:44 +02:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->pSysInfo;
|
2018-03-23 10:35:30 +01:00
|
|
|
gtSysInfo->EUCount = 12;
|
|
|
|
|
gtSysInfo->ThreadCount = 12 * GLK::threadsPerEu;
|
|
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
|
gtSysInfo->SubSliceCount = 2;
|
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 384;
|
|
|
|
|
gtSysInfo->L3BankCount = 2;
|
|
|
|
|
gtSysInfo->MaxFillRate = 8;
|
|
|
|
|
gtSysInfo->TotalVsThreads = 112;
|
|
|
|
|
gtSysInfo->TotalHsThreads = 112;
|
|
|
|
|
gtSysInfo->TotalDsThreads = 112;
|
|
|
|
|
gtSysInfo->TotalGsThreads = 112;
|
|
|
|
|
gtSysInfo->TotalPsThreadsWindowerRange = 64;
|
|
|
|
|
gtSysInfo->CsrSizeInMb = 8;
|
|
|
|
|
gtSysInfo->MaxEuPerSubSlice = GLK::maxEuPerSubslice;
|
|
|
|
|
gtSysInfo->MaxSlicesSupported = GLK::maxSlicesSupported;
|
|
|
|
|
gtSysInfo->MaxSubSlicesSupported = GLK::maxSubslicesSupported;
|
|
|
|
|
gtSysInfo->IsL3HashModeEnabled = false;
|
|
|
|
|
gtSysInfo->IsDynamicallyPopulated = false;
|
2019-03-28 15:34:26 +01:00
|
|
|
if (setupFeatureTableAndWorkaroundTable) {
|
|
|
|
|
setupFeatureAndWorkaroundTable(hwInfo);
|
|
|
|
|
}
|
2018-03-23 10:35:30 +01:00
|
|
|
};
|
|
|
|
|
|
2017-12-21 00:45:38 +01:00
|
|
|
const HardwareInfo GLK::hwInfo = GLK_1x3x6::hwInfo;
|
2018-10-04 12:44:49 +02:00
|
|
|
|
2019-03-28 15:34:26 +01:00
|
|
|
void setupGLKHardwareInfoImpl(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const std::string &hwInfoConfig) {
|
2018-10-04 12:44:49 +02:00
|
|
|
if (hwInfoConfig == "1x2x6") {
|
2019-03-28 15:34:26 +01:00
|
|
|
GLK_1x2x6::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2018-10-04 12:44:49 +02:00
|
|
|
} else if (hwInfoConfig == "1x3x6") {
|
2019-03-28 15:34:26 +01:00
|
|
|
GLK_1x3x6::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2018-10-04 12:44:49 +02:00
|
|
|
} else if (hwInfoConfig == "default") {
|
|
|
|
|
// Default config
|
2019-03-28 15:34:26 +01:00
|
|
|
GLK_1x3x6::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2018-10-04 12:44:49 +02:00
|
|
|
} else {
|
|
|
|
|
UNRECOVERABLE_IF(true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-28 15:34:26 +01:00
|
|
|
void (*GLK::setupHardwareInfo)(HardwareInfo *, bool, const std::string &) = setupGLKHardwareInfoImpl;
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|