drm/i915/execlists: Inhibit context save/restore for the fake preempt context
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 23 Jan 2018 21:04:12 +0000 (21:04 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 24 Jan 2018 09:40:15 +0000 (09:40 +0000)
commit517aaffe0c1b54b4f732e872a89681c650d3527f
tree9fab181f5229b1f3bd1441ea086372ab21df9d99
parent578f1ac689b185b602a0e02613714419a2a45e67
drm/i915/execlists: Inhibit context save/restore for the fake preempt context

We only use the preempt context to inject an idle point into execlists.
We never need to reference its logical state, so tell the GPU never to
load it or save it.

v2: BIT(2) for save-inhibit.

N.B. Daniele mentioned this bit mbz for ICL, and has been moved into the
submission process rather than the context image.

Suggested-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michal Winiarski <michal.winiarski@intel.com>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180123210412.17653-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_lrc.h