drm/i915: Use new i915_gem_object_pin_map for LRC
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 12 Apr 2016 14:40:42 +0000 (15:40 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 13 Apr 2016 09:47:54 +0000 (10:47 +0100)
commit7d774cacf0b5d9fc4abac00fd25df09d019619f9
treea57731fed0a049f4cf0f4171a80a9358cd2e510e
parent04794adbdde0008215748414e63a5c3734e1f9fc
drm/i915: Use new i915_gem_object_pin_map for LRC

We can use the new pin/lazy unpin API for simplicity
and more performance in the execlist submission paths.

v2:
  * Fix error handling and convert more users.
  * Compact some names for readability.

v3:
  * intel_lr_context_free was not unpinning.
  * Special case for GPU reset which otherwise unbalances
    the HWS object pages pin count by running the engine
    initialization only (not destructors).

v4:
  * Rebased on top of hws setup/init split.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1460472042-1998-1-git-send-email-tvrtko.ursulin@linux.intel.com
[tursulin: renames: s/hwd/hws/, s/obj_addr/vaddr/]
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_lrc.h
This page took 0.025587 seconds and 5 git commands to generate.