2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2023-01-03 19:46:57 +08:00
|
|
|
* Copyright (C) 2018-2023 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
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2021-03-19 20:43:50 +08:00
|
|
|
#include "shared/source/aub_mem_dump/definitions/aub_services.h"
|
2022-11-25 23:04:24 +08:00
|
|
|
#include "shared/source/command_stream/preemption_mode.h"
|
2022-06-30 03:17:47 +08:00
|
|
|
#include "shared/source/gen9/hw_cmds_glk.h"
|
2020-04-02 17:28:38 +08:00
|
|
|
#include "shared/source/helpers/constants.h"
|
2020-02-24 17:22:30 +08:00
|
|
|
|
2022-11-23 17:14:27 +08:00
|
|
|
#include "aubstream/engine_node.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
const char *HwMapper<IGFX_GEMINILAKE>::abbreviation = "glk";
|
|
|
|
|
|
|
|
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 22:33:02 +08:00
|
|
|
const RuntimeCapabilityTable GLK::capabilityTable{
|
2020-01-16 00:02:47 +08:00
|
|
|
EngineDirectSubmissionInitVec{
|
|
|
|
{aub_stream::ENGINE_RCS, {true, true}}}, // directSubmissionEngines
|
2021-12-18 02:42:13 +08:00
|
|
|
{30000, 0, 0, 0, true, false, false, false}, // kmdNotifyProperties
|
2018-12-06 22:33:02 +08:00
|
|
|
MemoryConstants::max48BitAddress, // gpuAddressSpace
|
2021-11-17 19:26:26 +08:00
|
|
|
0, // sharedSystemMemCapabilities
|
2018-12-06 22:33:02 +08:00
|
|
|
52.083, // defaultProfilingTimerResolution
|
|
|
|
MemoryConstants::pageSize, // requiredPreemptionSurfaceSize
|
2021-12-18 02:42:13 +08:00
|
|
|
"", // deviceName
|
2018-12-06 22:33:02 +08:00
|
|
|
PreemptionMode::MidThread, // defaultPreemptionMode
|
2019-03-27 17:06:29 +08:00
|
|
|
aub_stream::ENGINE_RCS, // defaultEngineType
|
2018-12-06 22:33:02 +08:00
|
|
|
0, // maxRenderFrequency
|
2020-10-07 19:37:34 +08:00
|
|
|
30, // clVersionSupport
|
2018-12-06 22:33:02 +08:00
|
|
|
CmdServicesMemTraceVersion::DeviceValues::Glk, // aubDeviceId
|
|
|
|
0, // extraQuantityThreadsPerEU
|
|
|
|
64, // slmSize
|
2019-12-17 15:55:09 +08:00
|
|
|
sizeof(GLK::GRF), // grfSize
|
2020-09-30 14:00:00 +08:00
|
|
|
36u, // timestampValidBits
|
|
|
|
32u, // kernelTimestampValidBits
|
2019-04-16 15:06:37 +08:00
|
|
|
false, // blitterOperationsSupported
|
2019-08-20 21:17:10 +08:00
|
|
|
false, // ftrSupportsInteger64BitAtomics
|
2018-12-06 22:33:02 +08:00
|
|
|
true, // ftrSupportsFP64
|
|
|
|
true, // ftrSupports64BitMath
|
|
|
|
false, // ftrSvm
|
|
|
|
true, // ftrSupportsCoherency
|
|
|
|
true, // ftrSupportsVmeAvcTextureSampler
|
|
|
|
false, // ftrSupportsVmeAvcPreemption
|
|
|
|
false, // ftrRenderCompressedBuffers
|
|
|
|
false, // ftrRenderCompressedImages
|
|
|
|
false, // ftr64KBpages
|
|
|
|
true, // instrumentationEnabled
|
|
|
|
true, // sourceLevelDebuggerSupported
|
|
|
|
true, // supportsVme
|
2019-07-01 17:29:15 +08:00
|
|
|
false, // supportCacheFlushAfterWalker
|
2019-07-15 21:08:42 +08:00
|
|
|
true, // supportsImages
|
2019-12-04 20:42:41 +08:00
|
|
|
false, // supportsDeviceEnqueue
|
2020-04-29 20:51:40 +08:00
|
|
|
false, // supportsPipes
|
2020-04-30 21:47:43 +08:00
|
|
|
false, // supportsOcl21Features
|
2020-06-05 16:32:00 +08:00
|
|
|
false, // supportsOnDemandPageFaults
|
2020-06-18 21:07:58 +08:00
|
|
|
false, // supportsIndependentForwardProgress
|
2020-04-12 07:07:22 +08:00
|
|
|
true, // hostPtrTrackingEnabled
|
2020-08-11 13:33:58 +08:00
|
|
|
false, // levelZeroSupported
|
2021-05-13 22:58:26 +08:00
|
|
|
true, // isIntegratedDevice
|
2021-06-18 23:23:10 +08:00
|
|
|
true, // supportsMediaBlock
|
2022-02-01 09:46:54 +08:00
|
|
|
false, // p2pAccessSupported
|
|
|
|
false, // p2pAtomicAccessSupported
|
2022-02-19 01:01:54 +08:00
|
|
|
false, // fusedEuEnabled
|
|
|
|
false // l0DebuggerSupported;
|
2018-12-06 22:33:02 +08:00
|
|
|
};
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-03-28 22:34:26 +08:00
|
|
|
WorkaroundTable GLK::workaroundTable = {};
|
|
|
|
FeatureTable GLK::featureTable = {};
|
|
|
|
|
|
|
|
void GLK::setupFeatureAndWorkaroundTable(HardwareInfo *hwInfo) {
|
2019-05-08 22:00:24 +08:00
|
|
|
FeatureTable *featureTable = &hwInfo->featureTable;
|
|
|
|
WorkaroundTable *workaroundTable = &hwInfo->workaroundTable;
|
2019-03-28 22:34:26 +08:00
|
|
|
|
2021-11-25 17:31:14 +08:00
|
|
|
featureTable->flags.ftrGpGpuMidBatchPreempt = true;
|
|
|
|
featureTable->flags.ftrGpGpuThreadGroupLevelPreempt = true;
|
|
|
|
featureTable->flags.ftrL3IACoherency = true;
|
|
|
|
featureTable->flags.ftrGpGpuMidThreadLevelPreempt = true;
|
|
|
|
featureTable->flags.ftrLCIA = true;
|
|
|
|
featureTable->flags.ftrPPGTT = true;
|
|
|
|
featureTable->flags.ftrIA32eGfxPTEs = true;
|
|
|
|
featureTable->flags.ftrTranslationTable = true;
|
|
|
|
featureTable->flags.ftrUserModeTranslationTable = true;
|
|
|
|
featureTable->flags.ftrTileMappedResource = true;
|
|
|
|
featureTable->flags.ftrULT = true;
|
|
|
|
featureTable->flags.ftrAstcHdr2D = true;
|
|
|
|
featureTable->flags.ftrAstcLdr2D = true;
|
|
|
|
featureTable->flags.ftrTileY = true;
|
2019-03-28 22:34:26 +08:00
|
|
|
|
2021-11-25 17:31:14 +08:00
|
|
|
workaroundTable->flags.waLLCCachingUnsupported = true;
|
|
|
|
workaroundTable->flags.waMsaa8xTileYDepthPitchAlignment = true;
|
|
|
|
workaroundTable->flags.waFbcLinearSurfaceStride = true;
|
|
|
|
workaroundTable->flags.wa4kAlignUVOffsetNV12LinearSurface = true;
|
|
|
|
workaroundTable->flags.waSendMIFLUSHBeforeVFE = true;
|
|
|
|
workaroundTable->flags.waSamplerCacheFlushBetweenRedescribedSurfaceReads = true;
|
2019-03-28 22:34:26 +08:00
|
|
|
}
|
|
|
|
|
2022-05-10 20:52:14 +08:00
|
|
|
void GLK::setupHardwareInfoBase(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2019-05-08 22:00:24 +08:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2019-10-18 16:15:09 +08:00
|
|
|
gtSysInfo->ThreadCount = gtSysInfo->EUCount * GLK::threadsPerEu;
|
2017-12-21 07:45:38 +08:00
|
|
|
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;
|
2022-05-10 20:52:14 +08:00
|
|
|
|
2019-03-28 22:34:26 +08:00
|
|
|
if (setupFeatureTableAndWorkaroundTable) {
|
|
|
|
setupFeatureAndWorkaroundTable(hwInfo);
|
|
|
|
}
|
2022-05-10 20:52:14 +08:00
|
|
|
}
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo GlkHw1x3x6::hwInfo = {
|
2022-05-10 20:52:14 +08:00
|
|
|
&GLK::platform,
|
|
|
|
&GLK::featureTable,
|
|
|
|
&GLK::workaroundTable,
|
2022-06-02 23:10:04 +08:00
|
|
|
&GlkHw1x3x6::gtSystemInfo,
|
2022-05-10 20:52:14 +08:00
|
|
|
GLK::capabilityTable,
|
|
|
|
};
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
GT_SYSTEM_INFO GlkHw1x3x6::gtSystemInfo = {0};
|
|
|
|
void GlkHw1x3x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2022-05-10 20:52:14 +08:00
|
|
|
GLK::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable);
|
|
|
|
|
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 384;
|
|
|
|
gtSysInfo->L3BankCount = 2;
|
|
|
|
gtSysInfo->MaxFillRate = 8;
|
2017-12-21 07:45:38 +08:00
|
|
|
};
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo GlkHw1x2x6::hwInfo = {
|
2018-03-23 17:35:30 +08:00
|
|
|
&GLK::platform,
|
2019-03-28 22:34:26 +08:00
|
|
|
&GLK::featureTable,
|
|
|
|
&GLK::workaroundTable,
|
2022-06-02 23:10:04 +08:00
|
|
|
&GlkHw1x2x6::gtSystemInfo,
|
2018-03-23 17:35:30 +08:00
|
|
|
GLK::capabilityTable,
|
|
|
|
};
|
2022-05-10 20:52:14 +08:00
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
GT_SYSTEM_INFO GlkHw1x2x6::gtSystemInfo = {0};
|
|
|
|
void GlkHw1x2x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2022-05-10 20:52:14 +08:00
|
|
|
GLK::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable);
|
|
|
|
|
2019-05-08 22:00:24 +08:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2018-03-23 17:35:30 +08:00
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 384;
|
|
|
|
gtSysInfo->L3BankCount = 2;
|
|
|
|
gtSysInfo->MaxFillRate = 8;
|
|
|
|
};
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo GLK::hwInfo = GlkHw1x3x6::hwInfo;
|
2020-01-25 00:19:06 +08:00
|
|
|
const uint64_t GLK::defaultHardwareInfoConfig = 0x100030006;
|
2018-10-04 18:44:49 +08:00
|
|
|
|
2020-01-25 00:19:06 +08:00
|
|
|
void setupGLKHardwareInfoImpl(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, uint64_t hwInfoConfig) {
|
|
|
|
if (hwInfoConfig == 0x100020006) {
|
2022-06-02 23:10:04 +08:00
|
|
|
GlkHw1x2x6::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2020-01-25 00:19:06 +08:00
|
|
|
} else if (hwInfoConfig == 0x100030006) {
|
2022-06-02 23:10:04 +08:00
|
|
|
GlkHw1x3x6::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2020-01-25 00:19:06 +08:00
|
|
|
} else if (hwInfoConfig == 0x0) {
|
2018-10-04 18:44:49 +08:00
|
|
|
// Default config
|
2022-06-02 23:10:04 +08:00
|
|
|
GlkHw1x3x6::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2018-10-04 18:44:49 +08:00
|
|
|
} else {
|
|
|
|
UNRECOVERABLE_IF(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-25 00:19:06 +08:00
|
|
|
void (*GLK::setupHardwareInfo)(HardwareInfo *, bool, uint64_t) = setupGLKHardwareInfoImpl;
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|