2020-10-08 21:40:40 +08:00
|
|
|
/*
|
2025-01-03 18:16:25 +08:00
|
|
|
* Copyright (C) 2020-2025 Intel Corporation
|
2020-10-08 21:40:40 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2023-02-08 18:14:15 +08:00
|
|
|
#include "shared/source/gen12lp/hw_info_adls.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_adls.h"
|
2020-10-08 21:40:40 +08:00
|
|
|
#include "shared/source/helpers/constants.h"
|
|
|
|
|
2022-11-23 17:14:27 +08:00
|
|
|
#include "aubstream/engine_node.h"
|
2020-10-08 21:40:40 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
const char *HwMapper<IGFX_ALDERLAKE_S>::abbreviation = "adls";
|
|
|
|
|
|
|
|
const PLATFORM ADLS::platform = {
|
|
|
|
IGFX_ALDERLAKE_S,
|
|
|
|
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 ADLS::capabilityTable{
|
|
|
|
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
|
2020-10-08 21:40:40 +08:00
|
|
|
MemoryConstants::max64BitAppAddress, // gpuAddressSpace
|
2021-11-17 19:26:26 +08:00
|
|
|
0, // sharedSystemMemCapabilities
|
2020-10-08 21:40:40 +08:00
|
|
|
MemoryConstants::pageSize, // requiredPreemptionSurfaceSize
|
2021-12-18 02:42:13 +08:00
|
|
|
"", // deviceName
|
2023-09-12 17:23:51 +08:00
|
|
|
nullptr, // preferredPlatformName
|
2024-10-01 00:32:59 +08:00
|
|
|
PreemptionMode::ThreadGroup, // defaultPreemptionMode
|
2020-10-08 21:40:40 +08:00
|
|
|
aub_stream::ENGINE_RCS, // defaultEngineType
|
|
|
|
0, // maxRenderFrequency
|
|
|
|
30, // clVersionSupport
|
|
|
|
CmdServicesMemTraceVersion::DeviceValues::Adls, // aubDeviceId
|
|
|
|
1, // extraQuantityThreadsPerEU
|
2025-04-15 01:38:10 +08:00
|
|
|
64, // maxProgrammableSlmSize
|
2020-10-08 21:40:40 +08:00
|
|
|
sizeof(ADLS::GRF), // grfSize
|
|
|
|
36u, // timestampValidBits
|
|
|
|
32u, // kernelTimestampValidBits
|
|
|
|
false, // blitterOperationsSupported
|
|
|
|
true, // ftrSupportsInteger64BitAtomics
|
|
|
|
false, // ftrSupportsFP64
|
2023-02-28 00:53:08 +08:00
|
|
|
false, // ftrSupportsFP64Emulation
|
2020-10-08 21:40:40 +08:00
|
|
|
false, // ftrSupports64BitMath
|
|
|
|
true, // ftrSvm
|
|
|
|
false, // ftrSupportsCoherency
|
|
|
|
false, // ftrRenderCompressedBuffers
|
|
|
|
false, // ftrRenderCompressedImages
|
|
|
|
true, // instrumentationEnabled
|
|
|
|
true, // ftr64KBpages
|
|
|
|
false, // supportCacheFlushAfterWalker
|
|
|
|
true, // supportsImages
|
|
|
|
true, // supportsOcl21Features
|
|
|
|
false, // supportsOnDemandPageFaults
|
|
|
|
false, // supportsIndependentForwardProgress
|
|
|
|
false, // hostPtrTrackingEnabled
|
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
|
2023-02-18 03:00:29 +08:00
|
|
|
false, // l0DebuggerSupported;
|
2024-05-24 09:12:14 +08:00
|
|
|
true, // supportsFloatAtomics
|
2024-11-21 21:07:52 +08:00
|
|
|
0 // cxlType
|
2020-10-08 21:40:40 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
WorkaroundTable ADLS::workaroundTable = {};
|
|
|
|
FeatureTable ADLS::featureTable = {};
|
|
|
|
|
|
|
|
void ADLS::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;
|
2020-10-08 21:40:40 +08:00
|
|
|
};
|
|
|
|
|
2023-11-16 22:24:12 +08:00
|
|
|
void ADLS::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 = ADLS::maxEuPerSubslice;
|
|
|
|
gtSysInfo->MaxSlicesSupported = ADLS::maxSlicesSupported;
|
|
|
|
gtSysInfo->MaxSubSlicesSupported = ADLS::maxSubslicesSupported;
|
|
|
|
gtSysInfo->MaxDualSubSlicesSupported = ADLS::maxDualSubslicesSupported;
|
|
|
|
gtSysInfo->IsL3HashModeEnabled = false;
|
|
|
|
gtSysInfo->IsDynamicallyPopulated = false;
|
|
|
|
|
|
|
|
if (setupFeatureTableAndWorkaroundTable) {
|
|
|
|
setupFeatureAndWorkaroundTable(hwInfo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo AdlsHwConfig::hwInfo = {
|
2020-10-08 21:40:40 +08:00
|
|
|
&ADLS::platform,
|
|
|
|
&ADLS::featureTable,
|
|
|
|
&ADLS::workaroundTable,
|
2022-06-02 23:10:04 +08:00
|
|
|
&AdlsHwConfig::gtSystemInfo,
|
2023-07-31 20:48:31 +08:00
|
|
|
ADLS::capabilityTable};
|
2020-10-08 21:40:40 +08:00
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
GT_SYSTEM_INFO AdlsHwConfig::gtSystemInfo = {0};
|
2023-11-16 22:24:12 +08:00
|
|
|
void AdlsHwConfig::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const ReleaseHelper *releaseHelper) {
|
|
|
|
setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, releaseHelper);
|
2022-05-10 20:52:14 +08:00
|
|
|
|
2020-10-08 21:40:40 +08:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2021-06-08 19:08:17 +08:00
|
|
|
gtSysInfo->DualSubSliceCount = gtSysInfo->SubSliceCount;
|
2020-10-08 21:40:40 +08:00
|
|
|
gtSysInfo->L3CacheSizeInKb = 1920;
|
|
|
|
gtSysInfo->L3BankCount = 4;
|
|
|
|
gtSysInfo->MaxFillRate = 8;
|
|
|
|
gtSysInfo->TotalVsThreads = 0;
|
|
|
|
gtSysInfo->TotalHsThreads = 0;
|
|
|
|
gtSysInfo->TotalDsThreads = 0;
|
|
|
|
gtSysInfo->TotalGsThreads = 0;
|
2023-11-15 18:05:30 +08:00
|
|
|
if (gtSysInfo->MaxSubSlicesSupported < 1) {
|
|
|
|
gtSysInfo->MaxSubSlicesSupported = 1;
|
|
|
|
}
|
|
|
|
if (gtSysInfo->MaxDualSubSlicesSupported < 2) {
|
|
|
|
gtSysInfo->MaxDualSubSlicesSupported = 2;
|
|
|
|
}
|
2020-10-08 21:40:40 +08:00
|
|
|
|
|
|
|
gtSysInfo->CCSInfo.IsValid = true;
|
|
|
|
gtSysInfo->CCSInfo.NumberOfCCSEnabled = 1;
|
|
|
|
gtSysInfo->CCSInfo.Instances.CCSEnableMask = 0b1;
|
|
|
|
};
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo ADLS::hwInfo = AdlsHwConfig::hwInfo;
|
2020-10-08 21:40:40 +08:00
|
|
|
|
2023-11-16 22:24:12 +08:00
|
|
|
void setupADLSHardwareInfoImpl(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, uint64_t hwInfoConfig, const ReleaseHelper *releaseHelper) {
|
|
|
|
AdlsHwConfig::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable, releaseHelper);
|
2020-10-08 21:40:40 +08:00
|
|
|
}
|
|
|
|
|
2023-11-16 22:24:12 +08:00
|
|
|
void (*ADLS::setupHardwareInfo)(HardwareInfo *, bool, uint64_t, const ReleaseHelper *) = setupADLSHardwareInfoImpl;
|
2020-10-08 21:40:40 +08:00
|
|
|
} // namespace NEO
|