OSDN Git Service

drm/i915: Only reset the pinned kernel contexts on resume
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 10 Apr 2019 19:01:20 +0000 (20:01 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 10 Apr 2019 20:18:11 +0000 (21:18 +0100)
commit9726920b7ea287673eead69e5276b3abff91fd8c
tree048fb270a33682849b973cc28a81a069e4b10444
parentfeb8846b3a4f88c8807dbbb8176defd419371887
drm/i915: Only reset the pinned kernel contexts on resume

On resume, we know that the only pinned contexts in danger of seeing
corruption are the kernel context, and so we do not need to walk the
list of all GEM contexts as we tracked them on each engine.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190410190120.830-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_context_types.h
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_lrc.h
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h