2017-12-27 22:12:27 +08:00
|
|
|
/*
|
2022-01-03 20:12:10 +08:00
|
|
|
* Copyright (C) 2018-2022 Intel Corporation
|
2017-12-27 22:12:27 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-27 22:12:27 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2021-03-19 20:43:50 +08:00
|
|
|
#include "shared/source/aub_mem_dump/definitions/aub_services.h"
|
2022-06-30 03:17:47 +08:00
|
|
|
#include "shared/source/gen9/hw_cmds_cfl.h"
|
2020-04-02 17:28:38 +08:00
|
|
|
#include "shared/source/helpers/constants.h"
|
2020-02-24 17:22:30 +08:00
|
|
|
|
2018-10-28 05:46:29 +08:00
|
|
|
#include "engine_node.h"
|
2017-12-27 22:12:27 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-27 22:12:27 +08:00
|
|
|
|
|
|
|
const char *HwMapper<IGFX_COFFEELAKE>::abbreviation = "cfl";
|
|
|
|
|
|
|
|
const PLATFORM CFL::platform = {
|
|
|
|
IGFX_COFFEELAKE,
|
|
|
|
PCH_UNKNOWN,
|
|
|
|
IGFX_GEN9_CORE,
|
|
|
|
IGFX_GEN9_CORE,
|
|
|
|
PLATFORM_NONE, // default init
|
|
|
|
0, // usDeviceID
|
2020-10-02 15:37:14 +08:00
|
|
|
9, // usRevId. 0 sets the stepping to A0
|
2017-12-27 22:12:27 +08:00
|
|
|
0, // usDeviceID_PCH
|
|
|
|
0, // usRevId_PCH
|
|
|
|
GTTYPE_UNDEFINED};
|
|
|
|
|
2018-12-06 22:33:02 +08:00
|
|
|
const RuntimeCapabilityTable CFL::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
|
|
|
{0, 0, 0, 0, false, 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
|
|
|
83.333, // defaultProfilingTimerResolution
|
|
|
|
MemoryConstants::pageSize, // requiredPreemptionSurfaceSize
|
2021-12-18 02:42:13 +08:00
|
|
|
"core", // platformType
|
|
|
|
"", // 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::Cfl, // aubDeviceId
|
|
|
|
0, // extraQuantityThreadsPerEU
|
|
|
|
64, // slmSize
|
2019-12-17 15:55:09 +08:00
|
|
|
sizeof(CFL::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
|
|
|
true, // ftrSupportsInteger64BitAtomics
|
2018-12-06 22:33:02 +08: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 17:29:15 +08:00
|
|
|
false, // supportCacheFlushAfterWalker
|
2019-07-15 21:08:42 +08:00
|
|
|
true, // supportsImages
|
2022-01-03 20:12:10 +08:00
|
|
|
false, // supportsDeviceEnqueue
|
2020-04-29 20:51:40 +08:00
|
|
|
true, // supportsPipes
|
2020-04-30 21:47:43 +08:00
|
|
|
true, // supportsOcl21Features
|
2020-06-05 16:32:00 +08:00
|
|
|
false, // supportsOnDemandPageFaults
|
2020-06-18 21:07:58 +08:00
|
|
|
true, // supportsIndependentForwardProgress
|
2020-04-12 07:07:22 +08:00
|
|
|
true, // hostPtrTrackingEnabled
|
2020-08-11 13:33:58 +08:00
|
|
|
true, // 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-27 22:12:27 +08:00
|
|
|
|
2019-03-28 22:34:26 +08:00
|
|
|
WorkaroundTable CFL::workaroundTable = {};
|
|
|
|
FeatureTable CFL::featureTable = {};
|
|
|
|
|
|
|
|
void CFL::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.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 22:34:26 +08:00
|
|
|
|
2021-11-25 17:31:14 +08: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 22:34:26 +08:00
|
|
|
}
|
|
|
|
|
2022-05-10 20:52:14 +08:00
|
|
|
void CFL::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 * CFL::threadsPerEu;
|
2017-12-27 22:12:27 +08:00
|
|
|
gtSysInfo->TotalVsThreads = 336;
|
|
|
|
gtSysInfo->TotalHsThreads = 336;
|
|
|
|
gtSysInfo->TotalDsThreads = 336;
|
|
|
|
gtSysInfo->TotalGsThreads = 336;
|
|
|
|
gtSysInfo->TotalPsThreadsWindowerRange = 64;
|
|
|
|
gtSysInfo->CsrSizeInMb = 8;
|
|
|
|
gtSysInfo->MaxEuPerSubSlice = CFL::maxEuPerSubslice;
|
|
|
|
gtSysInfo->MaxSlicesSupported = CFL::maxSlicesSupported;
|
|
|
|
gtSysInfo->MaxSubSlicesSupported = CFL::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 CflHw1x2x6::hwInfo = {
|
2022-05-10 20:52:14 +08:00
|
|
|
&CFL::platform,
|
|
|
|
&CFL::featureTable,
|
|
|
|
&CFL::workaroundTable,
|
2022-06-02 23:10:04 +08:00
|
|
|
&CflHw1x2x6::gtSystemInfo,
|
2022-05-10 20:52:14 +08:00
|
|
|
CFL::capabilityTable,
|
|
|
|
};
|
2022-06-02 23:10:04 +08:00
|
|
|
GT_SYSTEM_INFO CflHw1x2x6::gtSystemInfo = {0};
|
|
|
|
void CflHw1x2x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2022-05-10 20:52:14 +08:00
|
|
|
CFL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable);
|
|
|
|
|
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 384;
|
|
|
|
gtSysInfo->L3BankCount = 2;
|
|
|
|
gtSysInfo->MaxFillRate = 8;
|
2017-12-27 22:12:27 +08:00
|
|
|
};
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo CflHw1x3x6::hwInfo = {
|
2017-12-27 22:12:27 +08:00
|
|
|
&CFL::platform,
|
2019-03-28 22:34:26 +08:00
|
|
|
&CFL::featureTable,
|
|
|
|
&CFL::workaroundTable,
|
2022-06-02 23:10:04 +08:00
|
|
|
&CflHw1x3x6::gtSystemInfo,
|
2017-12-27 22:12:27 +08:00
|
|
|
CFL::capabilityTable,
|
|
|
|
};
|
2022-05-10 20:52:14 +08:00
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
GT_SYSTEM_INFO CflHw1x3x6::gtSystemInfo = {0};
|
|
|
|
void CflHw1x3x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2022-05-10 20:52:14 +08:00
|
|
|
CFL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable);
|
|
|
|
|
2019-05-08 22:00:24 +08:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2017-12-27 22:12:27 +08:00
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 768;
|
|
|
|
gtSysInfo->L3BankCount = 4;
|
|
|
|
gtSysInfo->MaxFillRate = 8;
|
|
|
|
};
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo CflHw1x3x8::hwInfo = {
|
2017-12-27 22:12:27 +08:00
|
|
|
&CFL::platform,
|
2019-03-28 22:34:26 +08:00
|
|
|
&CFL::featureTable,
|
|
|
|
&CFL::workaroundTable,
|
2022-06-02 23:10:04 +08:00
|
|
|
&CflHw1x3x8::gtSystemInfo,
|
2017-12-27 22:12:27 +08:00
|
|
|
CFL::capabilityTable,
|
|
|
|
};
|
2022-05-10 20:52:14 +08:00
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
GT_SYSTEM_INFO CflHw1x3x8::gtSystemInfo = {0};
|
|
|
|
void CflHw1x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2022-05-10 20:52:14 +08:00
|
|
|
CFL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable);
|
|
|
|
|
2019-05-08 22:00:24 +08:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2017-12-27 22:12:27 +08:00
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 768;
|
|
|
|
gtSysInfo->L3BankCount = 4;
|
|
|
|
gtSysInfo->MaxFillRate = 8;
|
|
|
|
};
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo CflHw2x3x8::hwInfo = {
|
2017-12-27 22:12:27 +08:00
|
|
|
&CFL::platform,
|
2019-03-28 22:34:26 +08:00
|
|
|
&CFL::featureTable,
|
|
|
|
&CFL::workaroundTable,
|
2022-06-02 23:10:04 +08:00
|
|
|
&CflHw2x3x8::gtSystemInfo,
|
2017-12-27 22:12:27 +08:00
|
|
|
CFL::capabilityTable,
|
|
|
|
};
|
2022-06-02 23:10:04 +08:00
|
|
|
GT_SYSTEM_INFO CflHw2x3x8::gtSystemInfo = {0};
|
|
|
|
void CflHw2x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2022-05-10 20:52:14 +08:00
|
|
|
CFL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable);
|
|
|
|
|
2019-05-08 22:00:24 +08:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2017-12-27 22:12:27 +08:00
|
|
|
gtSysInfo->SliceCount = 2;
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 1536;
|
|
|
|
gtSysInfo->L3BankCount = 8;
|
|
|
|
gtSysInfo->MaxFillRate = 16;
|
|
|
|
};
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo CflHw3x3x8::hwInfo = {
|
2017-12-27 22:12:27 +08:00
|
|
|
&CFL::platform,
|
2019-03-28 22:34:26 +08:00
|
|
|
&CFL::featureTable,
|
|
|
|
&CFL::workaroundTable,
|
2022-06-02 23:10:04 +08:00
|
|
|
&CflHw3x3x8::gtSystemInfo,
|
2017-12-27 22:12:27 +08:00
|
|
|
CFL::capabilityTable,
|
|
|
|
};
|
2022-06-02 23:10:04 +08:00
|
|
|
GT_SYSTEM_INFO CflHw3x3x8::gtSystemInfo = {0};
|
|
|
|
void CflHw3x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2022-05-10 20:52:14 +08:00
|
|
|
CFL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable);
|
|
|
|
|
2019-05-08 22:00:24 +08:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2017-12-27 22:12:27 +08:00
|
|
|
gtSysInfo->SliceCount = 3;
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 2304;
|
|
|
|
gtSysInfo->L3BankCount = 12;
|
|
|
|
gtSysInfo->MaxFillRate = 24;
|
|
|
|
};
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo CFL::hwInfo = CflHw1x3x6::hwInfo;
|
2020-01-25 00:19:06 +08:00
|
|
|
const uint64_t CFL::defaultHardwareInfoConfig = 0x100030006;
|
2018-10-04 18:44:49 +08:00
|
|
|
|
2020-01-25 00:19:06 +08:00
|
|
|
void setupCFLHardwareInfoImpl(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, uint64_t hwInfoConfig) {
|
|
|
|
if (hwInfoConfig == 0x100030008) {
|
2022-06-02 23:10:04 +08:00
|
|
|
CflHw1x3x8::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2020-01-25 00:19:06 +08:00
|
|
|
} else if (hwInfoConfig == 0x200030008) {
|
2022-06-02 23:10:04 +08:00
|
|
|
CflHw2x3x8::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2020-01-25 00:19:06 +08:00
|
|
|
} else if (hwInfoConfig == 0x300030008) {
|
2022-06-02 23:10:04 +08:00
|
|
|
CflHw3x3x8::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2020-01-25 00:19:06 +08:00
|
|
|
} else if (hwInfoConfig == 0x100020006) {
|
2022-06-02 23:10:04 +08:00
|
|
|
CflHw1x2x6::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2020-01-25 00:19:06 +08:00
|
|
|
} else if (hwInfoConfig == 0x100030006) {
|
2022-06-02 23:10:04 +08:00
|
|
|
CflHw1x3x6::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
|
|
|
CflHw1x3x6::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2018-10-04 18:44:49 +08:00
|
|
|
} else {
|
|
|
|
UNRECOVERABLE_IF(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-25 00:19:06 +08:00
|
|
|
void (*CFL::setupHardwareInfo)(HardwareInfo *, bool, uint64_t) = setupCFLHardwareInfoImpl;
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|