igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/psr: Skip if PSR cannot be enabled for the current mode.
@ 2018-08-01  6:43 Dhinakaran Pandiyan
  2018-08-01  8:47 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Dhinakaran Pandiyan @ 2018-08-01  6:43 UTC (permalink / raw)
  To: igt-dev; +Cc: Dhinakaran Pandiyan

PSR tests on ICL fail waiting for PSR to become active, whereas the
driver does not enable it on the HW due to unmet timing requirements
[  482.485873] [drm:intel_dp_compute_config [i915]] PSR condition failed: PSR setup time (330 us) too long
We should probably bring back the kernel patch that programmed an alternate
mode, but skip tests for now.

Cc: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
---
 tests/kms_psr.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/tests/kms_psr.c b/tests/kms_psr.c
index 218b3960..89118ad4 100644
--- a/tests/kms_psr.c
+++ b/tests/kms_psr.c
@@ -193,11 +193,19 @@ static bool sink_support(data_t *data)
 	char buf[512];
 
 	igt_debugfs_read(data->drm_fd, "i915_edp_psr_status", buf);
-
 	return data->with_psr_disabled ||
 		strstr(buf, "Sink_Support: yes\n");
 }
 
+static bool mode_support(data_t *data)
+{
+	char buf[512];
+
+	igt_debugfs_read(data->drm_fd, "i915_edp_psr_status", buf);
+	return data->with_psr_disabled ||
+		strstr(buf, "Enabled: yes\n");
+}
+
 static bool psr_wait_entry_if_enabled(data_t *data)
 {
 	if (data->with_psr_disabled)
@@ -422,6 +430,8 @@ int main(int argc, char *argv[])
 		drm_intel_bufmgr_gem_enable_reuse(data.bufmgr);
 
 		display_init(&data);
+		igt_require_f(mode_support(&data),
+			     "PSR not enabled for current mode\n");
 	}
 
 	igt_subtest("basic") {
-- 
2.17.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

end of thread, other threads:[~2018-08-02  4:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-01  6:43 [igt-dev] [PATCH i-g-t] tests/psr: Skip if PSR cannot be enabled for the current mode Dhinakaran Pandiyan
2018-08-01  8:47 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-08-01  8:59 ` [igt-dev] [PATCH i-g-t] " Chris Wilson
2018-08-01 19:05   ` Dhinakaran Pandiyan
2018-08-01 19:34     ` Chris Wilson
2018-08-01  9:49 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork
2018-08-01 20:03 ` [igt-dev] [PATCH i-g-t] " Souza, Jose
2018-08-01 21:17   ` Dhinakaran Pandiyan
2018-08-01 20:19 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-08-01 21:09 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-08-02  4:58 ` [igt-dev] [PATCH i-g-t] " Rodrigo Vivi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).