mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
performance: Allow power efficient waits with ULLS light
Resolves: HSD-18041633458 Related-To: NEO-13922 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a93cecac36
commit
61fe9ebb8f
@@ -50,6 +50,7 @@ class DrmDirectSubmission : public DirectSubmissionHw<GfxFamily, Dispatcher> {
|
||||
|
||||
constexpr static size_t ullsLightTimeout = 2'000'000;
|
||||
std::chrono::steady_clock::time_point lastUllsLightExecTimestamp{};
|
||||
int boHandleForExec = 0;
|
||||
|
||||
std::vector<BufferObject *> residency{};
|
||||
std::vector<ExecObject> execObjectsStorage{};
|
||||
|
||||
@@ -144,6 +144,7 @@ bool DrmDirectSubmission<GfxFamily, Dispatcher>::submit(uint64_t gpuAddress, siz
|
||||
this->handleResidency();
|
||||
} else {
|
||||
this->lastUllsLightExecTimestamp = std::chrono::steady_clock::now();
|
||||
this->boHandleForExec = bb->peekHandle();
|
||||
}
|
||||
|
||||
auto currentBase = this->ringCommandStream.getGraphicsAllocation()->getGpuAddress();
|
||||
@@ -257,7 +258,7 @@ uint64_t DrmDirectSubmission<GfxFamily, Dispatcher>::updateTagValue(bool require
|
||||
this->currentTagData.tagValue++;
|
||||
this->ringBuffers[this->currentRingBuffer].completionFence = this->currentTagData.tagValue;
|
||||
}
|
||||
return 0ull;
|
||||
return boHandleForExec;
|
||||
}
|
||||
|
||||
template <typename GfxFamily, typename Dispatcher>
|
||||
|
||||
Reference in New Issue
Block a user