drivers/gpu/drm/i915/selftests/igt_flush_test.c

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/selftests/igt_flush_test.c

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/i915/selftests/igt_flush_test.c
Extension
.c
Size
1043 bytes
Lines
52
Domain
Driver Families
Bucket
drivers/gpu
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

for_each_engine(engine, gt, id) {
			if (engine->props.preempt_timeout_ms > timeout_ms)
				timeout_ms = engine->props.preempt_timeout_ms;
		}

		cond_resched();

		/* 2x longest preempt timeout, experimentally determined */
		if (intel_gt_wait_for_idle(gt, HZ * timeout_ms / 500) == -ETIME) {
			pr_err("%pS timed out, cancelling all further testing.\n",
			       __builtin_return_address(0));

			GEM_TRACE("%pS timed out.\n",
				  __builtin_return_address(0));
			GEM_TRACE_DUMP();

			intel_gt_set_wedged(gt);
			ret = -EIO;
		}
	}

	return ret;
}

Annotation

Implementation Notes