diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-11-14 20:41:01 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-11-14 21:00:26 +0000 |
commit | 0de9136dbbc9f6882bb375270eaddf1b999081bf (patch) | |
tree | 499c909d8225159858f7057cdc6fa3c50b1b3ddc /drivers/gpu/drm/i915/i915_drv.c | |
parent | 663f71e73ffd16327745f752269f5059bf196464 (diff) | |
download | blackbird-obmc-linux-0de9136dbbc9f6882bb375270eaddf1b999081bf.tar.gz blackbird-obmc-linux-0de9136dbbc9f6882bb375270eaddf1b999081bf.zip |
drm/i915/scheduler: Signal the arrival of a new request
The start of the scheduler, add a hook into request submission for the
scheduler to see the arrival of new requests and prepare its runqueues.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161114204105.29171-6-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 847794d387d6..874fe857a345 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c @@ -323,6 +323,10 @@ static int i915_getparam(struct drm_device *dev, void *data, */ value = i915_gem_mmap_gtt_version(); break; + case I915_PARAM_HAS_SCHEDULER: + value = dev_priv->engine[RCS] && + dev_priv->engine[RCS]->schedule; + break; case I915_PARAM_MMAP_VERSION: /* Remember to bump this if the version changes! */ case I915_PARAM_HAS_GEM: |