Enable KMD notify on Linux for BDW and SKL

Change-Id: I465c7610cb03860a28a7246e376ea8183d2aee9b
This commit is contained in:
Dunajski, Bartosz
2018-03-22 19:48:03 +01:00
committed by sys_ocldev
parent dc902ab0f1
commit 0e41bc7f71
7 changed files with 92 additions and 20 deletions

View File

@@ -69,11 +69,11 @@ const RuntimeCapabilityTable BDW::capabilityTable{
{false, false},
&isSimulationBDW,
true,
true, // forceStatelessCompilationFor32Bit
{false, 0, false, 0, false, 0}, // KmdNotifyProperties
false, // ftr64KBpages
EngineType::ENGINE_RCS, // defaultEngineType
MemoryConstants::pageSize //requiredPreemptionSurfaceSize
true, // forceStatelessCompilationFor32Bit
{true, 50000, true, 500, true, 200000}, // KmdNotifyProperties
false, // ftr64KBpages
EngineType::ENGINE_RCS, // defaultEngineType
MemoryConstants::pageSize //requiredPreemptionSurfaceSize
};
const HardwareInfo BDW_1x2x6::hwInfo = {

View File

@@ -104,6 +104,14 @@ int HwInfoConfigHw<IGFX_SKYLAKE>::configureHardwareCustom(HardwareInfo *hwInfo,
hwInfo->pPlatform->usDeviceID == ISKL_GT4_WRK_DEVICE_F0_ID) {
pSysInfo->EdramSizeInKb = 128 * 1024;
}
auto &kmdNotifyProperties = hwInfo->capabilityTable.kmdNotifyProperties;
kmdNotifyProperties.enableKmdNotify = true;
kmdNotifyProperties.enableQuickKmdSleep = true;
kmdNotifyProperties.enableQuickKmdSleepForSporadicWaits = true;
kmdNotifyProperties.delayKmdNotifyMicroseconds = 50000;
kmdNotifyProperties.delayQuickKmdSleepMicroseconds = 500;
kmdNotifyProperties.delayQuickKmdSleepForSporadicWaitsMicroseconds = 200000;
return 0;
}