]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Drop inspection of execbuf flags during evict
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Mar 2020 20:43:43 +0000 (20:43 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Mar 2020 21:52:51 +0000 (21:52 +0000)
commit9383048123c351d7f54cb3c78c60f8b720a9dfdc
tree8ea16c1751f08a624a0d37d053633a7d17a3f041
parentd403b225d6f0b20a0913edd7399953dbd7073ff3
drm/i915: Drop inspection of execbuf flags during evict

With the goal of removing the serialisation from around execbuf, we will
no longer have the privilege of there being a single execbuf in flight
at any time and so will only be able to inspect the user's flags within
the carefully controlled execbuf context. i915_gem_evict_for_node() is
the only user outside of execbuf that currently peeks at the flag to
convert an overlapping softpinned request from ENOSPC to EINVAL. Retract
this nicety and only report ENOSPC if the location is in current use,
either due to this execbuf or another.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200303204345.1859734-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
drivers/gpu/drm/i915/i915_gem_evict.c