diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-08-18 11:40:50 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-09-06 19:00:51 +0100 |
commit | 406bb36aae33f574da522bc4effbf028d5ebca9b (patch) | |
tree | 16a94ae6fe97ead9d393b89618256245f66bfba9 /lib/igt_debugfs.c | |
parent | dddbc2ed136f3edf007366c2e81c3f735bd29266 (diff) |
lib: Avoid actually throttling from igt_require_gem()
igt_require_gem() checks whether we can use the i915 fd for submitting
requests by detecting a wedged driver. It was intended to be used just
after opening DRIVER_INTEL for a gem test to provide an early skip if
the device was unusable. However, it is also used at the start of
library functions like igt_spin_batch_new() which may be called after
the test has setup some state, and importantly submitted some batches.
igt_require_gem() has the risk of then waiting on those batches, unless
we tell it to use a clean fd.
v2: Chase the /proc/self/fd/$fd link
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Diffstat (limited to 'lib/igt_debugfs.c')
0 files changed, 0 insertions, 0 deletions