Lines Matching refs:gt
14 void igt_global_reset_lock(struct intel_gt *gt) in igt_global_reset_lock() argument
19 pr_debug("%s: current gpu_error=%08lx\n", __func__, gt->reset.flags); in igt_global_reset_lock()
21 while (test_and_set_bit(I915_RESET_BACKOFF, >->reset.flags)) in igt_global_reset_lock()
22 wait_event(gt->reset.queue, in igt_global_reset_lock()
23 !test_bit(I915_RESET_BACKOFF, >->reset.flags)); in igt_global_reset_lock()
25 for_each_engine(engine, gt, id) { in igt_global_reset_lock()
27 >->reset.flags)) in igt_global_reset_lock()
28 wait_on_bit(>->reset.flags, I915_RESET_ENGINE + id, in igt_global_reset_lock()
33 void igt_global_reset_unlock(struct intel_gt *gt) in igt_global_reset_unlock() argument
38 for_each_engine(engine, gt, id) in igt_global_reset_unlock()
39 clear_bit(I915_RESET_ENGINE + id, >->reset.flags); in igt_global_reset_unlock()
41 clear_bit(I915_RESET_BACKOFF, >->reset.flags); in igt_global_reset_unlock()
42 wake_up_all(>->reset.queue); in igt_global_reset_unlock()
45 bool igt_force_reset(struct intel_gt *gt) in igt_force_reset() argument
47 intel_gt_set_wedged(gt); in igt_force_reset()
48 intel_gt_reset(gt, 0, NULL); in igt_force_reset()
50 return !intel_gt_is_wedged(gt); in igt_force_reset()