2019-09-19 01:32:33 +08:00
|
|
|
/*
|
2023-01-03 19:46:57 +08:00
|
|
|
* Copyright (C) 2019-2023 Intel Corporation
|
2019-09-19 01:32:33 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2023-02-08 18:14:15 +08:00
|
|
|
#include "shared/source/gen12lp/hw_info_tgllp.h"
|
|
|
|
|
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/gen12lp/hw_cmds_tgllp.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"
|
2019-09-19 01:32:33 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
const char *HwMapper<IGFX_TIGERLAKE_LP>::abbreviation = "tgllp";
|
|
|
|
|
|
|
|
const PLATFORM TGLLP::platform = {
|
|
|
|
IGFX_TIGERLAKE_LP,
|
|
|
|
PCH_UNKNOWN,
|
|
|
|
IGFX_GEN12LP_CORE,
|
|
|
|
IGFX_GEN12LP_CORE,
|
|
|
|
PLATFORM_NONE, // default init
|
|
|
|
0, // usDeviceID
|
|
|
|
0, // usRevId. 0 sets the stepping to A0
|
|
|
|
0, // usDeviceID_PCH
|
|
|
|
0, // usRevId_PCH
|
|
|
|
GTTYPE_UNDEFINED};
|
|
|
|
|
|
|
|
const RuntimeCapabilityTable TGLLP::capabilityTable{
|
2020-01-16 00:02:47 +08:00
|
|
|
EngineDirectSubmissionInitVec{
|
|
|
|
{aub_stream::ENGINE_RCS, {true, true}},
|
|
|
|
{aub_stream::ENGINE_CCS, {true, true}}}, // directSubmissionEngines
|
2021-12-18 02:42:13 +08:00
|
|
|
{0, 0, 0, 0, false, false, false, false}, // kmdNotifyProperties
|
2019-09-19 01:32:33 +08:00
|
|
|
MemoryConstants::max64BitAppAddress, // gpuAddressSpace
|
2021-11-17 19:26:26 +08:00
|
|
|
0, // sharedSystemMemCapabilities
|
2019-09-19 01:32:33 +08:00
|
|
|
83.333, // defaultProfilingTimerResolution
|
|
|
|
MemoryConstants::pageSize, // requiredPreemptionSurfaceSize
|
2021-12-18 02:42:13 +08:00
|
|
|
"", // deviceName
|
2023-09-12 17:23:51 +08:00
|
|
|
nullptr, // preferredPlatformName
|
2020-06-18 20:24:59 +08:00
|
|
|
PreemptionMode::MidThread, // defaultPreemptionMode
|
2020-06-26 21:54:40 +08:00
|
|
|
aub_stream::ENGINE_RCS, // defaultEngineType
|
2019-09-19 01:32:33 +08:00
|
|
|
0, // maxRenderFrequency
|
2020-05-21 19:10:22 +08:00
|
|
|
30, // clVersionSupport
|
2019-09-19 01:32:33 +08:00
|
|
|
CmdServicesMemTraceVersion::DeviceValues::Tgllp, // aubDeviceId
|
|
|
|
1, // extraQuantityThreadsPerEU
|
|
|
|
64, // slmSize
|
2019-12-17 15:55:09 +08:00
|
|
|
sizeof(TGLLP::GRF), // grfSize
|
2020-09-30 14:00:00 +08:00
|
|
|
36u, // timestampValidBits
|
|
|
|
32u, // kernelTimestampValidBits
|
2019-09-19 01:32:33 +08:00
|
|
|
false, // blitterOperationsSupported
|
2019-10-30 23:14:50 +08:00
|
|
|
true, // ftrSupportsInteger64BitAtomics
|
2019-09-19 01:32:33 +08:00
|
|
|
false, // ftrSupportsFP64
|
2023-02-28 00:53:08 +08:00
|
|
|
false, // ftrSupportsFP64Emulation
|
2019-09-19 01:32:33 +08:00
|
|
|
false, // ftrSupports64BitMath
|
|
|
|
true, // ftrSvm
|
2020-04-30 15:51:56 +08:00
|
|
|
false, // ftrSupportsCoherency
|
2019-09-19 01:32:33 +08:00
|
|
|
false, // ftrSupportsVmeAvcTextureSampler
|
|
|
|
false, // ftrSupportsVmeAvcPreemption
|
|
|
|
false, // ftrRenderCompressedBuffers
|
|
|
|
false, // ftrRenderCompressedImages
|
|
|
|
true, // instrumentationEnabled
|
|
|
|
true, // ftr64KBpages
|
|
|
|
false, // supportsVme
|
|
|
|
false, // supportCacheFlushAfterWalker
|
|
|
|
true, // supportsImages
|
2020-05-21 23:18:16 +08:00
|
|
|
false, // supportsDeviceEnqueue
|
|
|
|
false, // 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
|
|
|
false, // supportsIndependentForwardProgress
|
2020-04-12 07:07:22 +08:00
|
|
|
false, // 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
|
|
|
true, // fusedEuEnabled
|
|
|
|
false, // l0DebuggerSupported;
|
2023-02-18 03:00:29 +08:00
|
|
|
true // supportsFloatAtomics
|
2019-09-19 01:32:33 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
WorkaroundTable TGLLP::workaroundTable = {};
|
|
|
|
FeatureTable TGLLP::featureTable = {};
|
|
|
|
|
|
|
|
void TGLLP::setupFeatureAndWorkaroundTable(HardwareInfo *hwInfo) {
|
|
|
|
FeatureTable *featureTable = &hwInfo->featureTable;
|
|
|
|
WorkaroundTable *workaroundTable = &hwInfo->workaroundTable;
|
|
|
|
|
2021-11-25 17:31:14 +08:00
|
|
|
featureTable->flags.ftrL3IACoherency = true;
|
|
|
|
featureTable->flags.ftrPPGTT = true;
|
|
|
|
featureTable->flags.ftrSVM = true;
|
|
|
|
featureTable->flags.ftrIA32eGfxPTEs = true;
|
|
|
|
featureTable->flags.ftrStandardMipTailFormat = true;
|
|
|
|
|
|
|
|
featureTable->flags.ftrTranslationTable = true;
|
|
|
|
featureTable->flags.ftrUserModeTranslationTable = true;
|
|
|
|
featureTable->flags.ftrTileMappedResource = true;
|
|
|
|
|
|
|
|
featureTable->flags.ftrFbc = true;
|
|
|
|
featureTable->flags.ftrTileY = true;
|
|
|
|
|
|
|
|
featureTable->flags.ftrAstcHdr2D = true;
|
|
|
|
featureTable->flags.ftrAstcLdr2D = true;
|
|
|
|
|
|
|
|
featureTable->flags.ftrGpGpuMidBatchPreempt = true;
|
|
|
|
featureTable->flags.ftrGpGpuThreadGroupLevelPreempt = true;
|
|
|
|
|
|
|
|
workaroundTable->flags.wa4kAlignUVOffsetNV12LinearSurface = true;
|
|
|
|
workaroundTable->flags.waUntypedBufferCompression = true;
|
2019-09-19 01:32:33 +08:00
|
|
|
};
|
|
|
|
|
2023-11-16 22:24:12 +08:00
|
|
|
void TGLLP::setupHardwareInfoBase(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const ReleaseHelper *releaseHelper) {
|
2022-05-10 20:52:14 +08:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2023-11-16 22:24:12 +08:00
|
|
|
gtSysInfo->ThreadCount = gtSysInfo->EUCount * 7u;
|
2022-05-10 20:52:14 +08:00
|
|
|
gtSysInfo->TotalPsThreadsWindowerRange = 64;
|
|
|
|
gtSysInfo->CsrSizeInMb = 8;
|
|
|
|
gtSysInfo->MaxEuPerSubSlice = TGLLP::maxEuPerSubslice;
|
|
|
|
gtSysInfo->MaxSlicesSupported = TGLLP::maxSlicesSupported;
|
|
|
|
gtSysInfo->MaxSubSlicesSupported = TGLLP::maxSubslicesSupported;
|
|
|
|
gtSysInfo->MaxDualSubSlicesSupported = TGLLP::maxDualSubslicesSupported;
|
|
|
|
gtSysInfo->IsL3HashModeEnabled = false;
|
|
|
|
gtSysInfo->IsDynamicallyPopulated = false;
|
|
|
|
|
|
|
|
if (setupFeatureTableAndWorkaroundTable) {
|
|
|
|
setupFeatureAndWorkaroundTable(hwInfo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo TgllpHw1x6x16::hwInfo = {
|
2019-09-19 01:32:33 +08:00
|
|
|
&TGLLP::platform,
|
|
|
|
&TGLLP::featureTable,
|
|
|
|
&TGLLP::workaroundTable,
|
2022-06-02 23:10:04 +08:00
|
|
|
&TgllpHw1x6x16::gtSystemInfo,
|
2023-07-31 20:48:31 +08:00
|
|
|
TGLLP::capabilityTable};
|
2019-09-19 01:32:33 +08:00
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
GT_SYSTEM_INFO TgllpHw1x6x16::gtSystemInfo = {0};
|
2023-11-16 22:24:12 +08:00
|
|
|
void TgllpHw1x6x16::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const ReleaseHelper *releaseHelper) {
|
|
|
|
TGLLP::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, releaseHelper);
|
2022-05-10 20:52:14 +08:00
|
|
|
|
2019-09-19 01:32:33 +08:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
gtSysInfo->DualSubSliceCount = 6;
|
2019-10-01 18:28:49 +08:00
|
|
|
gtSysInfo->L3CacheSizeInKb = 3840;
|
2019-09-19 01:32:33 +08:00
|
|
|
gtSysInfo->L3BankCount = 8;
|
|
|
|
gtSysInfo->MaxFillRate = 16;
|
|
|
|
gtSysInfo->TotalVsThreads = 336;
|
|
|
|
gtSysInfo->TotalHsThreads = 336;
|
|
|
|
gtSysInfo->TotalDsThreads = 336;
|
|
|
|
gtSysInfo->TotalGsThreads = 336;
|
|
|
|
|
|
|
|
gtSysInfo->CCSInfo.IsValid = true;
|
|
|
|
gtSysInfo->CCSInfo.NumberOfCCSEnabled = 1;
|
|
|
|
gtSysInfo->CCSInfo.Instances.CCSEnableMask = 0b1;
|
|
|
|
};
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo TgllpHw1x2x16::hwInfo = {
|
2019-10-01 18:28:49 +08:00
|
|
|
&TGLLP::platform,
|
|
|
|
&TGLLP::featureTable,
|
|
|
|
&TGLLP::workaroundTable,
|
2022-06-02 23:10:04 +08:00
|
|
|
&TgllpHw1x2x16::gtSystemInfo,
|
2023-07-31 20:48:31 +08:00
|
|
|
TGLLP::capabilityTable};
|
2019-10-01 18:28:49 +08:00
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
GT_SYSTEM_INFO TgllpHw1x2x16::gtSystemInfo = {0};
|
2023-11-16 22:24:12 +08:00
|
|
|
void TgllpHw1x2x16::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const ReleaseHelper *releaseHelper) {
|
|
|
|
TGLLP::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, releaseHelper);
|
2022-05-10 20:52:14 +08:00
|
|
|
|
2019-10-01 18:28:49 +08:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
gtSysInfo->DualSubSliceCount = 2;
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 1920;
|
|
|
|
gtSysInfo->L3BankCount = 4;
|
|
|
|
gtSysInfo->MaxFillRate = 16;
|
|
|
|
gtSysInfo->TotalVsThreads = 224;
|
|
|
|
gtSysInfo->TotalHsThreads = 224;
|
|
|
|
gtSysInfo->TotalDsThreads = 224;
|
|
|
|
gtSysInfo->TotalGsThreads = 224;
|
|
|
|
|
|
|
|
gtSysInfo->CCSInfo.IsValid = true;
|
|
|
|
gtSysInfo->CCSInfo.NumberOfCCSEnabled = 1;
|
|
|
|
gtSysInfo->CCSInfo.Instances.CCSEnableMask = 0b1;
|
|
|
|
};
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo TGLLP::hwInfo = TgllpHw1x6x16::hwInfo;
|
2019-09-19 01:32:33 +08:00
|
|
|
|
2023-11-16 22:24:12 +08:00
|
|
|
void setupTGLLPHardwareInfoImpl(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, uint64_t hwInfoConfig, const ReleaseHelper *releaseHelper) {
|
2020-03-04 00:59:45 +08:00
|
|
|
if (hwInfoConfig == 0x100060010) {
|
2023-11-16 22:24:12 +08:00
|
|
|
TgllpHw1x6x16::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable, releaseHelper);
|
2020-03-04 00:59:45 +08:00
|
|
|
} else if (hwInfoConfig == 0x100020010) {
|
2023-11-16 22:24:12 +08:00
|
|
|
TgllpHw1x2x16::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable, releaseHelper);
|
2020-01-25 00:19:06 +08:00
|
|
|
} else if (hwInfoConfig == 0x0) {
|
2019-09-19 01:32:33 +08:00
|
|
|
// Default config
|
2023-11-16 22:24:12 +08:00
|
|
|
TgllpHw1x6x16::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable, releaseHelper);
|
2019-09-19 01:32:33 +08:00
|
|
|
} else {
|
|
|
|
UNRECOVERABLE_IF(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-16 22:24:12 +08:00
|
|
|
void (*TGLLP::setupHardwareInfo)(HardwareInfo *, bool, uint64_t, const ReleaseHelper *) = setupTGLLPHardwareInfoImpl;
|
2019-09-19 01:32:33 +08:00
|
|
|
} // namespace NEO
|