diff options
author | José Roberto de Souza <jose.souza@intel.com> | 2021-10-29 16:56:41 -0700 |
---|---|---|
committer | José Roberto de Souza <jose.souza@intel.com> | 2021-11-03 17:11:39 -0700 |
commit | d31f96a54900b7375a903f49813dc969dd168280 (patch) | |
tree | 62151f6b079be457b6bf11e0e29798598cf1a2e9 /tests/kms_async_flips.c | |
parent | 0dfc3834f0e07badf5b6149c634807ddae119c88 (diff) |
tests/kms_async_flips: Skip test when running with Intel's PSR2 selective fetch enabled
Intel's PSR2 selective fetch adds other planes to state when
necessary, causing the async flip to fail because async flip is not
supported in cursor plane.
v2:
- adding a description to the skip message
Cc: Petri Latvala <petri.latvala@intel.com>
Cc: Karthik B S <karthik.b.s@intel.com>
Cc: Vandita Kulkarni <vandita.kulkarni@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Diffstat (limited to 'tests/kms_async_flips.c')
-rw-r--r-- | tests/kms_async_flips.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c index 4ff7a196..0c382133 100644 --- a/tests/kms_async_flips.c +++ b/tests/kms_async_flips.c @@ -27,6 +27,7 @@ #include "igt.h" #include "igt_aux.h" +#include "igt_psr.h" #include <sys/ioctl.h> #include <sys/time.h> #include <poll.h> @@ -299,6 +300,15 @@ static void test_cursor(data_t *data) struct igt_fb cursor_fb; struct drm_mode_cursor cur; + /* + * Intel's PSR2 selective fetch adds other planes to state when + * necessary, causing the async flip to fail because async flip is not + * supported in cursor plane. + */ + igt_skip_on_f(i915_psr2_selective_fetch_check(data->drm_fd), + "PSR2 sel fetch causes cursor to be added to primary plane " \ + "pages flips and async flip is not supported in cursor\n"); + do_or_die(drmGetCap(data->drm_fd, DRM_CAP_CURSOR_WIDTH, &width)); do_or_die(drmGetCap(data->drm_fd, DRM_CAP_CURSOR_WIDTH, &height)); |