Fix problem with compression hang on gen12lp

add creating of pageTableManager for non regular engins

Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2021-10-06 12:42:30 +00:00
committed by Compute-Runtime-Automation
parent 92bf4b978a
commit a157963e79
5 changed files with 9 additions and 25 deletions

View File

@@ -668,12 +668,9 @@ bool CommandStreamReceiver::expectMemory(const void *gfxAddress, const void *src
return (isMemoryEqual == isEqualMemoryExpected);
}
bool CommandStreamReceiver::needsPageTableManager(EngineUsage engineTypeUsage) const {
bool CommandStreamReceiver::needsPageTableManager() const {
auto hwInfo = executionEnvironment.rootDeviceEnvironments[rootDeviceIndex]->getHardwareInfo();
if (engineTypeUsage != EngineUsage::Regular) {
return false;
}
if (pageTableManager.get() != nullptr) {
return false;
}

View File

@@ -104,7 +104,7 @@ class CommandStreamReceiver {
ResidencyContainer &getEvictionAllocations();
virtual GmmPageTableMngr *createPageTableManager() { return nullptr; }
bool needsPageTableManager(EngineUsage engineTypeUsage) const;
bool needsPageTableManager() const;
void waitForTaskCountAndCleanAllocationList(uint32_t requiredTaskCount, uint32_t allocationUsage);
MOCKABLE_VIRTUAL void waitForTaskCountAndCleanTemporaryAllocationList(uint32_t requiredTaskCount);

View File

@@ -317,7 +317,7 @@ bool Device::createEngine(uint32_t deviceCsrIndex, EngineTypeUsage engineTypeUsa
commandStreamReceiver->initializeDefaultsForInternalEngine();
}
if (commandStreamReceiver->needsPageTableManager(engineUsage)) {
if (commandStreamReceiver->needsPageTableManager()) {
commandStreamReceiver->createPageTableManager();
}