performance: add low latency hint for i915

i915 has provided the low latency hint interface, it helps
improve the performance for light workload a lot.

Related-To: NEO-14250

Signed-off-by: Chuansheng Liu <chuansheng.liu@intel.com>
This commit is contained in:
Chuansheng Liu
2025-02-26 07:46:54 +00:00
committed by Compute-Runtime-Automation
parent 7d851dda87
commit 1876a43024
8 changed files with 56 additions and 3 deletions

View File

@@ -238,6 +238,8 @@ class IoctlHelper {
virtual uint32_t getNumProcesses() const { return 1; }
virtual bool makeResidentBeforeLockNeeded() const { return false; }
virtual bool hasContextFreqHint() { return false; }
virtual void fillExtSetparamLowLatency(GemContextCreateExtSetParam &extSetparam) { return; }
protected:
Drm &drm;
@@ -274,6 +276,8 @@ class IoctlHelperI915 : public IoctlHelper {
bool setGpuCpuTimes(TimeStampData *pGpuCpuTime, OSTime *osTime) override;
void insertEngineToContextParams(ContextParamEngines<> &contextParamEngines, uint32_t engineId, const EngineClassInstance *engineClassInstance, uint32_t tileId, bool hasVirtualEngines) override;
int getTileIdFromGtId(int gtId) const override { return -1; }
bool hasContextFreqHint() override;
void fillExtSetparamLowLatency(GemContextCreateExtSetParam &extSetparam) override;
protected:
virtual std::vector<MemoryRegion> translateToMemoryRegions(const std::vector<uint64_t> &regionInfo);