OSDN Git Service

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)
commitbf64e0b00e1ff30449cc68e7bc7498adb6faa343
tree301974edfd4d89d16eea660b6a36199846910ce5
parent1f181225f8ec4ca59b53239aa06475d7c5b936b3
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