lib/drmtest: skip suspend tests in simulation
PATCH 1/1 lib/drmtest: skip suspend tests in simulation
The simulator doesn't like this nor really support it :(
--- lib/drmtest.c | 2 ++ 1 file changed, 2 insertions(+)
lib/drmtest.c +2 -0
@@ -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
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]>Signed-off-by Daniel Vetter <[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@@ -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
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]>Signed-off-by Daniel Vetter <[email protected]>Aye! (I recall we don't really need that for i-g-t, but can't hurt)
Reviewed-by Damien Lespiau <[email protected]>
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