155 lines
6.7 KiB
C++
155 lines
6.7 KiB
C++
/*
|
|
* Copyright (C) 2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/aub_mem_dump/definitions/aub_services.h"
|
|
#include "shared/source/gen12lp/hw_cmds.h"
|
|
#include "shared/source/helpers/constants.h"
|
|
|
|
#include "engine_node.h"
|
|
|
|
namespace NEO {
|
|
|
|
const char *HwMapper<IGFX_ALDERLAKE_P>::abbreviation = "adlp";
|
|
|
|
bool isSimulationADLP(unsigned short deviceId) {
|
|
return false;
|
|
};
|
|
|
|
const PLATFORM ADLP::platform = {
|
|
IGFX_ALDERLAKE_P,
|
|
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 ADLP::capabilityTable{
|
|
EngineDirectSubmissionInitVec{
|
|
{aub_stream::ENGINE_RCS, {true, true}},
|
|
{aub_stream::ENGINE_CCS, {true, true}}}, // directSubmissionEngines
|
|
{0, 0, 0, false, false, false}, // kmdNotifyProperties
|
|
MemoryConstants::max64BitAppAddress, // gpuAddressSpace
|
|
83.333, // defaultProfilingTimerResolution
|
|
MemoryConstants::pageSize, // requiredPreemptionSurfaceSize
|
|
&isSimulationADLP, // isSimulation
|
|
PreemptionMode::MidThread, // defaultPreemptionMode
|
|
aub_stream::ENGINE_RCS, // defaultEngineType
|
|
0, // maxRenderFrequency
|
|
30, // clVersionSupport
|
|
CmdServicesMemTraceVersion::DeviceValues::Adlp, // aubDeviceId
|
|
1, // extraQuantityThreadsPerEU
|
|
64, // slmSize
|
|
sizeof(ADLP::GRF), // grfSize
|
|
36u, // timestampValidBits
|
|
32u, // kernelTimestampValidBits
|
|
false, // blitterOperationsSupported
|
|
true, // ftrSupportsInteger64BitAtomics
|
|
false, // ftrSupportsFP64
|
|
false, // ftrSupports64BitMath
|
|
true, // ftrSvm
|
|
false, // ftrSupportsCoherency
|
|
false, // ftrSupportsVmeAvcTextureSampler
|
|
false, // ftrSupportsVmeAvcPreemption
|
|
false, // ftrRenderCompressedBuffers
|
|
false, // ftrRenderCompressedImages
|
|
true, // instrumentationEnabled
|
|
true, // forceStatelessCompilationFor32Bit
|
|
true, // ftr64KBpages
|
|
"lp", // platformType
|
|
"", // deviceName
|
|
true, // sourceLevelDebuggerSupported
|
|
false, // supportsVme
|
|
false, // supportCacheFlushAfterWalker
|
|
true, // supportsImages
|
|
false, // supportsDeviceEnqueue
|
|
false, // supportsPipes
|
|
true, // supportsOcl21Features
|
|
false, // supportsOnDemandPageFaults
|
|
false, // supportsIndependentForwardProgress
|
|
false, // hostPtrTrackingEnabled
|
|
true, // levelZeroSupported
|
|
true, // isIntegratedDevice
|
|
true, // supportsMediaBlock
|
|
true // fusedEuEnabled
|
|
};
|
|
|
|
WorkaroundTable ADLP::workaroundTable = {};
|
|
FeatureTable ADLP::featureTable = {};
|
|
|
|
void ADLP::setupFeatureAndWorkaroundTable(HardwareInfo *hwInfo) {
|
|
FeatureTable *featureTable = &hwInfo->featureTable;
|
|
WorkaroundTable *workaroundTable = &hwInfo->workaroundTable;
|
|
|
|
featureTable->ftrL3IACoherency = true;
|
|
featureTable->ftrPPGTT = true;
|
|
featureTable->ftrSVM = true;
|
|
featureTable->ftrIA32eGfxPTEs = true;
|
|
featureTable->ftrStandardMipTailFormat = true;
|
|
|
|
featureTable->ftrTranslationTable = true;
|
|
featureTable->ftrUserModeTranslationTable = true;
|
|
featureTable->ftrTileMappedResource = true;
|
|
featureTable->ftrEnableGuC = true;
|
|
|
|
featureTable->ftrFbc = true;
|
|
featureTable->ftrFbc2AddressTranslation = true;
|
|
featureTable->ftrFbcBlitterTracking = true;
|
|
featureTable->ftrFbcCpuTracking = true;
|
|
featureTable->ftrTileY = false;
|
|
|
|
featureTable->ftrAstcHdr2D = true;
|
|
featureTable->ftrAstcLdr2D = true;
|
|
|
|
featureTable->ftr3dMidBatchPreempt = true;
|
|
featureTable->ftrGpGpuMidBatchPreempt = true;
|
|
featureTable->ftrGpGpuThreadGroupLevelPreempt = true;
|
|
featureTable->ftrPerCtxtPreemptionGranularityControl = true;
|
|
|
|
workaroundTable->wa4kAlignUVOffsetNV12LinearSurface = true;
|
|
workaroundTable->waEnablePreemptionGranularityControlByUMD = true;
|
|
workaroundTable->waUntypedBufferCompression = true;
|
|
};
|
|
const HardwareInfo ADLP_CONFIG::hwInfo = {
|
|
&ADLP::platform,
|
|
&ADLP::featureTable,
|
|
&ADLP::workaroundTable,
|
|
&ADLP_CONFIG::gtSystemInfo,
|
|
ADLP::capabilityTable,
|
|
};
|
|
|
|
GT_SYSTEM_INFO ADLP_CONFIG::gtSystemInfo = {0};
|
|
void ADLP_CONFIG::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable) {
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
|
gtSysInfo->CsrSizeInMb = 8;
|
|
gtSysInfo->IsDynamicallyPopulated = false;
|
|
|
|
// non-zero values for unit tests
|
|
if (gtSysInfo->SliceCount == 0) {
|
|
gtSysInfo->SliceCount = 2;
|
|
gtSysInfo->SubSliceCount = 8;
|
|
gtSysInfo->EUCount = 40;
|
|
gtSysInfo->MaxEuPerSubSlice = ADLP::maxEuPerSubslice;
|
|
gtSysInfo->MaxSlicesSupported = ADLP::maxSlicesSupported;
|
|
gtSysInfo->MaxSubSlicesSupported = ADLP::maxSubslicesSupported;
|
|
|
|
gtSysInfo->L3BankCount = 1;
|
|
|
|
gtSysInfo->CCSInfo.IsValid = true;
|
|
gtSysInfo->CCSInfo.NumberOfCCSEnabled = 1;
|
|
}
|
|
|
|
if (setupFeatureTableAndWorkaroundTable) {
|
|
setupFeatureAndWorkaroundTable(hwInfo);
|
|
}
|
|
};
|
|
#include "hw_info_setup_adlp.inl"
|
|
} // namespace NEO
|