2019-01-10 22:36:57 +08:00
|
|
|
/*
|
2023-01-03 19:46:57 +08:00
|
|
|
* Copyright (C) 2019-2023 Intel Corporation
|
2019-01-10 22:36:57 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
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"
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/gen11/hw_cmds_lkf.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"
|
2023-02-23 20:54:58 +08:00
|
|
|
#include "platforms.h"
|
2019-01-10 22:36:57 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
const char *HwMapper<IGFX_LAKEFIELD>::abbreviation = "lkf";
|
|
|
|
|
|
|
|
const PLATFORM LKF::platform = {
|
|
|
|
IGFX_LAKEFIELD,
|
|
|
|
PCH_UNKNOWN,
|
|
|
|
IGFX_GEN11_CORE,
|
|
|
|
IGFX_GEN11_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 LKF::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
|
2019-01-10 22:36:57 +08:00
|
|
|
MemoryConstants::max36BitAddress, // gpuAddressSpace
|
2021-11-17 19:26:26 +08:00
|
|
|
0, // sharedSystemMemCapabilities
|
2019-01-10 22:36:57 +08:00
|
|
|
83.333, // defaultProfilingTimerResolution
|
|
|
|
MemoryConstants::pageSize, // requiredPreemptionSurfaceSize
|
2021-12-18 02:42:13 +08:00
|
|
|
"", // deviceName
|
2019-01-10 22:36:57 +08:00
|
|
|
PreemptionMode::MidThread, // defaultPreemptionMode
|
|
|
|
aub_stream::ENGINE_RCS, // defaultEngineType
|
|
|
|
0, // maxRenderFrequency
|
2020-10-07 19:37:34 +08:00
|
|
|
30, // clVersionSupport
|
2019-01-10 22:36:57 +08:00
|
|
|
CmdServicesMemTraceVersion::DeviceValues::Lkf, // aubDeviceId
|
|
|
|
1, // extraQuantityThreadsPerEU
|
|
|
|
64, // slmSize
|
2019-12-17 15:55:09 +08:00
|
|
|
sizeof(LKF::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
|
2019-01-10 22:36:57 +08:00
|
|
|
false, // ftrSupportsFP64
|
|
|
|
false, // ftrSupports64BitMath
|
|
|
|
false, // ftrSvm
|
2020-04-30 15:51:56 +08:00
|
|
|
false, // ftrSupportsCoherency
|
2019-07-18 22:46:35 +08:00
|
|
|
false, // ftrSupportsVmeAvcTextureSampler
|
|
|
|
false, // ftrSupportsVmeAvcPreemption
|
2019-01-10 22:36:57 +08:00
|
|
|
false, // ftrRenderCompressedBuffers
|
|
|
|
false, // ftrRenderCompressedImages
|
|
|
|
true, // ftr64KBpages
|
|
|
|
true, // instrumentationEnabled
|
|
|
|
true, // sourceLevelDebuggerSupported
|
|
|
|
false, // supportsVme
|
2019-07-01 17:29:15 +08:00
|
|
|
false, // supportCacheFlushAfterWalker
|
2019-07-15 21:08:42 +08:00
|
|
|
true, // supportsImages
|
2020-06-23 21:26:04 +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
|
2023-02-18 03:00:29 +08:00
|
|
|
false, // l0DebuggerSupported;
|
|
|
|
false // supportsFloatAtomics
|
2019-01-10 22:36:57 +08:00
|
|
|
};
|
|
|
|
|
2019-03-28 22:34:26 +08:00
|
|
|
WorkaroundTable LKF::workaroundTable = {};
|
|
|
|
FeatureTable LKF::featureTable = {};
|
|
|
|
|
|
|
|
void LKF::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.ftrL3IACoherency = true;
|
|
|
|
featureTable->flags.ftrPPGTT = true;
|
|
|
|
featureTable->flags.ftrSVM = true;
|
|
|
|
featureTable->flags.ftrIA32eGfxPTEs = true;
|
|
|
|
featureTable->flags.ftrStandardMipTailFormat = true;
|
2019-03-28 22:34:26 +08:00
|
|
|
|
2021-11-25 17:31:14 +08:00
|
|
|
featureTable->flags.ftrDisplayYTiling = true;
|
|
|
|
featureTable->flags.ftrTranslationTable = true;
|
|
|
|
featureTable->flags.ftrUserModeTranslationTable = true;
|
|
|
|
featureTable->flags.ftrTileMappedResource = true;
|
2019-03-28 22:34:26 +08:00
|
|
|
|
2021-11-25 17:31:14 +08:00
|
|
|
featureTable->flags.ftrFbc = true;
|
|
|
|
featureTable->flags.ftrTileY = true;
|
2019-03-28 22:34:26 +08:00
|
|
|
|
2021-11-25 17:31:14 +08:00
|
|
|
featureTable->flags.ftrAstcHdr2D = true;
|
|
|
|
featureTable->flags.ftrAstcLdr2D = true;
|
2019-03-28 22:34:26 +08:00
|
|
|
|
2021-11-25 17:31:14 +08:00
|
|
|
featureTable->flags.ftrGpGpuMidBatchPreempt = true;
|
|
|
|
featureTable->flags.ftrGpGpuMidThreadLevelPreempt = true;
|
|
|
|
featureTable->flags.ftrGpGpuThreadGroupLevelPreempt = true;
|
2019-04-25 16:50:44 +08:00
|
|
|
|
2021-11-25 17:31:14 +08:00
|
|
|
workaroundTable->flags.wa4kAlignUVOffsetNV12LinearSurface = true;
|
2019-03-28 22:34:26 +08:00
|
|
|
};
|
|
|
|
|
2022-05-10 20:52:14 +08:00
|
|
|
void LKF::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 * LKF::threadsPerEu;
|
2019-01-10 22:36:57 +08:00
|
|
|
gtSysInfo->TotalVsThreads = 448;
|
|
|
|
gtSysInfo->TotalHsThreads = 448;
|
|
|
|
gtSysInfo->TotalDsThreads = 448;
|
|
|
|
gtSysInfo->TotalGsThreads = 448;
|
|
|
|
gtSysInfo->TotalPsThreadsWindowerRange = 64;
|
|
|
|
gtSysInfo->CsrSizeInMb = 8;
|
|
|
|
gtSysInfo->MaxEuPerSubSlice = LKF::maxEuPerSubslice;
|
|
|
|
gtSysInfo->MaxSlicesSupported = LKF::maxSlicesSupported;
|
|
|
|
gtSysInfo->MaxSubSlicesSupported = LKF::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 LkfHw1x8x8::hwInfo = {
|
2022-05-10 20:52:14 +08:00
|
|
|
&LKF::platform,
|
|
|
|
&LKF::featureTable,
|
|
|
|
&LKF::workaroundTable,
|
2022-06-02 23:10:04 +08:00
|
|
|
&LkfHw1x8x8::gtSystemInfo,
|
2022-05-10 20:52:14 +08:00
|
|
|
LKF::capabilityTable,
|
2023-02-23 20:54:58 +08:00
|
|
|
AOT::LKF};
|
2022-06-02 23:10:04 +08:00
|
|
|
GT_SYSTEM_INFO LkfHw1x8x8::gtSystemInfo = {0};
|
|
|
|
void LkfHw1x8x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
2022-05-10 20:52:14 +08:00
|
|
|
LKF::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable);
|
|
|
|
|
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
|
|
|
gtSysInfo->ThreadCount = gtSysInfo->EUCount * LKF::threadsPerEu;
|
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 2560;
|
|
|
|
gtSysInfo->L3BankCount = 8;
|
|
|
|
gtSysInfo->MaxFillRate = 16;
|
2019-01-10 22:36:57 +08:00
|
|
|
};
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo LKF::hwInfo = LkfHw1x8x8::hwInfo;
|
2020-01-25 00:19:06 +08:00
|
|
|
const uint64_t LKF::defaultHardwareInfoConfig = 0x100080008;
|
2019-01-10 22:36:57 +08:00
|
|
|
|
2020-01-25 00:19:06 +08:00
|
|
|
void setupLKFHardwareInfoImpl(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, uint64_t hwInfoConfig) {
|
|
|
|
if (hwInfoConfig == 0x100080008) {
|
2022-06-02 23:10:04 +08:00
|
|
|
LkfHw1x8x8::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2020-01-25 00:19:06 +08:00
|
|
|
} else if (hwInfoConfig == 0x0) {
|
2019-01-10 22:36:57 +08:00
|
|
|
// Default config
|
2022-06-02 23:10:04 +08:00
|
|
|
LkfHw1x8x8::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2019-01-10 22:36:57 +08:00
|
|
|
} else {
|
|
|
|
UNRECOVERABLE_IF(true);
|
|
|
|
}
|
2019-03-28 22:34:26 +08:00
|
|
|
}
|
2019-01-10 22:36:57 +08:00
|
|
|
|
2020-01-25 00:19:06 +08:00
|
|
|
void (*LKF::setupHardwareInfo)(HardwareInfo *, bool, uint64_t) = setupLKFHardwareInfoImpl;
|
2019-01-10 22:36:57 +08:00
|
|
|
} // namespace NEO
|