Reorganization directory structure [1/n]

Change-Id: Id1a94577437a4826a32411869f516fec20314ec0
This commit is contained in:
kamdiedrich
2020-02-22 21:54:11 +01:00
parent 247cc953d1
commit fa8e720f9e
660 changed files with 3 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "command_stream/command_stream_receiver_with_aub_dump.inl"
#include "os_interface/linux/device_command_stream.inl"
#include "os_interface/linux/drm_command_stream.inl"
#include "os_interface/linux/drm_command_stream_bdw_plus.inl"
namespace NEO {
template class DeviceCommandStreamReceiver<SKLFamily>;
template class DrmCommandStreamReceiver<SKLFamily>;
template class CommandStreamReceiverWithAUBDump<DrmCommandStreamReceiver<SKLFamily>>;
} // namespace NEO

View File

@@ -0,0 +1,66 @@
/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/helpers/hw_info.h"
#include "core/os_interface/hw_info_config.h"
#include "core/os_interface/linux/drm_neo.h"
#include "core/os_interface/linux/os_interface.h"
namespace NEO {
template <>
int HwInfoConfigHw<IGFX_BROXTON>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) {
if (nullptr == osIface) {
return 0;
}
Drm *drm = osIface->get()->getDrm();
FeatureTable *featureTable = &hwInfo->featureTable;
GT_SYSTEM_INFO *gtSystemInfo = &hwInfo->gtSystemInfo;
gtSystemInfo->SliceCount = 1;
gtSystemInfo->VEBoxInfo.Instances.Bits.VEBox0Enabled = 1;
gtSystemInfo->VEBoxInfo.IsValid = true;
int enabled = 0;
int retVal = drm->getEnabledPooledEu(enabled);
if (retVal == 0) {
featureTable->ftrPooledEuEnabled = (enabled != 0);
}
if (enabled) {
int num = 0;
retVal = drm->getMinEuInPool(num);
if (retVal == 0 && ((num == 3) || (num == 6) || (num == 9))) {
gtSystemInfo->EuCountPerPoolMin = static_cast<uint32_t>(num);
}
//in case of failure or not getting right values, fallback to default
else {
if (gtSystemInfo->SubSliceCount == 3) {
// Native 3x6, PooledEU 2x9
gtSystemInfo->EuCountPerPoolMin = 9;
} else {
// Native 3x6 fused down to 2x6, PooledEU worst case 3+9
gtSystemInfo->EuCountPerPoolMin = 3;
}
}
gtSystemInfo->EuCountPerPoolMax = gtSystemInfo->EUCount - gtSystemInfo->EuCountPerPoolMin;
}
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_BROXTON>;
} // namespace NEO

View File

@@ -0,0 +1,46 @@
/*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/helpers/hw_info.h"
#include "core/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

View File

@@ -0,0 +1,25 @@
/*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/os_interface/hw_info_config.inl"
#include "core/os_interface/hw_info_config_bdw_plus.inl"
#ifdef SUPPORT_BXT
#include "hw_info_config_bxt.inl"
#endif
#ifdef SUPPORT_CFL
#include "hw_info_config_cfl.inl"
#endif
#ifdef SUPPORT_GLK
#include "hw_info_config_glk.inl"
#endif
#ifdef SUPPORT_KBL
#include "hw_info_config_kbl.inl"
#endif
#ifdef SUPPORT_SKL
#include "hw_info_config_skl.inl"
#endif

View File

@@ -0,0 +1,64 @@
/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/helpers/hw_info.h"
#include "core/os_interface/hw_info_config.h"
#include "core/os_interface/linux/drm_neo.h"
#include "core/os_interface/linux/os_interface.h"
namespace NEO {
template <>
int HwInfoConfigHw<IGFX_GEMINILAKE>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) {
if (nullptr == osIface) {
return 0;
}
Drm *drm = osIface->get()->getDrm();
FeatureTable *featureTable = &hwInfo->featureTable;
GT_SYSTEM_INFO *gtSystemInfo = &hwInfo->gtSystemInfo;
gtSystemInfo->VEBoxInfo.Instances.Bits.VEBox0Enabled = 1;
gtSystemInfo->VEBoxInfo.IsValid = true;
int enabled = 0;
int retVal = drm->getEnabledPooledEu(enabled);
if (retVal == 0) {
featureTable->ftrPooledEuEnabled = (enabled != 0);
}
if (enabled) {
int num = 0;
retVal = drm->getMinEuInPool(num);
if (retVal == 0 && ((num == 3) || (num == 6) || (num == 9))) {
gtSystemInfo->EuCountPerPoolMin = static_cast<uint32_t>(num);
}
//in case of failure or not getting right values, fallback to default
else {
if (gtSystemInfo->SubSliceCount == 3) {
// Native 3x6, PooledEU 2x9
gtSystemInfo->EuCountPerPoolMin = 9;
} else {
// Native 3x6 fused down to 2x6, PooledEU worst case 3+9
gtSystemInfo->EuCountPerPoolMin = 3;
}
}
gtSystemInfo->EuCountPerPoolMax = gtSystemInfo->EUCount - gtSystemInfo->EuCountPerPoolMin;
}
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_GEMINILAKE>;
} // namespace NEO

View File

@@ -0,0 +1,46 @@
/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/helpers/hw_info.h"
#include "core/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

View File

@@ -0,0 +1,54 @@
/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/helpers/hw_cmds.h"
#include "core/helpers/hw_info.h"
#include "core/os_interface/hw_info_config.h"
namespace NEO {
template <>
int HwInfoConfigHw<IGFX_SKYLAKE>::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->VDBoxInfo.Instances.Bits.VDBox0Enabled = 1;
gtSystemInfo->VEBoxInfo.IsValid = true;
gtSystemInfo->VDBoxInfo.IsValid = true;
if (hwInfo->platform.usDeviceID == ISKL_GT3e_ULT_DEVICE_F0_ID_540 ||
hwInfo->platform.usDeviceID == ISKL_GT3e_ULT_DEVICE_F0_ID_550 ||
hwInfo->platform.usDeviceID == ISKL_GT3_MEDIA_SERV_DEVICE_F0_ID) {
gtSystemInfo->EdramSizeInKb = 64 * 1024;
}
if (hwInfo->platform.usDeviceID == ISKL_GT4_HALO_MOBL_DEVICE_F0_ID ||
hwInfo->platform.usDeviceID == ISKL_GT4_WRK_DEVICE_F0_ID) {
gtSystemInfo->EdramSizeInKb = 128 * 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_SKYLAKE>;
} // namespace NEO