mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 07:14:10 +08:00
Change-Id: I85f56b677bafdd75dd958b488522393fc18b68af Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
47 lines
1.4 KiB
C++
47 lines
1.4 KiB
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/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
|