]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Careful not to flush hang_fini on error setups
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 29 Jul 2019 08:59:44 +0000 (09:59 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 29 Jul 2019 10:00:18 +0000 (11:00 +0100)
commit1829a7bcaa76895b121c63d0854683c5c89748e8
treeecc3c4c3ea655bfb83462db3c88e64df2fc1aaf8
parent3ed1607016c55d8ba4769b6813dae5b2cf7a293e
drm/i915/selftests: Careful not to flush hang_fini on error setups

Smatch spotted that we test at the start of hang_fini for a valid (h->gt
is only set after a request is created) but then used it regardless
later on.

v2: Alternatively, we do not need to check as we now always prime h->gt
in hang_init()

References: 6e8b894497b1 ("drm/i915/gt: Use intel_gt as the primary object for handling resets")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190729085944.2179-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_hangcheck.c