]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Order assert forcewake test
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Jul 2019 07:45:57 +0000 (08:45 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Jul 2019 10:43:50 +0000 (11:43 +0100)
commit6ae7e2df084050589bda738f42142dc2163645cb
tree5c5de26f778692f9d18b8e80e5ef8a9ba22709e1
parentbd0d410bde6fd4efc78a882d8e0aa8a7f23a5e68
drm/i915: Order assert forcewake test

Read the current value before computing the expected to ensure that if
the timer does complete early (against our will), it should not cause a
false positive.

v2: The local irq disable did not prevent the timer from running.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111074
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190705074604.16496-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_uncore.c