public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/2] tests/i915_pm_dc: Move PSR checks back to individual subtests
@ 2020-02-28 18:22 Ville Syrjala
  2020-02-28 18:22 ` [igt-dev] [PATCH i-g-t 2/2] tests/i915_pm_dc: Fix the description of dc6-dpms Ville Syrjala
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Ville Syrjala @ 2020-02-28 18:22 UTC (permalink / raw)
  To: igt-dev

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

The dpms tests don't need PSR. So move the PSR check back into
the subtests that need it.

Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Fixes: 6cbe6af372a0 ("tests/i915_pm_dc: Use psr_sink_support instead of reimplement it again")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 tests/i915/i915_pm_dc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/i915/i915_pm_dc.c b/tests/i915/i915_pm_dc.c
index afcc10bc7e20..6975f165be7f 100644
--- a/tests/i915/i915_pm_dc.c
+++ b/tests/i915/i915_pm_dc.c
@@ -393,7 +393,6 @@ int main(int argc, char *argv[])
 		igt_require(igt_setup_runtime_pm(data.drm_fd));
 		igt_require(igt_pm_dmc_loaded(data.debugfs_fd));
 		igt_display_require(&data.display, data.drm_fd);
-		igt_require(psr_sink_support(data.debugfs_fd, PSR_MODE_1));
 		/* Make sure our Kernel supports MSR and the module is loaded */
 		igt_require(igt_kmod_load("msr", NULL) == 0);
 
@@ -405,6 +404,7 @@ int main(int argc, char *argv[])
 	igt_describe("In this test we make sure that system enters DC3CO "
 		     "when PSR2 is active and system is in SLEEP state");
 	igt_subtest("dc3co-vpb-simulation") {
+		igt_require(psr_sink_support(data.debugfs_fd, PSR_MODE_1));
 		test_dc3co_vpb_simulation(&data);
 	}
 
@@ -412,6 +412,7 @@ int main(int argc, char *argv[])
 		     "while PSR is active");
 	igt_subtest("dc5-psr") {
 		data.op_psr_mode = PSR_MODE_1;
+		igt_require(psr_sink_support(data.debugfs_fd, PSR_MODE_1));
 		psr_enable(data.debugfs_fd, data.op_psr_mode);
 		test_dc_state_psr(&data, CHECK_DC5);
 	}
@@ -420,6 +421,7 @@ int main(int argc, char *argv[])
 		     "while PSR is active");
 	igt_subtest("dc6-psr") {
 		data.op_psr_mode = PSR_MODE_1;
+		igt_require(psr_sink_support(data.debugfs_fd, PSR_MODE_1));
 		psr_enable(data.debugfs_fd, data.op_psr_mode);
 		igt_require_f(igt_pm_pc8_plus_residencies_enabled(data.msr_fd),
 			      "PC8+ residencies not supported\n");
-- 
2.24.1

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

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

end of thread, other threads:[~2020-03-01 15:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-28 18:22 [igt-dev] [PATCH i-g-t 1/2] tests/i915_pm_dc: Move PSR checks back to individual subtests Ville Syrjala
2020-02-28 18:22 ` [igt-dev] [PATCH i-g-t 2/2] tests/i915_pm_dc: Fix the description of dc6-dpms Ville Syrjala
2020-02-28 18:32 ` [igt-dev] [PATCH i-g-t 1/2] tests/i915_pm_dc: Move PSR checks back to individual subtests Souza, Jose
2020-02-28 18:47   ` Ville Syrjälä
2020-02-28 20:34     ` Souza, Jose
2020-02-28 19:16 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] " Patchwork
2020-03-01 15:42 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox