[Intel-xe] [PATCH 03/10] drm/i915: Implement fence->set_deadline.
Maarten Lankhorst
maarten.lankhorst at linux.intel.com
Wed Oct 25 10:20:38 UTC 2023
Useful when we want to start using it in display.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
drivers/gpu/drm/i915/i915_request.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c
index f59081066a197..72e6d0e705231 100644
--- a/drivers/gpu/drm/i915/i915_request.c
+++ b/drivers/gpu/drm/i915/i915_request.c
@@ -105,6 +105,14 @@ static signed long i915_fence_wait(struct dma_fence *fence,
timeout);
}
+static void i915_fence_set_deadline(struct dma_fence *fence,
+ ktime_t deadline)
+{
+ struct i915_sched_attr attr = { .priority = I915_PRIORITY_DISPLAY };
+
+ i915_gem_fence_wait_priority(fence, &attr);
+}
+
struct kmem_cache *i915_request_slab_cache(void)
{
return slab_requests;
@@ -177,6 +185,7 @@ const struct dma_fence_ops i915_fence_ops = {
.enable_signaling = i915_fence_enable_signaling,
.signaled = i915_fence_signaled,
.wait = i915_fence_wait,
+ .set_deadline = i915_fence_set_deadline,
.release = i915_fence_release,
};
--
2.39.2
More information about the Intel-xe
mailing list