All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH igt] igt/gem_mocs_settings: Wait for RC6 EI before polling
@ 2018-03-09 10:42 ` Chris Wilson
  0 siblings, 0 replies; 6+ messages in thread
From: Chris Wilson @ 2018-03-09 10:42 UTC (permalink / raw)
  To: intel-gfx; +Cc: igt-dev

On bxt, we see that the rc6 subtest flip-flops as RC6 does not restart
within our desired interval. Improve the likelihood of the inspection
passing by idling the GPU and waiting for 2 Evaluation Intervals before
we start polling of RC6 residency.

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

diff --git a/tests/gem_mocs_settings.c b/tests/gem_mocs_settings.c
index 9705fbfd..85fd637a 100644
--- a/tests/gem_mocs_settings.c
+++ b/tests/gem_mocs_settings.c
@@ -336,12 +336,15 @@ static uint32_t rc6_residency(int dir)
 
 static void rc6_wait(int fd)
 {
-	int sysfs;
 	uint32_t residency;
+	int sysfs;
 
 	sysfs = igt_sysfs_open(fd, NULL);
 	igt_assert_lte(0, sysfs);
 
+	gem_quiescent_gpu(fd);
+	usleep(320e3); /* Wait for 2 EIs before polling; should now be active */
+
 	residency = rc6_residency(sysfs);
 	igt_require(igt_wait(rc6_residency(sysfs) != residency, 10000, 2));
 
-- 
2.16.2

_______________________________________________
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:[~2018-03-09 15:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-09 10:42 [PATCH igt] igt/gem_mocs_settings: Wait for RC6 EI before polling Chris Wilson
2018-03-09 10:42 ` [igt-dev] " Chris Wilson
2018-03-09 11:16 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-03-09 13:22 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-03-09 15:07 ` [igt-dev] [PATCH igt] " Michał Winiarski
2018-03-09 15:07   ` Michał Winiarski

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.