summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_opregion.c
diff options
context:
space:
mode:
authorChris Wilson2017-09-18 18:27:34 +0200
committerChris Wilson2017-09-22 13:47:19 +0200
commitde4d2106f88ad7d98bf3adc602885d1d9071b644 (patch)
tree72474958d42400b8cded1e4f23627cee8c701682 /drivers/gpu/drm/i915/intel_opregion.c
parentdrm/i915: Only wake the waiter from the interrupt if passed (diff)
downloadkernel-qcow2-linux-de4d2106f88ad7d98bf3adc602885d1d9071b644.tar.gz
kernel-qcow2-linux-de4d2106f88ad7d98bf3adc602885d1d9071b644.tar.xz
kernel-qcow2-linux-de4d2106f88ad7d98bf3adc602885d1d9071b644.zip
drm/i915: Check waiter->seqno carefully in case of preemption
If preemption occurs at precisely the right moment, we may decide that the wait is complete even though the wait's request is no longer executing (having been preempted). We handle this situation by double checking that request following deciding whether the wait is complete. Reported-by: Michał Winiarski <michal.winiarski@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Michał Winiarski <michal.winiarski@intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20170918162734.21294-2-chris@chris-wilson.co.uk Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_opregion.c')
0 files changed, 0 insertions, 0 deletions