]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move the irq_barrier for reset earlier into reset_prepare
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Feb 2017 18:52:14 +0000 (18:52 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Feb 2017 21:10:51 +0000 (21:10 +0000)
commit85eaf1e1b299f92a41e5995a2ed8fd97bb47e529
treefb0cbe3f1085206f9aeec75c6a44c5e1337fed2b
parent5b70ca1a6f0f08d0f8d9023792d1e83afbd50844
drm/i915: Move the irq_barrier for reset earlier into reset_prepare

When updating the bookkeeping following the reset, we need the seqno to
be coherent on the CPU prior to trusting its result for deciding whether
any request is completed. We need the irq_barrier before we start making
these decisions, i.e. in reset_prepare.

References: https://bugs.freedesktop.org/show_bug.cgi?id=99733
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170210185214.23463-1-chris@chris-wilson.co.uk
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
drivers/gpu/drm/i915/i915_gem.c