All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH igt] igt/gem_eio: Increase wakeup delay for in-flight-suspend
@ 2017-11-30 15:05 Chris Wilson
  2017-11-30 19:13 ` ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Chris Wilson @ 2017-11-30 15:05 UTC (permalink / raw)
  To: intel-gfx

For in-flight-suspend, we need to wait for the GPU hang within
i915_gem_suspend(). This will take 10-20s, which means that the standard
wakeup delay of around 15s may occur before we complete the suspend.
This causes a pm_system_wakeup(), causing dpm_suspend() to return
-EBUSY.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/gem_eio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/gem_eio.c b/tests/gem_eio.c
index 7a6be393..2ac9f0a9 100644
--- a/tests/gem_eio.c
+++ b/tests/gem_eio.c
@@ -258,8 +258,8 @@ static void test_inflight_suspend(int fd)
 		igt_assert(fence[n] != -1);
 	}
 
-	igt_system_suspend_autoresume(SUSPEND_STATE_MEM,
-				      SUSPEND_TEST_NONE);
+	igt_set_autoresume_delay(30);
+	igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
 
 	igt_post_hang_ring(fd, hang);
 
-- 
2.15.1

_______________________________________________
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

* ✓ Fi.CI.BAT: success for igt/gem_eio: Increase wakeup delay for in-flight-suspend
  2017-11-30 15:05 [PATCH igt] igt/gem_eio: Increase wakeup delay for in-flight-suspend Chris Wilson
@ 2017-11-30 19:13 ` Patchwork
  2017-11-30 20:50 ` ✓ Fi.CI.IGT: " Patchwork
  2017-12-01 10:32 ` [PATCH igt] " Mika Kuoppala
  2 siblings, 0 replies; 6+ messages in thread
From: Patchwork @ 2017-11-30 19:13 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

== Series Details ==

Series: igt/gem_eio: Increase wakeup delay for in-flight-suspend
URL   : https://patchwork.freedesktop.org/series/34691/
State : success

== Summary ==

IGT patchset tested on top of latest successful build
ac6739bcc7ee9682b40e7b7ac9625674fe3dc95e igt/gem_eio: Test we can suspend when the driver is already wedged

with latest DRM-Tip kernel build CI_DRM_3422
07df63d96015 drm-tip: 2017y-11m-30d-17h-26m-53s UTC integration manifest

No testlist changes.

Test gem_exec_reloc:
        Subgroup basic-cpu-active:
                dmesg-fail -> PASS       (fi-gdg-551) fdo#102582 +1

fdo#102582 https://bugs.freedesktop.org/show_bug.cgi?id=102582

