[Intel-gfx] [PATCH 11/16] drm/i915: not finding a fence is a non-recoverable condition
Chris Wilson
chris at chris-wilson.co.uk
Thu May 12 23:17:19 CEST 2011
From: Daniel Vetter <daniel.vetter at ffwll.ch>
This happens in two cases:
- userspace got its fence accounting wrong or
- the kernel got its fence accounting wrong.
In both cases there's absolutely no point in calling evict_everything,
that will not magically bring back the missing fence. So return a
different (hopefully somewhat sensible) error code.
This has the added benefit that out-of-gtt can be distinguish from
broken fence accounting by simply looking at the ioctl return code.
Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
drivers/gpu/drm/i915/i915_gem.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 67ddda0..dd0cfac 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -2663,7 +2663,7 @@ i915_gem_object_get_fence(struct drm_i915_gem_object *obj,
reg = i915_find_fence_reg(dev, pipelined);
if (reg == NULL)
- return -ENOSPC;
+ return -EDEADLK;
ret = i915_gem_object_flush_fence(obj, pipelined);
if (ret)
--
1.7.5.1
More information about the Intel-gfx
mailing list