[igt-dev] [PATCH i-g-t 4/4] tests/kms_invalid_mode: Allow the test on !i915
Ville Syrjala
ville.syrjala at linux.intel.com
Fri Nov 15 13:15:20 UTC 2019
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
The only i915 specific subtests is the max dotclock check,
so let's add the i915 check there and switch from DRIVER_INTEL
to DRIVER_ANY so that the other subtests can run everywhere.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
tests/kms_invalid_mode.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/kms_invalid_mode.c b/tests/kms_invalid_mode.c
index 9b94b9face4a..6de70a1485ad 100644
--- a/tests/kms_invalid_mode.c
+++ b/tests/kms_invalid_mode.c
@@ -174,6 +174,9 @@ static int i915_max_dotclock(data_t *data)
char *s;
int max_dotclock = 0;
+ if (!is_i915_device(data->drm_fd))
+ return 0;
+
igt_debugfs_read(data->drm_fd, "i915_frequency_info", buf);
s = strstr(buf, "Max pixel clock frequency:");
igt_assert(s);
@@ -223,7 +226,7 @@ igt_main
igt_fixture {
igt_skip_on_simulation();
- data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
+ data.drm_fd = drm_open_driver_master(DRIVER_ANY);
igt_require_intel(data.drm_fd);
kmstest_set_vt_graphics_mode();
--
2.23.0
More information about the igt-dev
mailing list