drm/i915/gtt: Don't try to clear failed empty pd allocation
Subsystems (2)
PATCH 1/1 drm/i915/gtt: Don't try to clear failed empty pd allocation
When __gen8_ppgtt_alloc fails without allocating anything we should not try to call __gen8_ppgtt_clear as there is nothing to clear and underlying code will complain with:
[ 157.861645] gen8_pd_range:881 GEM_BUG_ON(start >= end)
--- drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_gem_gtt.c +1 -1
@@ -1115,7 +1115,7 @@ static int gen8_ppgtt_alloc(struct i915_address_space *vm, err =__gen8_ppgtt_alloc (vm,i915_vm_to_ppgtt (vm)->pd, &start, start + length, vm->top); -if (unlikely (err)) +if (unlikely (err && from != start))__gen8_ppgtt_clear (vm,i915_vm_to_ppgtt (vm)->pd, from, start, vm->top);
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Michal Wajdeczko (2019-07-19 16:33:22)
Quoted 18 lines
When
__gen8_ppgtt_allocfails without allocating anything we should not try to call__gen8_ppgtt_clearas there is nothing to clear and underlying code will complain with:[ 157.861645] gen8_pd_range:881 GEM_BUG_ON(start >= end)Signed-off-by Michal Wajdeczko <[email protected]>Cc Chris Wilson <[email protected]>Cc Tvrtko Ursulin <[email protected]>--- drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/i915_gem_gtt.c +0
-0
drivers/gpu/drm/i915/i915_gem_gtt.c static int gen8_ppgtt_alloc(struct i915_address_space *vm, · line 1120
Quoted 7 lines
drivers/gpu/drm/i915/i915_gem_gtt.c +1
-1@@ -1115,7 +1115,7 @@ static int gen8_ppgtt_alloc(struct i915_address_space *vm, err =__gen8_ppgtt_alloc (vm,i915_vm_to_ppgtt (vm)->pd, &start, start + length, vm->top); -if (unlikely (err)) +if (unlikely (err && from != start))__gen8_ppgtt_clear (vm,i915_vm_to_ppgtt (vm)->pd, from, start, vm->top);
Ugh. Everyone's favourite error today.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915/gtt: Don't try to clear failed empty pd allocation
In reply to Michal Wajdeczko== Series Details ==
== Series Details ==
Series: drm/i915/gtt: Don't try to clear failed empty pd allocation
URL : https://patchwork.freedesktop.org/series/63950/
State : failure
== Summary ==
Applying: drm/i915/gtt: Don't try to clear failed empty pd allocation Using index info to reconstruct a base tree...
M drivers/gpu/drm/i915/i915_gem_gtt.c
Falling back to patching base and 3-way merge... Auto-merging drivers/gpu/drm/i915/i915_gem_gtt.c
No changes -- Patch already applied.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx