]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Restore check for invalid vma for fencing
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Mar 2020 20:54:50 +0000 (20:54 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 17 Mar 2020 00:22:34 +0000 (00:22 +0000)
commit5ac7d199fa270d6a2b9420a2519341dd46562374
tree6cbd5d87cb6ca69305d08edb3c3d978960b8d02a
parent1e722e68fbf1daacaedfe433d354c5917490fad9
drm/i915/gt: Restore check for invalid vma for fencing

Apparently we do try and attach a fence to an invalid vma (during
execbuf) so we cannot simply assert it never happens and report EINVAL
instead.

Fixes: 90fe24a83fba ("drm/i915/gt: Pull restoration of GGTT fences underneath the GT")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200316205450.15843-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c