2019-06-27 16:28:03 +08:00
|
|
|
/*
|
2022-02-01 09:46:54 +08:00
|
|
|
* Copyright (C) 2019-2022 Intel Corporation
|
2019-06-27 16:28:03 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2021-03-19 20:43:50 +08:00
|
|
|
#include "shared/source/aub_mem_dump/definitions/aub_services.h"
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/gen11/hw_cmds.h"
|
2020-04-02 17:28:38 +08:00
|
|
|
#include "shared/source/helpers/constants.h"
|
2020-02-24 17:22:30 +08:00
|
|
|
|
2019-06-27 16:28:03 +08:00
|
|
|
#include "engine_node.h"
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
const char *HwMapper<IGFX_ELKHARTLAKE>::abbreviation = "ehl";
|
|
|
|
|
|
|
|
bool isSimulationEHL(unsigned short deviceId) {
|
|
|
|
switch (deviceId) {
|
|
|
|
case IEHL_1x4x8_SUPERSKU_DEVICE_A0_ID:
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
};
|
|
|
|
const PLATFORM EHL::platform = {
|
|
|
|
IGFX_ELKHARTLAKE,
|
|
|
|
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 EHL::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-06-27 16:28:03 +08:00
|
|
|
MemoryConstants::max36BitAddress, // gpuAddressSpace
|
2021-11-17 19:26:26 +08:00
|
|
|
0, // sharedSystemMemCapabilities
|
2019-06-27 16:28:03 +08:00
|
|
|
83.333, // defaultProfilingTimerResolution
|
|
|
|
MemoryConstants::pageSize, // requiredPreemptionSurfaceSize
|
|
|
|
&isSimulationEHL, // isSimulation
|
2021-12-18 02:42:13 +08:00
|
|
|
"lp", // platformType
|
|
|
|
"", // deviceName
|
2019-06-27 16:28:03 +08:00
|
|
|
PreemptionMode::MidThread, // defaultPreemptionMode
|
|
|
|
aub_stream::ENGINE_RCS, // defaultEngineType
|
|
|
|
0, // maxRenderFrequency
|
2020-10-07 19:37:34 +08:00
|
|
|
30, // clVersionSupport
|
2019-06-27 16:28:03 +08:00
|
|
|
CmdServicesMemTraceVersion::DeviceValues::Ehl, // aubDeviceId
|
|
|
|
1, // extraQuantityThreadsPerEU
|
|
|
|
64, // slmSize
|
2019-12-17 15:55:09 +08:00
|
|
|
sizeof(EHL::GRF), // grfSize
|
2020-09-30 14:00:00 +08:00
|
|
|
36u, // timestampValidBits
|
|
|
|
32u, // kernelTimestampValidBits
|
2019-06-27 16:28:03 +08:00
|
|
|
false, // blitterOperationsSupported
|
2019-08-20 21:17:10 +08:00
|
|
|
false, // ftrSupportsInteger64BitAtomics
|
2019-06-27 16:28:03 +08:00
|
|
|
false, // ftrSupportsFP64
|
|
|
|
false, // ftrSupports64BitMath
|
|
|
|
false, // ftrSvm
|
2020-04-30 15:51:56 +08:00
|
|
|
false, // ftrSupportsCoherency
|
2021-06-30 16:56:08 +08:00
|
|
|
false, // ftrSupportsVmeAvcTextureSampler
|
|
|
|
false, // ftrSupportsVmeAvcPreemption
|
2019-06-27 16:28:03 +08:00
|
|
|
false, // ftrRenderCompressedBuffers
|
|
|
|
false, // ftrRenderCompressedImages
|
|
|
|
true, // ftr64KBpages
|
|
|
|
true, // instrumentationEnabled
|
|
|
|
true, // sourceLevelDebuggerSupported
|
2019-07-18 22:46:35 +08:00
|
|
|
false, // supportsVme
|
2019-06-27 16:28:03 +08:00
|
|
|
false, // supportCacheFlushAfterWalker
|
2019-08-20 21:17:10 +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
|
2021-06-18 23:23:10 +08:00
|
|
|
false // fusedEuEnabled
|
2019-06-27 16:28:03 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
WorkaroundTable EHL::workaroundTable = {};
|
|
|
|
FeatureTable EHL::featureTable = {};
|
|
|
|
|
|
|
|
void EHL::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;
|
2019-06-27 16:28:03 +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;
|
|
|
|
featureTable->flags.ftrEnableGuC = true;
|
2019-06-27 16:28:03 +08:00
|
|
|
|
2021-11-25 17:31:14 +08:00
|
|
|
featureTable->flags.ftrFbc = true;
|
|
|
|
featureTable->flags.ftrFbc2AddressTranslation = true;
|
|
|
|
featureTable->flags.ftrFbcBlitterTracking = true;
|
|
|
|
featureTable->flags.ftrFbcCpuTracking = true;
|
|
|
|
featureTable->flags.ftrTileY = true;
|
2019-06-27 16:28:03 +08:00
|
|
|
|
2021-11-25 17:31:14 +08:00
|
|
|
featureTable->flags.ftrAstcHdr2D = true;
|
|
|
|
featureTable->flags.ftrAstcLdr2D = true;
|
2019-06-27 16:28:03 +08:00
|
|
|
|
2021-11-25 17:31:14 +08:00
|
|
|
featureTable->flags.ftr3dMidBatchPreempt = true;
|
|
|
|
featureTable->flags.ftrGpGpuMidBatchPreempt = true;
|
|
|
|
featureTable->flags.ftrGpGpuMidThreadLevelPreempt = true;
|
|
|
|
featureTable->flags.ftrGpGpuThreadGroupLevelPreempt = true;
|
|
|
|
featureTable->flags.ftrPerCtxtPreemptionGranularityControl = true;
|
2019-06-27 16:28:03 +08:00
|
|
|
|
2021-11-25 17:31:14 +08:00
|
|
|
workaroundTable->flags.wa4kAlignUVOffsetNV12LinearSurface = true;
|
|
|
|
workaroundTable->flags.waReportPerfCountUseGlobalContextID = true;
|
2019-06-27 16:28:03 +08:00
|
|
|
};
|
|
|
|
|
2020-07-27 15:36:30 +08:00
|
|
|
const HardwareInfo EHL_HW_CONFIG::hwInfo = {
|
|
|
|
&EHL::platform,
|
|
|
|
&EHL::featureTable,
|
|
|
|
&EHL::workaroundTable,
|
|
|
|
&EHL_HW_CONFIG::gtSystemInfo,
|
|
|
|
EHL::capabilityTable,
|
|
|
|
};
|
|
|
|
GT_SYSTEM_INFO EHL_HW_CONFIG::gtSystemInfo = {0};
|
|
|
|
void EHL_HW_CONFIG::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
|
|
|
gtSysInfo->ThreadCount = gtSysInfo->EUCount * EHL::threadsPerEu;
|
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 1280;
|
|
|
|
gtSysInfo->L3BankCount = 4;
|
|
|
|
gtSysInfo->MaxFillRate = 8;
|
|
|
|
gtSysInfo->TotalVsThreads = 0;
|
|
|
|
gtSysInfo->TotalHsThreads = 0;
|
|
|
|
gtSysInfo->TotalDsThreads = 0;
|
|
|
|
gtSysInfo->TotalGsThreads = 0;
|
|
|
|
gtSysInfo->TotalPsThreadsWindowerRange = 64;
|
|
|
|
gtSysInfo->CsrSizeInMb = 8;
|
|
|
|
gtSysInfo->MaxEuPerSubSlice = EHL::maxEuPerSubslice;
|
|
|
|
gtSysInfo->MaxSlicesSupported = EHL::maxSlicesSupported;
|
|
|
|
gtSysInfo->MaxSubSlicesSupported = EHL::maxSubslicesSupported;
|
|
|
|
gtSysInfo->IsL3HashModeEnabled = false;
|
|
|
|
gtSysInfo->IsDynamicallyPopulated = false;
|
|
|
|
if (setupFeatureTableAndWorkaroundTable) {
|
|
|
|
setupFeatureAndWorkaroundTable(hwInfo);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-07-29 01:17:06 +08:00
|
|
|
const HardwareInfo EHL::hwInfo = EHL_HW_CONFIG::hwInfo;
|
2020-01-25 00:19:06 +08:00
|
|
|
const uint64_t EHL::defaultHardwareInfoConfig = 0x100040008;
|
2019-06-27 16:28:03 +08:00
|
|
|
|
2020-01-25 00:19:06 +08:00
|
|
|
void setupEHLHardwareInfoImpl(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, uint64_t hwInfoConfig) {
|
2020-07-29 01:17:06 +08:00
|
|
|
EHL_HW_CONFIG::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable);
|
2019-06-27 16:28:03 +08:00
|
|
|
}
|
2020-01-25 00:19:06 +08:00
|
|
|
void (*EHL::setupHardwareInfo)(HardwareInfo *, bool, uint64_t) = setupEHLHardwareInfoImpl;
|
2019-06-27 16:28:03 +08:00
|
|
|
} // namespace NEO
|