fi-bdw-5557u     total:288  pass:267  dwarn:0   dfail:0   fail:0   skip:21  time:450s
fi-bdw-gvtdvm    total:288  pass:264  dwarn:0   dfail:0   fail:0   skip:24  time:443s
fi-blb-e6850     total:288  pass:223  dwarn:1   dfail:0   fail:0   skip:64  time:383s
fi-bsw-n3050     total:288  pass:242  dwarn:0   dfail:0   fail:0   skip:46  time:525s
fi-bwr-2160      total:288  pass:183  dwarn:0   dfail:0   fail:0   skip:105 time:283s
fi-bxt-dsi       total:288  pass:258  dwarn:0   dfail:0   fail:0   skip:30  time:504s
fi-bxt-j4205     total:288  pass:259  dwarn:0   dfail:0   fail:0   skip:29  time:509s
fi-byt-j1900     total:288  pass:253  dwarn:0   dfail:0   fail:0   skip:35  time:494s
fi-byt-n2820     total:288  pass:249  dwarn:0   dfail:0   fail:0   skip:39  time:480s
fi-elk-e7500     total:224  pass:162  dwarn:16  dfail:0   fail:0   skip:45 
fi-gdg-551       total:288  pass:178  dwarn:1   dfail:0   fail:1   skip:108 time:267s
fi-glk-1         total:288  pass:260  dwarn:0   dfail:0   fail:0   skip:28  time:542s
fi-hsw-4770      total:288  pass:261  dwarn:0   dfail:0   fail:0   skip:27  time:376s
fi-hsw-4770r     total:288  pass:224  dwarn:0   dfail:0   fail:0   skip:64  time:259s
fi-ilk-650       total:288  pass:228  dwarn:0   dfail:0   fail:0   skip:60  time:399s
fi-ivb-3520m     total:288  pass:259  dwarn:0   dfail:0   fail:0   skip:29  time:476s
fi-ivb-3770      total:288  pass:259  dwarn:0   dfail:0   fail:0   skip:29  time:448s
fi-kbl-7500u     total:288  pass:263  dwarn:1   dfail:0   fail:0   skip:24  time:490s
fi-kbl-7560u     total:288  pass:269  dwarn:0   dfail:0   fail:0   skip:19  time:532s
fi-kbl-7567u     total:288  pass:268  dwarn:0   dfail:0   fail:0   skip:20  time:478s
fi-kbl-r         total:288  pass:261  dwarn:0   dfail:0   fail:0   skip:27  time:539s
fi-pnv-d510      total:288  pass:222  dwarn:1   dfail:0   fail:0   skip:65  time:588s
fi-skl-6260u     total:288  pass:268  dwarn:0   dfail:0   fail:0   skip:20  time:461s
fi-skl-6600u     total:288  pass:261  dwarn:0   dfail:0   fail:0   skip:27  time:546s
fi-skl-6700hq    total:288  pass:262  dwarn:0   dfail:0   fail:0   skip:26  time:576s
fi-skl-6700k     total:288  pass:264  dwarn:0   dfail:0   fail:0   skip:24  time:523s
fi-skl-6770hq    total:288  pass:268  dwarn:0   dfail:0   fail:0   skip:20  time:505s
fi-skl-gvtdvm    total:288  pass:265  dwarn:0   dfail:0   fail:0   skip:23  time:449s
fi-snb-2520m     total:288  pass:249  dwarn:0   dfail:0   fail:0   skip:39  time:557s
fi-snb-2600      total:288  pass:248  dwarn:0   dfail:0   fail:0   skip:40  time:420s
Blacklisted hosts:
fi-cfl-s2        total:288  pass:262  dwarn:0   dfail:0   fail:0   skip:26  time:605s
fi-glk-dsi       total:288  pass:258  dwarn:0   dfail:0   fail:0   skip:30  time:497s

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_572/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* ✓ Fi.CI.IGT: success for igt/gem_eio: Increase wakeup delay for in-flight-suspend
  2017-11-30 15:05 [PATCH igt] igt/gem_eio: Increase wakeup delay for in-flight-suspend Chris Wilson
  2017-11-30 19:13 ` ✓ Fi.CI.BAT: success for " Patchwork
@ 2017-11-30 20:50 ` Patchwork
  2017-11-30 20:53   ` Chris Wilson
  2017-12-01 10:32 ` [PATCH igt] " Mika Kuoppala
  2 siblings, 1 reply; 6+ messages in thread
From: Patchwork @ 2017-11-30 20:50 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

== Series Details ==

Series: igt/gem_eio: Increase wakeup delay for in-flight-suspend
URL   : https://patchwork.freedesktop.org/series/34691/
State : success

== Summary ==

Test drv_module_reload:
        Subgroup basic-no-display:
                dmesg-warn -> PASS       (shard-snb) fdo#102707 +2
Test kms_cursor_crc:
        Subgroup cursor-256x256-suspend:
                dmesg-warn -> PASS       (shard-snb) fdo#102365
Test kms_frontbuffer_tracking:
        Subgroup fbc-1p-offscren-pri-shrfb-draw-render:
                fail       -> PASS       (shard-snb) fdo#101623

fdo#102707 https://bugs.freedesktop.org/show_bug.cgi?id=102707
fdo#102365 https://bugs.freedesktop.org/show_bug.cgi?id=102365
fdo#101623 https://bugs.freedesktop.org/show_bug.cgi?id=101623

