Skip to contentSkip to conversation

lib/drmtest: skip suspend tests in simulation

PATCH In review Daniel Vetter 2 participants 3 messages Sep 12, 2013 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/drmtest: skip suspend tests in simulation

The simulator doesn't like this nor really support it :(

Cc Ben Widawsky <[email protected]>
Cc Ville Syrjälä <[email protected]>
Cc Damien Lespiau <[email protected]>
---
 lib/drmtest.c | 2 ++
 1 file changed, 2 insertions(+)
lib/drmtest.c +2 -0
index 9d4c5da..509db13 100644
@@ -2088,6 +2088,8 @@ void igt_system_suspend_autoresume(void)
 {
 	int ret;
 
+	igt_skip_on_simulation();
+
 	ret = system("rtcwake -s 30 -m mem");
 	igt_assert(ret == 0);
 }
Signature · 6 lines
1.8.4.rc3

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Daniel Vetter

The simulator doesn't like this nor really support it :(

Cc Ben Widawsky <[email protected]>
Cc Ville Syrjälä <[email protected]>
Cc Damien Lespiau <[email protected]>

Aye! (I recall we don't really need that for i-g-t, but can't hurt)

Signature · 1 line
Damien
Quoted 20 lines
---
 lib/drmtest.c | 2 ++
 1 file changed, 2 insertions(+)
lib/drmtest.c +2 -0
index 9d4c5da..509db13 100644
@@ -2088,6 +2088,8 @@ void igt_system_suspend_autoresume(void)
 {
 	int ret;
 
+	igt_skip_on_simulation();
+
 	ret = system("rtcwake -s 30 -m mem");
 	igt_assert(ret == 0);
 }
Signature · 1 line
1.8.4.rc3
#2 lore raw
Quoted 11 lines · Damien Lespiau
Quoted 6 lines · Daniel Vetter

The simulator doesn't like this nor really support it :(

Cc Ben Widawsky <[email protected]>
Cc Ville Syrjälä <[email protected]>
Cc Damien Lespiau <[email protected]>

Aye! (I recall we don't really need that for i-g-t, but can't hurt)

Actually on second thought we should try to at least run our driver suspend/resume code a bit, maybe using the pm debug stuff in sysfs, i.e.

echo devices > /sys/power/pm_test
echo mem > /sys/power/state

That should avoid any issues due to the platform being bonghits. And we could use it even on really early SDVs when the firmware code isn't stable yet (or other drivers not yet up to the task).

Comments?
-Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch