2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2023-01-03 11:46:57 +00:00
|
|
|
* Copyright (C) 2018-2023 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
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2021-03-19 13:43:50 +01:00
|
|
|
#include "shared/source/aub_mem_dump/definitions/aub_services.h"
|
2022-11-25 15:04:24 +00:00
|
|
|
#include "shared/source/command_stream/preemption_mode.h"
|
2022-06-29 19:17:47 +00:00
|
|
|
#include "shared/source/gen9/hw_cmds_kbl.h"
|
2020-04-02 11:28:38 +02:00
|
|
|
#include "shared/source/helpers/constants.h"
|
2020-02-24 10:22:30 +01:00
|
|
|
|
2022-11-23 09:14:27 +00:00
|
|
|
#include "aubstream/engine_node.h"
|
2023-02-23 12:54:58 +00:00
|
|
|
#include "platforms.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_KABYLAKE>::abbreviation = "kbl";
|
|
|
|
|
|
|
|
|
|
const PLATFORM KBL::platform = {
|
|
|
|
|
IGFX_KABYLAKE,
|
|
|
|
|
PCH_UNKNOWN,
|
|
|
|
|
IGFX_GEN9_CORE,
|
|
|
|
|
IGFX_GEN9_CORE,
|
|
|
|
|
PLATFORM_NONE, // default init
|
|
|
|
|
0, // usDeviceID
|
2020-10-02 09:37:14 +02:00
|
|
|
9, // usRevId. 0 sets the stepping to A0
|
2017-12-21 00:45:38 +01:00
|
|
|
0, // usDeviceID_PCH
|
|
|
|
|
0, // usRevId_PCH
|
|
|
|
|
GTTYPE_UNDEFINED};
|
|
|
|
|
|
2018-12-06 15:33:02 +01:00
|
|
|
const RuntimeCapabilityTable KBL::capabilityTable{
|
2020-01-15 17:02:47 +01:00
|
|
|
EngineDirectSubmissionInitVec{
|
|
|
|
|
{aub_stream::ENGINE_RCS, {true, true}}}, // directSubmissionEngines
|
2021-12-17 18:42:13 +00:00
|
|
|
{0, 0, 0, 0, false, false, false, false}, // kmdNotifyProperties
|
2018-12-06 15:33:02 +01:00
|
|
|
MemoryConstants::max48BitAddress, // gpuAddressSpace
|
2021-11-17 11:26:26 +00:00
|
|
|
0, // sharedSystemMemCapabilities
|
2018-12-06 15:33:02 +01:00
|
|
|
83.333, // defaultProfilingTimerResolution
|
|
|
|
|
MemoryConstants::pageSize, // requiredPreemptionSurfaceSize
|
2021-12-17 18:42:13 +00:00
|
|
|
"", // deviceName
|
2018-12-06 15:33:02 +01:00
|
|
|
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
|
2020-10-07 13:37:34 +02:00
|
|
|
30, // clVersionSupport
|
2018-12-06 15:33:02 +01:00
|
|
|
CmdServicesMemTraceVersion::DeviceValues::Kbl, // aubDeviceId
|
|
|
|
|
0, // extraQuantityThreadsPerEU
|
|
|
|
|
64, // slmSize
|
2019-12-17 08:55:09 +01:00
|
|
|
sizeof(KBL::GRF), // grfSize
|
2020-09-29 23:00:00 -07:00
|
|
|
36u, // timestampValidBits
|
|
|
|
|
32u, // kernelTimestampValidBits
|
2019-04-16 09:06:37 +02:00
|
|
|
false, // blitterOperationsSupported
|
2019-08-20 15:17:10 +02:00
|
|
|
true, // ftrSupportsInteger64BitAtomics
|
2018-12-06 15:33:02 +01:00
|
|
|
true, // ftrSupportsFP64
|
|
|
|
|
true, // ftrSupports64BitMath
|
|
|
|
|
true, // ftrSvm
|
|
|
|
|
true, // ftrSupportsCoherency
|
|
|
|
|
true, // ftrSupportsVmeAvcTextureSampler
|
|
|
|
|
false, // ftrSupportsVmeAvcPreemption
|
|
|
|
|
false, // ftrRenderCompressedBuffers
|
|
|
|
|
false, // ftrRenderCompressedImages
|
|
|
|
|
true, // ftr64KBpages
|
|
|
|
|
true, // instrumentationEnabled
|
|
|
|
|
true, // sourceLevelDebuggerSupported
|
|
|
|
|
true, // supportsVme
|
2019-07-01 11:29:15 +02:00
|
|
|
false, // supportCacheFlushAfterWalker
|
2019-07-15 15:08:42 +02:00
|
|
|
true, // supportsImages
|
2022-01-03 12:12:10 +00:00
|
|
|
false, // supportsDeviceEnqueue
|
2020-04-29 14:51:40 +02:00
|
|
|
true, // supportsPipes
|
2020-04-30 15:47:43 +02:00
|
|
|
true, // supportsOcl21Features
|
2020-06-05 01:32:00 -07:00
|
|
|
false, // supportsOnDemandPageFaults
|
2020-06-18 15:07:58 +02:00
|
|
|
true, // supportsIndependentForwardProgress
|
2020-04-11 16:07:22 -07:00
|
|
|
true, // hostPtrTrackingEnabled
|
2020-08-10 22:33:58 -07:00
|
|
|
true, // levelZeroSupported
|
2021-05-13 14:58:26 +00:00
|
|
|
true, // isIntegratedDevice
|
2021-06-18 15:23:10 +00:00
|
|
|
true, // supportsMediaBlock
|
2022-02-01 01:46:54 +00:00
|
|
|
false, // p2pAccessSupported
|
|
|
|
|
false, // p2pAtomicAccessSupported
|
2022-02-18 17:01:54 +00:00
|
|
|
false, // fusedEuEnabled
|
2023-02-17 19:00:29 +00:00
|
|
|
false, // l0DebuggerSupported;
|
|
|
|
|
false // supportsFloatAtomics
|
2018-12-06 15:33:02 +01:00
|
|
|
};
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2019-03-28 15:34:26 +01:00
|
|
|
WorkaroundTable KBL::workaroundTable = {};
|
|
|
|
|
FeatureTable KBL::featureTable = {};
|
|
|
|
|
|
|
|
|
|
void KBL::setupFeatureAndWorkaroundTable(HardwareInfo *hwInfo) {
|
2019-05-08 16:00:24 +02:00
|
|
|
PLATFORM *platform = &hwInfo->platform;
|
|
|
|
|
FeatureTable *featureTable = &hwInfo->featureTable;
|
|
|
|
|
WorkaroundTable *workaroundTable = &hwInfo->workaroundTable;
|
2019-03-28 15:34:26 +01:00
|
|
|
|
2021-11-25 09:31:14 +00:00
|
|
|
featureTable->flags.ftrGpGpuMidBatchPreempt = true;
|
|
|
|
|
featureTable->flags.ftrGpGpuThreadGroupLevelPreempt = true;
|
|
|
|
|
featureTable->flags.ftrL3IACoherency = true;
|
|
|
|
|
featureTable->flags.ftrGpGpuMidThreadLevelPreempt = true;
|
|
|
|
|
featureTable->flags.ftrPPGTT = true;
|
|
|
|
|
featureTable->flags.ftrSVM = true;
|
|
|
|
|
featureTable->flags.ftrIA32eGfxPTEs = true;
|
|
|
|
|
featureTable->flags.ftrDisplayYTiling = true;
|
|
|
|
|
featureTable->flags.ftrTranslationTable = true;
|
|
|
|
|
featureTable->flags.ftrUserModeTranslationTable = true;
|
|
|
|
|
featureTable->flags.ftrFbc = true;
|
|
|
|
|
featureTable->flags.ftrTileY = true;
|
2019-03-28 15:34:26 +01:00
|
|
|
|
2021-11-25 09:31:14 +00:00
|
|
|
workaroundTable->flags.waSendMIFLUSHBeforeVFE = true;
|
|
|
|
|
workaroundTable->flags.waMsaa8xTileYDepthPitchAlignment = true;
|
|
|
|
|
workaroundTable->flags.waLosslessCompressionSurfaceStride = true;
|
|
|
|
|
workaroundTable->flags.waFbcLinearSurfaceStride = true;
|
|
|
|
|
workaroundTable->flags.wa4kAlignUVOffsetNV12LinearSurface = true;
|
|
|
|
|
workaroundTable->flags.waSamplerCacheFlushBetweenRedescribedSurfaceReads = true;
|
2019-03-28 15:34:26 +01:00
|
|
|
|
2019-05-08 16:00:24 +02:00
|
|
|
if (platform->usRevId <= 0x6) {
|
2021-11-25 09:31:14 +00:00
|
|
|
workaroundTable->flags.waDisableLSQCROPERFforOCL = true;
|
|
|
|
|
workaroundTable->flags.waEncryptedEdramOnlyPartials = true;
|
2019-03-28 15:34:26 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-10 12:52:14 +00:00
|
|
|
void KBL::setupHardwareInfoBase(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2019-05-08 16:00:24 +02:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2019-10-18 10:15:09 +02:00
|
|
|
gtSysInfo->ThreadCount = gtSysInfo->EUCount * KBL::threadsPerEu;
|
2017-12-21 00:45:38 +01:00
|
|
|
gtSysInfo->TotalVsThreads = 336;
|
|
|
|
|
gtSysInfo->TotalHsThreads = 336;
|
|
|
|
|
gtSysInfo->TotalDsThreads = 336;
|
|
|
|
|
gtSysInfo->TotalGsThreads = 336;
|
|
|
|
|
gtSysInfo->TotalPsThreadsWindowerRange = 64;
|
|
|
|
|
gtSysInfo->CsrSizeInMb = 8;
|
|
|
|
|
gtSysInfo->MaxEuPerSubSlice = KBL::maxEuPerSubslice;
|
|
|
|
|
gtSysInfo->MaxSlicesSupported = KBL::maxSlicesSupported;
|
|
|
|
|
gtSysInfo->MaxSubSlicesSupported = KBL::maxSubslicesSupported;
|
|
|
|
|
gtSysInfo->IsL3HashModeEnabled = false;
|
|
|
|
|
gtSysInfo->IsDynamicallyPopulated = false;
|
2022-05-10 12:52:14 +00:00
|
|
|
|
2019-03-28 15:34:26 +01:00
|
|
|
if (setupFeatureTableAndWorkaroundTable) {
|
|
|
|
|
setupFeatureAndWorkaroundTable(hwInfo);
|
|
|
|
|
}
|
2022-05-10 12:52:14 +00:00
|
|
|
}
|
|
|
|
|
|
2022-06-02 15:10:04 +00:00
|
|
|
const HardwareInfo KblHw1x2x6::hwInfo = {
|
2022-05-10 12:52:14 +00:00
|
|
|
&KBL::platform,
|
|
|
|
|
&KBL::featureTable,
|
|
|
|
|
&KBL::workaroundTable,
|
2022-06-02 15:10:04 +00:00
|
|
|
&KblHw1x2x6::gtSystemInfo,
|
2022-05-10 12:52:14 +00:00
|
|
|
KBL::capabilityTable,
|
2023-02-23 12:54:58 +00:00
|
|
|
AOT::KBL};
|
2022-06-02 15:10:04 +00:00
|
|
|
GT_SYSTEM_INFO KblHw1x2x6::gtSystemInfo = {0};
|
|
|
|
|
void KblHw1x2x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2022-05-10 12:52:14 +00:00
|
|
|
KBL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable);
|
|
|
|
|
|
|
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
|
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 384;
|
|
|
|
|
gtSysInfo->L3BankCount = 2;
|
|
|
|
|
gtSysInfo->MaxFillRate = 8;
|
2017-12-21 00:45:38 +01:00
|
|
|
};
|
|
|
|
|
|
2022-06-02 15:10:04 +00:00
|
|
|
const HardwareInfo KblHw1x3x6::hwInfo = {
|
2017-12-21 00:45:38 +01:00
|
|
|
&KBL::platform,
|
2019-03-28 15:34:26 +01:00
|
|
|
&KBL::featureTable,
|
|
|
|
|
&KBL::workaroundTable,
|
2022-06-02 15:10:04 +00:00
|
|
|
&KblHw1x3x6::gtSystemInfo,
|
2017-12-21 00:45:38 +01:00
|
|
|
KBL::capabilityTable,
|
2023-02-23 12:54:58 +00:00
|
|
|
AOT::KBL};
|
2019-03-28 15:34:26 +01:00
|
|
|
|
2022-06-02 15:10:04 +00:00
|
|
|
GT_SYSTEM_INFO KblHw1x3x6::gtSystemInfo = {0};
|
|
|
|
|
void KblHw1x3x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2022-05-10 12:52:14 +00:00
|
|
|
KBL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable);
|
|
|
|
|
|
2019-05-08 16:00:24 +02:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2017-12-21 00:45:38 +01:00
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 768;
|
|
|
|
|
gtSysInfo->L3BankCount = 4;
|
|
|
|
|
gtSysInfo->MaxFillRate = 8;
|
|
|
|
|
};
|
|
|
|
|
|
2022-06-02 15:10:04 +00:00
|
|
|
const HardwareInfo KblHw1x3x8::hwInfo = {
|
2017-12-21 00:45:38 +01:00
|
|
|
&KBL::platform,
|
2019-03-28 15:34:26 +01:00
|
|
|
&KBL::featureTable,
|
|
|
|
|
&KBL::workaroundTable,
|
2022-06-02 15:10:04 +00:00
|
|
|
&KblHw1x3x8::gtSystemInfo,
|
2017-12-21 00:45:38 +01:00
|
|
|
KBL::capabilityTable,
|
2023-02-23 12:54:58 +00:00
|
|
|
AOT::KBL};
|
2022-06-02 15:10:04 +00:00
|
|
|
GT_SYSTEM_INFO KblHw1x3x8::gtSystemInfo = {0};
|
|
|
|
|
void KblHw1x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2022-05-10 12:52:14 +00:00
|
|
|
KBL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable);
|
|
|
|
|
|
2019-05-08 16:00:24 +02:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2017-12-21 00:45:38 +01:00
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 768;
|
|
|
|
|
gtSysInfo->L3BankCount = 4;
|
|
|
|
|
gtSysInfo->MaxFillRate = 8;
|
|
|
|
|
};
|
|
|
|
|
|
2022-06-02 15:10:04 +00:00
|
|
|
const HardwareInfo KblHw2x3x8::hwInfo = {
|
2017-12-21 00:45:38 +01:00
|
|
|
&KBL::platform,
|
2019-03-28 15:34:26 +01:00
|
|
|
&KBL::featureTable,
|
|
|
|
|
&KBL::workaroundTable,
|
2022-06-02 15:10:04 +00:00
|
|
|
&KblHw2x3x8::gtSystemInfo,
|
2017-12-21 00:45:38 +01:00
|
|
|
KBL::capabilityTable,
|
2023-02-23 12:54:58 +00:00
|
|
|
AOT::KBL};
|
2022-06-02 15:10:04 +00:00
|
|
|
GT_SYSTEM_INFO KblHw2x3x8::gtSystemInfo = {0};
|
|
|
|
|
void KblHw2x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2022-05-10 12:52:14 +00:00
|
|
|
KBL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable);
|
|
|
|
|
|
2019-05-08 16:00:24 +02:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2017-12-21 00:45:38 +01:00
|
|
|
gtSysInfo->SliceCount = 2;
|
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 1536;
|
|
|
|
|
gtSysInfo->L3BankCount = 8;
|
|
|
|
|
gtSysInfo->MaxFillRate = 16;
|
|
|
|
|
};
|
|
|
|
|
|
2022-06-02 15:10:04 +00:00
|
|
|
const HardwareInfo KblHw3x3x8::hwInfo = {
|
2017-12-21 00:45:38 +01:00
|
|
|
&KBL::platform,
|
2019-03-28 15:34:26 +01:00
|
|
|
&KBL::featureTable,
|
|
|
|
|
&KBL::workaroundTable,
|
2022-06-02 15:10:04 +00:00
|
|
|
&KblHw3x3x8::gtSystemInfo,
|
2017-12-21 00:45:38 +01:00
|
|
|
KBL::capabilityTable,
|
2023-02-23 12:54:58 +00:00
|
|
|
AOT::KBL};
|
2022-06-02 15:10:04 +00:00
|
|
|
GT_SYSTEM_INFO KblHw3x3x8::gtSystemInfo = {0};
|
|
|
|
|
void KblHw3x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2022-05-10 12:52:14 +00:00
|
|
|
KBL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable);
|
|
|
|
|
|
2019-05-08 16:00:24 +02:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2017-12-21 00:45:38 +01:00
|
|
|
gtSysInfo->SliceCount = 3;
|
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 2304;
|
|
|
|
|
gtSysInfo->L3BankCount = 12;
|
|
|
|
|
gtSysInfo->MaxFillRate = 23;
|
|
|
|
|
};
|
|
|
|
|
|
2022-06-02 15:10:04 +00:00
|
|
|
const HardwareInfo KBL::hwInfo = KblHw1x3x6::hwInfo;
|
2018-10-04 12:44:49 +02:00
|
|
|
|
2020-01-24 17:19:06 +01:00
|
|
|
void setupKBLHardwareInfoImpl(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, uint64_t hwInfoConfig) {
|
|
|
|
|
if (hwInfoConfig == 0x100030008) {
|
2022-06-02 15:10:04 +00:00
|
|
|
KblHw1x3x8::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2020-01-24 17:19:06 +01:00
|
|
|
} else if (hwInfoConfig == 0x200030008) {
|
2022-06-02 15:10:04 +00:00
|
|
|
KblHw2x3x8::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2020-01-24 17:19:06 +01:00
|
|
|
} else if (hwInfoConfig == 0x300030008) {
|
2022-06-02 15:10:04 +00:00
|
|
|
KblHw3x3x8::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2020-01-24 17:19:06 +01:00
|
|
|
} else if (hwInfoConfig == 0x100020006) {
|
2022-06-02 15:10:04 +00:00
|
|
|
KblHw1x2x6::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2020-01-24 17:19:06 +01:00
|
|
|
} else if (hwInfoConfig == 0x100030006) {
|
2022-06-02 15:10:04 +00:00
|
|
|
KblHw1x3x6::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2020-01-24 17:19:06 +01:00
|
|
|
} else if (hwInfoConfig == 0x0) {
|
2018-10-04 12:44:49 +02:00
|
|
|
// Default config
|
2022-06-02 15:10:04 +00:00
|
|
|
KblHw1x3x6::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2018-10-04 12:44:49 +02:00
|
|
|
} else {
|
|
|
|
|
UNRECOVERABLE_IF(true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-24 17:19:06 +01:00
|
|
|
void (*KBL::setupHardwareInfo)(HardwareInfo *, bool, uint64_t) = setupKBLHardwareInfoImpl;
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|