compute-runtime/shared/source/gen9/linux/hw_info_config_kbl.cpp

49 lines
1.5 KiB
C++

/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/hw_info.h"
#include "shared/source/os_interface/hw_info_config.h"
#include "shared/source/os_interface/hw_info_config.inl"
#include "shared/source/os_interface/hw_info_config_bdw_and_later.inl"
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 == 0x5927 ||
hwInfo->platform.usDeviceID == 0x5926) {
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