Files
compute-runtime/runtime/gen9/linux/hw_info_config_cfl.inl
Mateusz Jablonski 54f65c0243 Move headers to core
- hw_info
- hw_cmds
- kmd_notify_properties
- completion_stamp
- bxml_generator_glue

Related-To: NEO-3982
Change-Id: I3ed3ef81f42596f381e60c19250f6eb1296d47a4
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-12-02 14:20:45 +01:00

47 lines
1.4 KiB
C++

/*
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/helpers/hw_info.h"
#include "runtime/os_interface/hw_info_config.h"
namespace NEO {
template <>
int HwInfoConfigHw<IGFX_COFFEELAKE>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) {
if (nullptr == osIface) {
return 0;
}
GT_SYSTEM_INFO *gtSystemInfo = &hwInfo->gtSystemInfo;
if (gtSystemInfo->SubSliceCount > 3) {
gtSystemInfo->SliceCount = 2;
} else {
gtSystemInfo->SliceCount = 1;
}
gtSystemInfo->VEBoxInfo.Instances.Bits.VEBox0Enabled = true;
gtSystemInfo->VEBoxInfo.IsValid = true;
if (hwInfo->platform.usDeviceID == ICFL_GT3_ULT_28W_DEVICE_F0_ID ||
hwInfo->platform.usDeviceID == ICFL_GT3_ULT_15W_DEVICE_F0_ID) {
gtSystemInfo->EdramSizeInKb = 64 * 1024;
}
auto &kmdNotifyProperties = hwInfo->capabilityTable.kmdNotifyProperties;
kmdNotifyProperties.enableKmdNotify = true;
kmdNotifyProperties.enableQuickKmdSleep = true;
kmdNotifyProperties.enableQuickKmdSleepForSporadicWaits = true;
kmdNotifyProperties.delayKmdNotifyMicroseconds = 50000;
kmdNotifyProperties.delayQuickKmdSleepMicroseconds = 5000;
kmdNotifyProperties.delayQuickKmdSleepForSporadicWaitsMicroseconds = 200000;
return 0;
}
template class HwInfoConfigHw<IGFX_COFFEELAKE>;
} // namespace NEO