drm/i915: Make LRC (un)pinning work on context and engine
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 28 Jan 2016 10:29:54 +0000 (10:29 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 28 Jan 2016 17:23:15 +0000 (17:23 +0000)
commite5292823c142c9873d7d18cf34e7d97fd8a38f86
tree5231d22ce51f350c32bd5386cddca428b678b12e
parentd9da6aa035c6dfdb003ff9776532b9b356d83f15
drm/i915: Make LRC (un)pinning work on context and engine

Previously intel_lr_context_(un)pin were operating on requests
which is in conflict with their names.

If we make them take a context and an engine, it makes the names
make more sense and it also makes future fixes possible.

v2: Rebase for default_context/kernel_context change.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Nick Hoath <nicholas.hoath@intel.com>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_lrc.h