diff options
author | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2020-04-14 11:14:45 +0300 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2020-04-15 12:35:55 +0300 |
commit | c16efd6674b0733ff399722d1f977e858b8724de (patch) | |
tree | 216047d9422eb85bcb818cebdffb01778575dd2d /tests/kms_chamelium.c | |
parent | 31962324ac86f029e2841e56e97c42cf9d572956 (diff) |
test/kms_chamelium: Start with disabling modeset
Doing disabling modeset from igt_display_require() is quite tricky, as
there are some tests that depend on the leftover mode set by fbcon in
order to work + PSR debugfs checks seem to behave a bit weird.
While those issues are being worked on let's do a disabling modeset
between igt_display_require() and chamelium_init() so port
auto-discovery works reliably on all configurations.
Issue: https://gitlab.freedesktop.org/drm/intel/issues/323
Cc: Kunal Joshi <kunal1.joshi@intel.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Kunal Joshi <kunal1.joshi@intel.com>
Diffstat (limited to 'tests/kms_chamelium.c')
-rw-r--r-- | tests/kms_chamelium.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c index e5cfa633..b7207ef9 100644 --- a/tests/kms_chamelium.c +++ b/tests/kms_chamelium.c @@ -2520,6 +2520,12 @@ igt_main igt_display_require(&data.display, data.drm_fd); igt_require(data.display.is_atomic); + /* + * XXX: disabling modeset, can be removed when + * igt_display_require will start doing this for us + */ + igt_display_commit2(&data.display, COMMIT_ATOMIC); + /* we need to initalize chamelium after igt_display_require */ data.chamelium = chamelium_init(data.drm_fd); igt_require(data.chamelium); |