]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/lrc: Clear context restore/save inhibit flags for new contexts
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 25 Jan 2018 11:24:42 +0000 (11:24 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 25 Jan 2018 18:04:25 +0000 (18:04 +0000)
commit1aff9f4b24e4871c57c4ffdee156d2676ec6f6e1
tree094932edd1887247eae3865f74423f4fa19b07e5
parent78af8235e5d4d24ebdc6058d3f635c9ff8de4d40
drm/i915/lrc: Clear context restore/save inhibit flags for new contexts

CTX_CONTEXT_CONTROL (CTX_SR_CTL) operates as a masked register and so
will only apply the bits that are selected by the upper half. In the
case of selectively enabling sr inhibit, this may mean the context keeps
the current setting (so forgetting to save the context later, eventually
leading to a very upset GPU!).

Fixes: 9cda1d30a271 ("drm/i915/execlists: Inhibit context save/restore for the fake preempt context")
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: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180125112443.12745-1-chris@chris-wilson.co.uk
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
drivers/gpu/drm/i915/intel_lrc.c