]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Expand I915_PARAM_HAS_SCHEDULER into a capability bitmask
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Oct 2017 20:34:51 +0000 (21:34 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 4 Oct 2017 16:52:46 +0000 (17:52 +0100)
commit01ba5f8a2c3f0d10314564f45820804d79745351
tree301974edfd4d89d16eea660b6a36199846910ce5
parent587e049f3e7a1c378d43c4890e925dfe2948d887
drm/i915: Expand I915_PARAM_HAS_SCHEDULER into a capability bitmask

In the next few patches, we wish to enable different features for the
scheduler, some which may subtlety change ABI (e.g. allow requests to be
reordered under different circumstances). So we need to make sure
userspace is cognizant of the changes (if they care), by which we employ
the usual method of a GETPARAM. We already have an
I915_PARAM_HAS_SCHEDULER (which notes the existing ability to reorder
requests to avoid bubbles), and now we wish to extend that to be a
bitmask to describe the different capabilities implemented.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171003203453.15692-7-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c
include/uapi/drm/i915_drm.h