shard-hsw        total:2597 pass:1493 dwarn:2   dfail:0   fail:10  skip:1091 time:9074s
shard-snb        total:2597 pass:1273 dwarn:1   dfail:0   fail:10  skip:1312 time:7811s
Blacklisted hosts:
shard-apl        total:2641 pass:1667 dwarn:1   dfail:0   fail:23  skip:949 time:13423s
shard-kbl        total:2490 pass:1689 dwarn:1   dfail:0   fail:21  skip:776 time:10241s

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_572/shards.html
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: ✓ Fi.CI.IGT: success for igt/gem_eio: Increase wakeup delay for in-flight-suspend
  2017-11-30 20:50 ` ✓ Fi.CI.IGT: " Patchwork
@ 2017-11-30 20:53   ` Chris Wilson
  0 siblings, 0 replies; 6+ messages in thread
From: Chris Wilson @ 2017-11-30 20:53 UTC (permalink / raw)
  To: Patchwork; +Cc: intel-gfx

Quoting Patchwork (2017-11-30 20:50:57)
> == Logs ==
> 
> For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_572/shards.html

Success!

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

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

* Re: [PATCH igt] igt/gem_eio: Increase wakeup delay for in-flight-suspend
  2017-11-30 15:05 [PATCH igt] igt/gem_eio: Increase wakeup delay for in-flight-suspend Chris Wilson
  2017-11-30 19:13 ` ✓ Fi.CI.BAT: success for " Patchwork
  2017-11-30 20:50 ` ✓ Fi.CI.IGT: " Patchwork
@ 2017-12-01 10:32 ` Mika Kuoppala
  2 siblings, 0 replies; 6+ messages in thread
From: Mika Kuoppala @ 2017-12-01 10:32 UTC (permalink / raw)
  To: Chris Wilson, intel-gfx

Chris Wilson <chris@chris-wilson.co.uk> writes:

> For in-flight-suspend, we need to wait for the GPU hang within
> i915_gem_suspend(). This will take 10-20s, which means that the standard
> wakeup delay of around 15s may occur before we complete the suspend.
> This causes a pm_system_wakeup(), causing dpm_suspend() to return
> -EBUSY.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>

> ---
>  tests/gem_eio.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/gem_eio.c b/tests/gem_eio.c
> index 7a6be393..2ac9f0a9 100644
> --- a/tests/gem_eio.c
> +++ b/tests/gem_eio.c
> @@ -258,8 +258,8 @@ static void test_inflight_suspend(int fd)
>  		igt_assert(fence[n] != -1);
>  	}
>  
> -	igt_system_suspend_autoresume(SUSPEND_STATE_MEM,
> -				      SUSPEND_TEST_NONE);
> +	igt_set_autoresume_delay(30);
> +	igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
>  
>  	igt_post_hang_ring(fd, hang);

post_hang_cleanup(?) ...

-Mika

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

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

* [PATCH igt] igt/gem_eio: Increase wakeup delay for in-flight-suspend
@ 2017-12-01 10:36 Chris Wilson
  0 siblings, 0 replies; 6+ messages in thread
From: Chris Wilson @ 2017-12-01 10:36 UTC (permalink / raw)
  To: intel-gfx

For in-flight-suspend, we need to wait for the GPU hang within
i915_gem_suspend(). This will take 10-20s, which means that the standard
wakeup delay of around 15s may occur before we complete the suspend.
This causes a pm_system_wakeup(), causing dpm_suspend() to return
-EBUSY.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
---
 tests/gem_eio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/gem_eio.c b/tests/gem_eio.c
index 7a6be393..2ac9f0a9 100644
--- a/tests/gem_eio.c
+++ b/tests/gem_eio.c
@@ -258,8 +258,8 @@ static void test_inflight_suspend(int fd)
 		igt_assert(fence[n] != -1);
 	}
 
-	igt_system_suspend_autoresume(SUSPEND_STATE_MEM,
-				      SUSPEND_TEST_NONE);
+	igt_set_autoresume_delay(30);
+	igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
 
 	igt_post_hang_ring(fd, hang);
 
-- 
2.15.1

_______________________________________________
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:[~2017-12-01 10:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-30 15:05 [PATCH igt] igt/gem_eio: Increase wakeup delay for in-flight-suspend Chris Wilson
2017-11-30 19:13 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-11-30 20:50 ` ✓ Fi.CI.IGT: " Patchwork
2017-11-30 20:53   ` Chris Wilson
2017-12-01 10:32 ` [PATCH igt] " Mika Kuoppala
2017-12-01 10:36 Chris Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.