compute-runtime/opencl/source/gen9/linux/hw_info_config_kbl.inl

47 lines
1.4 KiB
Plaintext
Raw Normal View History

/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "helpers/hw_info.h"
#include "os_interface/hw_info_config.h"
namespace NEO {
template <>
int HwInfoConfigHw<IGFX_KABYLAKE>::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 = 1;
gtSystemInfo->VEBoxInfo.IsValid = true;
if (hwInfo->platform.usDeviceID == IKBL_GT3_28W_ULT_DEVICE_F0_ID ||
hwInfo->platform.usDeviceID == IKBL_GT3_15W_ULT_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_KABYLAKE>;
} // namespace NEO