igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] pm_rpm: Require DMC loaded before testing runtime_pm for gen9+
@ 2018-08-17 20:51 Rodrigo Vivi
  2018-08-17 20:59 ` Chris Wilson
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Rodrigo Vivi @ 2018-08-17 20:51 UTC (permalink / raw)
  To: igt-dev; +Cc: Anusha Srivatsa, Rodrigo Vivi

Since we block runtime PM if DMC is not loaded, let's skip
the test.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
 tests/pm_rpm.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c
index bbe36e59..f8442e4a 100644
--- a/tests/pm_rpm.c
+++ b/tests/pm_rpm.c
@@ -693,6 +693,16 @@ static void setup_pc8(void)
 	has_pc8 = true;
 }
 
+static bool dmc_loaded(void)
+{
+	char buf[15];
+
+	igt_debugfs_read(drm_fd, "i915_dmc_info", buf);
+
+	igt_info("DMC: %s\n", buf);
+	return strstr(buf, "fw loaded: yes");
+}
+
 static bool setup_environment(void)
 {
 	if (has_runtime_pm)
@@ -716,6 +726,9 @@ static bool setup_environment(void)
 	igt_info("PC8 residency support: %d\n", has_pc8);
 	igt_require(has_runtime_pm);
 
+	if (intel_gen(ms_data.devid) >= 9)
+		igt_require(dmc_loaded());
+
 out:
 	disable_all_screens(&ms_data);
 	return wait_for_suspended();
-- 
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] 16+ messages in thread

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

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-17 20:51 [igt-dev] [PATCH i-g-t] pm_rpm: Require DMC loaded before testing runtime_pm for gen9+ Rodrigo Vivi
2018-08-17 20:59 ` Chris Wilson
2018-08-17 21:13   ` Rodrigo Vivi
2018-08-17 21:26     ` Chris Wilson
2018-08-17 21:35       ` Rodrigo Vivi
2018-08-17 21:43         ` Chris Wilson
2018-08-17 22:11           ` Chris Wilson
2018-08-17 22:56             ` Rodrigo Vivi
2018-08-17 23:02             ` Rodrigo Vivi
2018-08-20 17:51               ` Rodrigo Vivi
2018-08-17 21:13 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-08-17 22:07 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-08-17 22:33 ` [igt-dev] ✓ Fi.CI.BAT: success for pm_rpm: Require DMC loaded before testing runtime_pm for gen9+ (rev3) Patchwork
2018-08-17 23:22 ` [igt-dev] ✓ Fi.CI.BAT: success for pm_rpm: Require DMC loaded before testing runtime_pm for gen9+ (rev4) Patchwork
2018-08-18  0:13 ` [igt-dev] ✓ Fi.CI.IGT: success for pm_rpm: Require DMC loaded before testing runtime_pm for gen9+ (rev3) Patchwork
2018-08-18  0:55 ` [igt-dev] ✓ Fi.CI.IGT: success for pm_rpm: Require DMC loaded before testing runtime_pm for gen9+ (rev4) 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).