[PATCH i-g-t] tests/unigraf_lt: Restrict to Intel drivers

Mark Yacoub <[email protected]>
Newsgroups org.freedesktop.lists.igt-dev
Message-ID <[email protected]>
Currently, `igt_dp_force_link_retrain` natively maps to Intel's
i915 debugfs architecture. Thus, enforce
`igt_require_f(is_intel_device(drm_fd))` in the test fixture so
that this suite explicitly skips rather than blindly failing on
generic drivers. Other drivers should implement equivalent generic
IGT hooks before they can execute this verification.

Signed-off-by: Mark Yacoub <[email protected]>
---
 tests/unigraf/unigraf_lt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/unigraf/unigraf_lt.c b/tests/unigraf/unigraf_lt.c
index 81e6ecd3f..c0d1161f6 100644
--- a/tests/unigraf/unigraf_lt.c
+++ b/tests/unigraf/unigraf_lt.c
@@ -94,6 +94,8 @@ int igt_main()
 	igt_fixture() {
 		drm_fd = drm_open_driver(DRIVER_ANY);
 		igt_assert(drm_fd >= 0);
+		igt_require_f(is_intel_device(drm_fd),
+			      "This test relies on Intel-specific debugfs endpoints (e.g., i915_dp_force_link_rate, i915_dp_force_lane_count) for link training verification. Other drivers should implement equivalent generic IGT hooks.\n");
 
 		igt_display_require(&display, drm_fd);
 		unigraf_require_device(drm_fd);
-- 
2.55.0.691.gc56d675ccc-goog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.