All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/i915/kms_frontbuffer_tracking: Skip fbcpsr testcases as needed
@ 2022-07-26  9:09 Jouni Högander
  2022-07-26 10:19 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Jouni Högander @ 2022-07-26  9:09 UTC (permalink / raw)
  To: igt-dev

Driver is not using fbc for display versions 12 and 13 if PSR is
enabled. This is currently causing failures on fbcpsr_* subtests.

Fix this by checking display version and skipping fbcpsc_* subtests as
needed.

Cc: Matt Roper <matthew.d.roper@intel.com>

Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/160
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
---
 tests/i915/kms_frontbuffer_tracking.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tests/i915/kms_frontbuffer_tracking.c b/tests/i915/kms_frontbuffer_tracking.c
index 248ff36b..9518c706 100644
--- a/tests/i915/kms_frontbuffer_tracking.c
+++ b/tests/i915/kms_frontbuffer_tracking.c
@@ -1788,6 +1788,8 @@ static bool enable_features_for_test(const struct test_mode *t)
 
 static void check_test_requirements(const struct test_mode *t)
 {
+	int ver;
+
 	if (t->pipes == PIPE_DUAL)
 		igt_require_f(scnd_mode_params.output,
 			    "Can't test dual pipes with the current outputs\n");
@@ -1815,6 +1817,14 @@ static void check_test_requirements(const struct test_mode *t)
 
 	if (opt.only_pipes != PIPE_COUNT)
 		igt_require(t->pipes == opt.only_pipes);
+
+	/* Kernel disables fbc for display versions 12 and 13 if psr is enabled. */
+	ver = intel_display_ver(intel_get_drm_devid(drm.fd));
+	if (ver >= 12 && ver <= 13)
+		igt_require_f(!((t->feature & FEATURE_PSR) &&
+				(t->feature & FEATURE_FBC)),
+			      "Can't test PSR and FBC together\n");
+
 }
 
 static void set_crtc_fbs(const struct test_mode *t)
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-07-27 15:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-26  9:09 [igt-dev] [PATCH i-g-t] tests/i915/kms_frontbuffer_tracking: Skip fbcpsr testcases as needed Jouni Högander
2022-07-26 10:19 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2022-07-26 18:36 ` [igt-dev] [PATCH i-g-t] " Matt Roper
2022-07-27 15:48   ` Hogander, Jouni
2022-07-26 18:36 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-07-27  1:38 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-07-27 14:54 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.