2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2023-01-03 19:46:57 +08:00
|
|
|
* Copyright (C) 2018-2023 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
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/gen8/hw_cmds_bdw.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"
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
const char *HwMapper<IGFX_BROADWELL>::abbreviation = "bdw";
|
|
|
|
|
|
|
|
const PLATFORM BDW::platform = {
|
|
|
|
IGFX_BROADWELL,
|
|
|
|
PCH_UNKNOWN,
|
|
|
|
IGFX_GEN8_CORE,
|
|
|
|
IGFX_GEN8_CORE,
|
|
|
|
PLATFORM_NONE, // default init
|
|
|
|
0, // usDeviceID
|
|
|
|
0, // usRevId. 0 sets the stepping to A0
|
|
|
|
0, // usDeviceID_PCH
|
|
|
|
0, // usRevId_PCH
|
|
|
|
GTTYPE_UNDEFINED};
|
|
|
|
|
2018-12-06 22:33:02 +08:00
|
|
|
const RuntimeCapabilityTable BDW::capabilityTable{
|
2020-01-16 00:02:47 +08:00
|
|
|
EngineDirectSubmissionInitVec{
|
2021-12-18 02:42:13 +08:00
|
|
|
{aub_stream::ENGINE_RCS, {true, true}}}, // directSubmissionEngines
|
|
|
|
{50000, 5000, 200000, 0, true, true, true, false}, // kmdNotifyProperties
|
|
|
|
MemoryConstants::max48BitAddress, // gpuAddressSpace
|
|
|
|
0, // sharedSystemMemCapabilities
|
|
|
|
80, // defaultProfilingTimerResolution
|
|
|
|
MemoryConstants::pageSize, // requiredPreemptionSurfaceSize
|
|
|
|
"", // deviceName
|
2023-09-12 17:23:51 +08:00
|
|
|
nullptr, // preferredPlatformName
|
2021-12-18 02:42:13 +08:00
|
|
|
PreemptionMode::Disabled, // defaultPreemptionMode
|
|
|
|
aub_stream::ENGINE_RCS, // defaultEngineType
|
|
|
|
0, // maxRenderFrequency
|
|
|
|
30, // clVersionSupport
|
|
|
|
CmdServicesMemTraceVersion::DeviceValues::Bdw, // aubDeviceId
|
|
|
|
0, // extraQuantityThreadsPerEU
|
|
|
|
64, // slmSize
|
|
|
|
sizeof(BDW::GRF), // grfSize
|
|
|
|
36u, // timestampValidBits
|
|
|
|
32u, // kernelTimestampValidBits
|
|
|
|
false, // blitterOperationsSupported
|
|
|
|
true, // ftrSupportsInteger64BitAtomics
|
|
|
|
true, // ftrSupportsFP64
|
2023-02-28 00:53:08 +08:00
|
|
|
false, // ftrSupportsFP64Emulation
|
2021-12-18 02:42:13 +08:00
|
|
|
true, // ftrSupports64BitMath
|
|
|
|
true, // ftrSvm
|
|
|
|
true, // ftrSupportsCoherency
|
|
|
|
false, // ftrSupportsVmeAvcTextureSampler
|
|
|
|
false, // ftrSupportsVmeAvcPreemption
|
|
|
|
false, // ftrRenderCompressedBuffers
|
|
|
|
false, // ftrRenderCompressedImages
|
|
|
|
false, // ftr64KBpages
|
|
|
|
true, // instrumentationEnabled
|
|
|
|
false, // supportsVme
|
|
|
|
false, // supportCacheFlushAfterWalker
|
|
|
|
true, // supportsImages
|
|
|
|
false, // supportsDeviceEnqueue
|
|
|
|
true, // supportsPipes
|
|
|
|
true, // supportsOcl21Features
|
|
|
|
false, // supportsOnDemandPageFaults
|
|
|
|
true, // supportsIndependentForwardProgress
|
|
|
|
true, // hostPtrTrackingEnabled
|
|
|
|
false, // levelZeroSupported
|
|
|
|
true, // isIntegratedDevice
|
|
|
|
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
|
2018-12-06 22:33:02 +08:00
|
|
|
};
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-03-28 22:34:26 +08:00
|
|
|
WorkaroundTable BDW::workaroundTable = {};
|
|
|
|
FeatureTable BDW::featureTable = {};
|
|
|
|
|
|
|
|
void BDW::setupFeatureAndWorkaroundTable(HardwareInfo *hwInfo) {
|
2019-05-08 22:00:24 +08:00
|
|
|
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.ftrFbc = true;
|
|
|
|
featureTable->flags.ftrTileY = true;
|
2019-05-08 22:00:24 +08:00
|
|
|
|
2021-11-25 17:31:14 +08:00
|
|
|
workaroundTable->flags.waDisableLSQCROPERFforOCL = true;
|
|
|
|
workaroundTable->flags.waUseVAlign16OnTileXYBpp816 = true;
|
|
|
|
workaroundTable->flags.waModifyVFEStateAfterGPGPUPreemption = true;
|
|
|
|
workaroundTable->flags.waSamplerCacheFlushBetweenRedescribedSurfaceReads = true;
|
2019-03-28 22:34:26 +08:00
|
|
|
}
|
|
|
|
|
2023-11-16 22:24:12 +08:00
|
|
|
void BDW::setupHardwareInfoBase(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const ReleaseHelper *releaseHelper) {
|
2019-05-08 22:00:24 +08:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2023-11-16 22:24:12 +08:00
|
|
|
gtSysInfo->ThreadCount = gtSysInfo->EUCount * 7u;
|
2017-12-21 07:45:38 +08:00
|
|
|
gtSysInfo->TotalVsThreads = 336;
|
|
|
|
gtSysInfo->TotalHsThreads = 336;
|
|
|
|
gtSysInfo->TotalDsThreads = 336;
|
|
|
|
gtSysInfo->TotalGsThreads = 336;
|
|
|
|
gtSysInfo->TotalPsThreadsWindowerRange = 64;
|
|
|
|
gtSysInfo->CsrSizeInMb = 8;
|
|
|
|
gtSysInfo->MaxEuPerSubSlice = BDW::maxEuPerSubslice;
|
|
|
|
gtSysInfo->MaxSlicesSupported = BDW::maxSlicesSupported;
|
|
|
|
gtSysInfo->MaxSubSlicesSupported = BDW::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 BdwHw1x2x6::hwInfo = {
|
2022-05-10 20:52:14 +08:00
|
|
|
&BDW::platform,
|
|
|
|
&BDW::featureTable,
|
|
|
|
&BDW::workaroundTable,
|
2022-06-02 23:10:04 +08:00
|
|
|
&BdwHw1x2x6::gtSystemInfo,
|
2023-07-31 20:48:31 +08:00
|
|
|
BDW::capabilityTable};
|
2022-05-10 20:52:14 +08:00
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
GT_SYSTEM_INFO BdwHw1x2x6::gtSystemInfo = {0};
|
2023-11-16 22:24:12 +08:00
|
|
|
void BdwHw1x2x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const ReleaseHelper *releaseHelper) {
|
|
|
|
BDW::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, releaseHelper);
|
2022-05-10 20:52:14 +08:00
|
|
|
|
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 384;
|
|
|
|
gtSysInfo->L3BankCount = 2;
|
|
|
|
gtSysInfo->MaxFillRate = 8;
|
2017-12-21 07:45:38 +08:00
|
|
|
};
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo BdwHw1x3x6::hwInfo = {
|
2017-12-21 07:45:38 +08:00
|
|
|
&BDW::platform,
|
2019-03-28 22:34:26 +08:00
|
|
|
&BDW::featureTable,
|
|
|
|
&BDW::workaroundTable,
|
2022-06-02 23:10:04 +08:00
|
|
|
&BdwHw1x3x6::gtSystemInfo,
|
2023-07-31 20:48:31 +08:00
|
|
|
BDW::capabilityTable};
|
2022-06-02 23:10:04 +08:00
|
|
|
GT_SYSTEM_INFO BdwHw1x3x6::gtSystemInfo = {0};
|
2023-11-16 22:24:12 +08:00
|
|
|
void BdwHw1x3x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const ReleaseHelper *releaseHelper) {
|
|
|
|
BDW::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, releaseHelper);
|
2022-05-10 20:52:14 +08:00
|
|
|
|
2019-05-08 22:00:24 +08:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2017-12-21 07:45:38 +08:00
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 768;
|
|
|
|
gtSysInfo->L3BankCount = 4;
|
|
|
|
gtSysInfo->MaxFillRate = 8;
|
|
|
|
};
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo BdwHw1x3x8::hwInfo = {
|
2017-12-21 07:45:38 +08:00
|
|
|
&BDW::platform,
|
2019-03-28 22:34:26 +08:00
|
|
|
&BDW::featureTable,
|
|
|
|
&BDW::workaroundTable,
|
2022-06-02 23:10:04 +08:00
|
|
|
&BdwHw1x3x8::gtSystemInfo,
|
2023-07-31 20:48:31 +08:00
|
|
|
BDW::capabilityTable};
|
2022-06-02 23:10:04 +08:00
|
|
|
GT_SYSTEM_INFO BdwHw1x3x8::gtSystemInfo = {0};
|
2023-11-16 22:24:12 +08:00
|
|
|
void BdwHw1x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const ReleaseHelper *releaseHelper) {
|
|
|
|
BDW::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, releaseHelper);
|
2022-05-10 20:52:14 +08:00
|
|
|
|
2019-05-08 22:00:24 +08:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2017-12-21 07:45:38 +08:00
|
|
|
gtSysInfo->SliceCount = 1;
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 384;
|
|
|
|
gtSysInfo->L3BankCount = 2;
|
|
|
|
gtSysInfo->MaxFillRate = 8;
|
|
|
|
};
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo BdwHw2x3x8::hwInfo = {
|
2017-12-21 07:45:38 +08:00
|
|
|
&BDW::platform,
|
2019-03-28 22:34:26 +08:00
|
|
|
&BDW::featureTable,
|
|
|
|
&BDW::workaroundTable,
|
2022-06-02 23:10:04 +08:00
|
|
|
&BdwHw2x3x8::gtSystemInfo,
|
2023-07-31 20:48:31 +08:00
|
|
|
BDW::capabilityTable};
|
2022-06-02 23:10:04 +08:00
|
|
|
GT_SYSTEM_INFO BdwHw2x3x8::gtSystemInfo = {0};
|
2023-11-16 22:24:12 +08:00
|
|
|
void BdwHw2x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const ReleaseHelper *releaseHelper) {
|
|
|
|
BDW::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, releaseHelper);
|
2022-05-10 20:52:14 +08:00
|
|
|
|
2019-05-08 22:00:24 +08:00
|
|
|
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;
|
2017-12-21 07:45:38 +08:00
|
|
|
gtSysInfo->SliceCount = 2;
|
|
|
|
gtSysInfo->L3CacheSizeInKb = 1536;
|
|
|
|
gtSysInfo->L3BankCount = 8;
|
|
|
|
gtSysInfo->MaxFillRate = 16;
|
|
|
|
};
|
|
|
|
|
2022-06-02 23:10:04 +08:00
|
|
|
const HardwareInfo BDW::hwInfo = BdwHw1x3x8::hwInfo;
|
2018-10-04 18:44:49 +08:00
|
|
|
|
2023-11-16 22:24:12 +08:00
|
|
|
void setupBDWHardwareInfoImpl(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, uint64_t hwInfoConfig, const ReleaseHelper *releaseHelper) {
|
2020-01-25 00:19:06 +08:00
|
|
|
if (hwInfoConfig == 0x200030008) {
|
2023-11-16 22:24:12 +08:00
|
|
|
BdwHw2x3x8::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable, releaseHelper);
|
2020-01-25 00:19:06 +08:00
|
|
|
} else if (hwInfoConfig == 0x100030008) {
|
2023-11-16 22:24:12 +08:00
|
|
|
BdwHw1x3x8::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable, releaseHelper);
|
2020-01-25 00:19:06 +08:00
|
|
|
} else if (hwInfoConfig == 0x100030006) {
|
2023-11-16 22:24:12 +08:00
|
|
|
BdwHw1x3x6::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable, releaseHelper);
|
2020-01-25 00:19:06 +08:00
|
|
|
} else if (hwInfoConfig == 0x100020006) {
|
2023-11-16 22:24:12 +08:00
|
|
|
BdwHw1x2x6::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable, releaseHelper);
|
2020-01-25 00:19:06 +08:00
|
|
|
} else if (hwInfoConfig == 0x0) {
|
2018-10-04 18:44:49 +08:00
|
|
|
// Default config
|
2023-11-16 22:24:12 +08:00
|
|
|
BdwHw1x3x8::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable, releaseHelper);
|
2018-10-04 18:44:49 +08:00
|
|
|
} else {
|
|
|
|
UNRECOVERABLE_IF(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-16 22:24:12 +08:00
|
|
|
void (*BDW::setupHardwareInfo)(HardwareInfo *, bool, uint64_t, const ReleaseHelper *) = setupBDWHardwareInfoImpl;
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|