mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 10:55:15 +07:00
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) Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190719153322.10464-1-michal.wajdeczko@intel.com
This commit is contained in:
parent
6b5f3cb1aa
commit
5cad0ddf4b
@ -1116,7 +1116,7 @@ static int gen8_ppgtt_alloc(struct i915_address_space *vm,
|
|||||||
|
|
||||||
err = __gen8_ppgtt_alloc(vm, i915_vm_to_ppgtt(vm)->pd,
|
err = __gen8_ppgtt_alloc(vm, i915_vm_to_ppgtt(vm)->pd,
|
||||||
&start, start + length, vm->top);
|
&start, start + length, vm->top);
|
||||||
if (unlikely(err))
|
if (unlikely(err && from != start))
|
||||||
__gen8_ppgtt_clear(vm, i915_vm_to_ppgtt(vm)->pd,
|
__gen8_ppgtt_clear(vm, i915_vm_to_ppgtt(vm)->pd,
|
||||||
from, start, vm->top);
|
from, start, vm->top);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user