performance: Stop ULLS in bo::wait only when light mode active

Resolves: HSD-18041491739

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2025-02-13 14:14:28 +00:00
committed by Compute-Runtime-Automation
parent 1533f07912
commit a78e3f98d5
3 changed files with 29 additions and 3 deletions

View File

@@ -866,8 +866,10 @@ int Drm::waitHandle(uint32_t waitHandle, int64_t timeout) {
const auto &mulitEngines = this->rootDeviceEnvironment.executionEnvironment.memoryManager->getRegisteredEngines();
for (const auto &engines : mulitEngines) {
for (const auto &engine : engines) {
auto lock = engine.commandStreamReceiver->obtainUniqueOwnership();
engine.commandStreamReceiver->stopDirectSubmission(false);
if (engine.osContext->isDirectSubmissionLightActive()) {
auto lock = engine.commandStreamReceiver->obtainUniqueOwnership();
engine.commandStreamReceiver->stopDirectSubmission(false);
}
}
}
}