igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH i-g-t] igt/pm_rpm: Skip counting modes if modprobed with disable_display
@ 2018-08-16 14:17 Chris Wilson
  2018-08-16 14:38 ` [igt-dev] " Chris Wilson
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Chris Wilson @ 2018-08-16 14:17 UTC (permalink / raw)
  To: igt-dev; +Cc: intel-gfx

If we've explicitly disabled the display, we will never find any
connected outputs or modes. Checking for them will fail and report the
missing requirement instead.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.com>
---
 tests/pm_rpm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c
index fefcb1beb..2c4bf529c 100644
--- a/tests/pm_rpm.c
+++ b/tests/pm_rpm.c
@@ -2046,7 +2046,6 @@ int main(int argc, char *argv[])
 
 		igt_assert(setup_environment());
 		basic_subtest();
-		drm_resources_equal_subtest();
 		pci_d3_state_subtest();
 		teardown_environment();
 
@@ -2056,7 +2055,8 @@ int main(int argc, char *argv[])
 
 		igt_assert(setup_environment());
 		basic_subtest();
-		drm_resources_equal_subtest();
+		if (enable_one_screen_with_type(data, SCREEN_TYPE_ANY))
+			drm_resources_equal_subtest();
 		pci_d3_state_subtest();
 		teardown_environment();
 	}
-- 
2.18.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2018-08-16 20:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-16 14:17 [Intel-gfx] [PATCH i-g-t] igt/pm_rpm: Skip counting modes if modprobed with disable_display Chris Wilson
2018-08-16 14:38 ` [igt-dev] " Chris Wilson
2018-08-16 14:52 ` [igt-dev] ✗ Fi.CI.BAT: failure for igt/pm_rpm: Skip counting modes if modprobed with disable_display (rev2) Patchwork
2018-08-16 15:46 ` [igt-dev] [PATCH i-g-t] igt/pm_rpm: Skip counting modes if modprobed with disable_display Chris Wilson
2018-08-16 17:00 ` [igt-dev] ✓ Fi.CI.BAT: success for igt/pm_rpm: Skip counting modes if modprobed with disable_display (rev3) Patchwork
2018-08-16 20:52 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

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).