performance: Improve ULLS light residency management

-skip bo::wait if completion fence not needed
-do not restart exec on evict

Related-To: NEO-13922

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2025-03-24 13:59:38 +00:00
committed by Compute-Runtime-Automation
parent 4e9e995dca
commit 35eae3f977
3 changed files with 15 additions and 3 deletions

View File

@@ -852,7 +852,7 @@ HWTEST_F(DrmDirectSubmissionTest, givenDirectSubmissionLightWhenExecTimeoutReach
ResidencyContainer residencyContainer{};
batchBuffer.allocationsForResidency = &residencyContainer;
drmDirectSubmission.ringStart = true;
static_cast<DrmMemoryOperationsHandler *>(executionEnvironment.rootDeviceEnvironments[device->getRootDeviceIndex()]->memoryOperationsInterface.get())->obtainAndResetNewResourcesSinceLastRingSubmit();
EXPECT_TRUE(static_cast<DrmMemoryOperationsHandler *>(executionEnvironment.rootDeviceEnvironments[device->getRootDeviceIndex()]->memoryOperationsInterface.get())->obtainAndResetNewResourcesSinceLastRingSubmit());
drmDirectSubmission.lastUllsLightExecTimestamp = std::chrono::steady_clock::time_point{};
drmDirectSubmission.cpuTimePointReturnValue = std::chrono::time_point<std::chrono::steady_clock>::max();
@@ -871,6 +871,7 @@ HWTEST_F(DrmDirectSubmissionTest, givenDirectSubmissionLightWhenExecTimeoutReach
drmDirectSubmission.ringStart = false;
executionEnvironment.memoryManager->freeGraphicsMemory(commandBuffer);
EXPECT_FALSE(static_cast<DrmMemoryOperationsHandler *>(executionEnvironment.rootDeviceEnvironments[device->getRootDeviceIndex()]->memoryOperationsInterface.get())->obtainAndResetNewResourcesSinceLastRingSubmit());
}
HWTEST_F(DrmDirectSubmissionTest, givenDirectSubmissionLightWhenNoRegisteredResourcesThenNoRestart) {