2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2019-01-22 17:24:28 +08:00
|
|
|
* Copyright (C) 2017-2019 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
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "runtime/gen_common/hw_cmds.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
#include "runtime/helpers/hw_info.h"
|
2018-03-15 22:03:51 +08:00
|
|
|
#include "runtime/os_interface/hw_info_config.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
|
|
|
|
|
|
|
template <>
|
|
|
|
int HwInfoConfigHw<IGFX_SKYLAKE>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) {
|
|
|
|
FeatureTable *pSkuTable = const_cast<FeatureTable *>(hwInfo->pSkuTable);
|
|
|
|
GT_SYSTEM_INFO *pSysInfo = const_cast<GT_SYSTEM_INFO *>(hwInfo->pSysInfo);
|
|
|
|
WorkaroundTable *pWaTable = const_cast<WorkaroundTable *>(hwInfo->pWaTable);
|
|
|
|
|
|
|
|
if (pSysInfo->SubSliceCount > 3) {
|
|
|
|
pSysInfo->SliceCount = 2;
|
|
|
|
} else {
|
|
|
|
pSysInfo->SliceCount = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
pSysInfo->VEBoxInfo.Instances.Bits.VEBox0Enabled = 1;
|
|
|
|
pSysInfo->VDBoxInfo.Instances.Bits.VDBox0Enabled = 1;
|
|
|
|
pSysInfo->VEBoxInfo.IsValid = true;
|
|
|
|
pSysInfo->VDBoxInfo.IsValid = true;
|
2019-01-22 17:24:28 +08:00
|
|
|
pSkuTable->ftrGpGpuMidBatchPreempt = true;
|
|
|
|
pSkuTable->ftrGpGpuThreadGroupLevelPreempt = true;
|
2019-03-22 13:21:52 +08:00
|
|
|
pSkuTable->ftrGpGpuMidThreadLevelPreempt = true;
|
2019-01-22 17:24:28 +08:00
|
|
|
pSkuTable->ftr3dMidBatchPreempt = true;
|
|
|
|
pSkuTable->ftr3dObjectLevelPreempt = true;
|
|
|
|
pSkuTable->ftrPerCtxtPreemptionGranularityControl = true;
|
|
|
|
pSkuTable->ftrPPGTT = true;
|
|
|
|
pSkuTable->ftrSVM = true;
|
|
|
|
pSkuTable->ftrL3IACoherency = true;
|
|
|
|
pSkuTable->ftrIA32eGfxPTEs = true;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-01-22 17:24:28 +08:00
|
|
|
pSkuTable->ftrDisplayYTiling = true;
|
|
|
|
pSkuTable->ftrTranslationTable = true;
|
|
|
|
pSkuTable->ftrUserModeTranslationTable = true;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-01-22 17:24:28 +08:00
|
|
|
pSkuTable->ftrEnableGuC = true;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-01-22 17:24:28 +08:00
|
|
|
pSkuTable->ftrFbc = true;
|
|
|
|
pSkuTable->ftrFbc2AddressTranslation = true;
|
|
|
|
pSkuTable->ftrFbcBlitterTracking = true;
|
|
|
|
pSkuTable->ftrFbcCpuTracking = true;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
pSkuTable->ftrVcs2 = pSkuTable->ftrGT3 || pSkuTable->ftrGT4;
|
2019-01-22 17:24:28 +08:00
|
|
|
pSkuTable->ftrVEBOX = true;
|
2017-12-21 07:45:38 +08:00
|
|
|
pSkuTable->ftrSingleVeboxSlice = pSkuTable->ftrGT1 || pSkuTable->ftrGT2;
|
2019-01-22 17:24:28 +08:00
|
|
|
pSkuTable->ftrTileY = true;
|
|
|
|
|
|
|
|
pWaTable->waEnablePreemptionGranularityControlByUMD = true;
|
|
|
|
pWaTable->waSendMIFLUSHBeforeVFE = true;
|
|
|
|
pWaTable->waReportPerfCountUseGlobalContextID = true;
|
|
|
|
pWaTable->waDisableLSQCROPERFforOCL = true;
|
|
|
|
pWaTable->waMsaa8xTileYDepthPitchAlignment = true;
|
|
|
|
pWaTable->waLosslessCompressionSurfaceStride = true;
|
|
|
|
pWaTable->waFbcLinearSurfaceStride = true;
|
|
|
|
pWaTable->wa4kAlignUVOffsetNV12LinearSurface = true;
|
|
|
|
pWaTable->waEncryptedEdramOnlyPartials = true;
|
|
|
|
pWaTable->waDisableEdramForDisplayRT = true;
|
|
|
|
pWaTable->waForcePcBbFullCfgRestore = true;
|
|
|
|
pWaTable->waSamplerCacheFlushBetweenRedescribedSurfaceReads = true;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
if ((1 << hwInfo->pPlatform->usRevId) & 0x0eu) {
|
2019-01-22 17:24:28 +08:00
|
|
|
pWaTable->waCompressedResourceRequiresConstVA21 = true;
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
|
|
|
if ((1 << hwInfo->pPlatform->usRevId) & 0x0fu) {
|
2019-01-22 17:24:28 +08:00
|
|
|
pWaTable->waDisablePerCtxtPreemptionGranularityControl = true;
|
|
|
|
pWaTable->waModifyVFEStateAfterGPGPUPreemption = true;
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
2018-01-05 00:48:46 +08:00
|
|
|
if ((1 << hwInfo->pPlatform->usRevId) & 0x3f) {
|
2019-01-22 17:24:28 +08:00
|
|
|
pWaTable->waCSRUncachable = true;
|
2018-01-05 00:48:46 +08:00
|
|
|
}
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
if (hwInfo->pPlatform->usDeviceID == ISKL_GT3e_ULT_DEVICE_F0_ID_540 ||
|
|
|
|
hwInfo->pPlatform->usDeviceID == ISKL_GT3e_ULT_DEVICE_F0_ID_550 ||
|
|
|
|
hwInfo->pPlatform->usDeviceID == ISKL_GT3_MEDIA_SERV_DEVICE_F0_ID) {
|
|
|
|
pSysInfo->EdramSizeInKb = 64 * 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (hwInfo->pPlatform->usDeviceID == ISKL_GT4_HALO_MOBL_DEVICE_F0_ID ||
|
|
|
|
hwInfo->pPlatform->usDeviceID == ISKL_GT4_WRK_DEVICE_F0_ID) {
|
|
|
|
pSysInfo->EdramSizeInKb = 128 * 1024;
|
|
|
|
}
|
2018-03-23 02:48:03 +08:00
|
|
|
|
|
|
|
auto &kmdNotifyProperties = hwInfo->capabilityTable.kmdNotifyProperties;
|
|
|
|
kmdNotifyProperties.enableKmdNotify = true;
|
|
|
|
kmdNotifyProperties.enableQuickKmdSleep = true;
|
|
|
|
kmdNotifyProperties.enableQuickKmdSleepForSporadicWaits = true;
|
|
|
|
kmdNotifyProperties.delayKmdNotifyMicroseconds = 50000;
|
2018-04-04 14:49:24 +08:00
|
|
|
kmdNotifyProperties.delayQuickKmdSleepMicroseconds = 5000;
|
2018-03-23 02:48:03 +08:00
|
|
|
kmdNotifyProperties.delayQuickKmdSleepForSporadicWaitsMicroseconds = 200000;
|
2017-12-21 07:45:38 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-04-05 00:38:36 +08:00
|
|
|
template class HwInfoConfigHw<IGFX_SKYLAKE>;
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|