* [PATCH igt] igt/prime_busy: Declare the hang tests expect to cause GPU hangs
@ 2017-09-13 11:43 Chris Wilson
2017-09-13 15:12 ` ✓ Fi.CI.BAT: success for " Patchwork
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Chris Wilson @ 2017-09-13 11:43 UTC (permalink / raw)
To: intel-gfx
Pull the two subtests together into the same subtest group as the
fixtures were repeated for both and so we can consolidate down to one.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
---
tests/prime_busy.c | 81 ++++++++++++++++++++++--------------------------------
1 file changed, 33 insertions(+), 48 deletions(-)
diff --git a/tests/prime_busy.c b/tests/prime_busy.c
index cbc91545..a516ab86 100644
--- a/tests/prime_busy.c
+++ b/tests/prime_busy.c
@@ -52,6 +52,8 @@ static void busy(int fd, unsigned ring, unsigned flags)
uint32_t *batch, *bbe;
int i, count, timeout;
+ gem_quiescent_gpu(fd);
+
memset(&execbuf, 0, sizeof(execbuf));
execbuf.buffers_ptr = (uintptr_t)obj;
execbuf.buffer_count = 2;
@@ -172,53 +174,39 @@ static void busy(int fd, unsigned ring, unsigned flags)
close(pfd[SCRATCH].fd);
}
-static void run_busy(int fd,
- const struct intel_execution_engine *e,
- const char *name, unsigned flags)
-{
- igt_fixture {
- gem_require_ring(fd, e->exec_id | e->flags);
- igt_require(gem_can_store_dword(fd, e->exec_id | e->flags));
- gem_quiescent_gpu(fd);
-
- if ((flags & HANG) == 0)
- igt_fork_hang_detector(fd);
- }
-
- igt_subtest_f("%s%s-%s",
- !e->exec_id && !(flags & HANG) ? "basic-" : "",
- name, e->name)
- busy(fd, e->exec_id | e->flags, flags);
-
- igt_fixture {
- if ((flags & HANG) == 0)
- igt_stop_hang_detector();
- gem_quiescent_gpu(fd);
- }
-}
-
-static void run_poll(int fd,
- const struct intel_execution_engine *e,
- const char *name, unsigned flags)
+static void test_engine_mode(int fd,
+ const struct intel_execution_engine *e,
+ const char *name, unsigned int flags)
{
- igt_fixture {
- gem_require_ring(fd, e->exec_id | e->flags);
- igt_require(gem_can_store_dword(fd, e->exec_id | e->flags));
-
- gem_quiescent_gpu(fd);
- if ((flags & HANG) == 0)
- igt_fork_hang_detector(fd);
- }
+ igt_hang_t hang = {};
- igt_subtest_f("%swait-%s-%s",
- !e->exec_id && !(flags & HANG) ? "basic-" : "",
- name, e->name)
- busy(fd, e->exec_id | e->flags, flags | POLL);
+ igt_subtest_group {
+ igt_fixture {
+ gem_require_ring(fd, e->exec_id | e->flags);
+ igt_require(gem_can_store_dword(fd, e->exec_id | e->flags));
+
+ if ((flags & HANG) == 0)
+ igt_fork_hang_detector(fd);
+ else
+ hang = igt_allow_hang(fd, 0, 0);
+ }
- igt_fixture {
- if ((flags & HANG) == 0)
- igt_stop_hang_detector();
- gem_quiescent_gpu(fd);
+ igt_subtest_f("%s%s-%s",
+ !e->exec_id && !(flags & HANG) ? "basic-" : "",
+ name, e->name)
+ busy(fd, e->exec_id | e->flags, flags);
+
+ igt_subtest_f("%swait-%s-%s",
+ !e->exec_id && !(flags & HANG) ? "basic-" : "",
+ name, e->name)
+ busy(fd, e->exec_id | e->flags, flags | POLL);
+
+ igt_fixture {
+ if ((flags & HANG) == 0)
+ igt_stop_hang_detector();
+ else
+ igt_disallow_hang(fd, hang);
+ }
}
}
@@ -250,10 +238,7 @@ igt_main
for (e = intel_execution_engines; e->name; e++) {
for (const struct mode *m = modes; m->name; m++)
- igt_subtest_group {
- run_busy(fd, e, m->name, m->flags);
- run_poll(fd, e, m->name, m->flags);
- }
+ test_engine_mode(fd, e, m->name, m->flags);
}
}
--
2.14.1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 4+ messages in thread
* ✓ Fi.CI.BAT: success for igt/prime_busy: Declare the hang tests expect to cause GPU hangs
2017-09-13 11:43 [PATCH igt] igt/prime_busy: Declare the hang tests expect to cause GPU hangs Chris Wilson
@ 2017-09-13 15:12 ` Patchwork
2017-09-14 2:46 ` ✓ Fi.CI.IGT: " Patchwork
2017-09-14 10:58 ` [PATCH igt] " Mika Kuoppala
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2017-09-13 15:12 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx
== Series Details ==
Series: igt/prime_busy: Declare the hang tests expect to cause GPU hangs
URL : https://patchwork.freedesktop.org/series/30290/
State : success
== Summary ==
IGT patchset tested on top of latest successful build
c718ba805208e55d675defe9b2a66852e2ae038c lib/igt_kmod: Allow specifying libkmod config via environment variables
with latest DRM-Tip kernel build CI_DRM_3084
76f9b11f445f drm-tip: 2017y-09m-13d-12h-28m-54s UTC integration manifest
Test kms_cursor_legacy:
Subgroup basic-busy-flip-before-cursor-legacy:
pass -> FAIL (fi-snb-2600) fdo#100215
Subgroup basic-flip-before-cursor-atomic:
incomplete -> PASS (fi-bxt-j4205) fdo#102705
Test pm_rpm:
Subgroup basic-rte:
pass -> DMESG-WARN (fi-cfl-s) fdo#102294
fdo#100215 https://bugs.freedesktop.org/show_bug.cgi?id=100215
fdo#102705 https://bugs.freedesktop.org/show_bug.cgi?id=102705
fdo#102294 https://bugs.freedesktop.org/show_bug.cgi?id=102294
fi-bdw-5557u total:289 pass:268 dwarn:0 dfail:0 fail:0 skip:21 time:443s
fi-blb-e6850 total:289 pass:224 dwarn:1 dfail:0 fail:0 skip:64 time:384s
fi-bsw-n3050 total:289 pass:243 dwarn:0 dfail:0 fail:0 skip:46 time:530s
fi-bwr-2160 total:289 pass:184 dwarn:0 dfail:0 fail:0 skip:105 time:268s
fi-bxt-j4205 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:508s
fi-byt-j1900 total:289 pass:254 dwarn:1 dfail:0 fail:0 skip:34 time:505s
fi-byt-n2820 total:289 pass:250 dwarn:1 dfail:0 fail:0 skip:38 time:497s
fi-cfl-s total:289 pass:222 dwarn:35 dfail:0 fail:0 skip:32 time:552s
fi-elk-e7500 total:289 pass:230 dwarn:0 dfail:0 fail:0 skip:59 time:454s
fi-glk-2a total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:592s
fi-hsw-4770 total:289 pass:263 dwarn:0 dfail:0 fail:0 skip:26 time:430s
fi-hsw-4770r total:289 pass:263 dwarn:0 dfail:0 fail:0 skip:26 time:406s
fi-ilk-650 total:289 pass:229 dwarn:0 dfail:0 fail:0 skip:60 time:439s
fi-ivb-3520m total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:483s
fi-ivb-3770 total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:471s
fi-kbl-7500u total:289 pass:264 dwarn:1 dfail:0 fail:0 skip:24 time:495s
fi-kbl-7560u total:289 pass:270 dwarn:0 dfail:0 fail:0 skip:19 time:578s
fi-kbl-r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:583s
fi-pnv-d510 total:289 pass:223 dwarn:1 dfail:0 fail:0 skip:65 time:547s
fi-skl-6260u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:456s
fi-skl-6700k total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:529s
fi-skl-6770hq total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:491s
fi-skl-gvtdvm total:289 pass:266 dwarn:0 dfail:0 fail:0 skip:23 time:464s
fi-skl-x1585l total:289 pass:268 dwarn:0 dfail:0 fail:0 skip:21 time:485s
fi-snb-2520m total:289 pass:251 dwarn:0 dfail:0 fail:0 skip:38 time:579s
fi-snb-2600 total:289 pass:249 dwarn:0 dfail:0 fail:1 skip:39 time:425s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_185/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* ✓ Fi.CI.IGT: success for igt/prime_busy: Declare the hang tests expect to cause GPU hangs
2017-09-13 11:43 [PATCH igt] igt/prime_busy: Declare the hang tests expect to cause GPU hangs Chris Wilson
2017-09-13 15:12 ` ✓ Fi.CI.BAT: success for " Patchwork
@ 2017-09-14 2:46 ` Patchwork
2017-09-14 10:58 ` [PATCH igt] " Mika Kuoppala
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2017-09-14 2:46 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx
== Series Details ==
Series: igt/prime_busy: Declare the hang tests expect to cause GPU hangs
URL : https://patchwork.freedesktop.org/series/30290/
State : success
== Summary ==
Test drv_module_reload:
Subgroup basic-reload-inject:
pass -> DMESG-WARN (shard-hsw) fdo#102707
Test kms_setmode:
Subgroup basic:
pass -> FAIL (shard-hsw) fdo#99912
fdo#102707 https://bugs.freedesktop.org/show_bug.cgi?id=102707
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
shard-hsw total:2313 pass:1243 dwarn:1 dfail:0 fail:14 skip:1055 time:9445s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_185/shards.html
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH igt] igt/prime_busy: Declare the hang tests expect to cause GPU hangs
2017-09-13 11:43 [PATCH igt] igt/prime_busy: Declare the hang tests expect to cause GPU hangs Chris Wilson
2017-09-13 15:12 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-09-14 2:46 ` ✓ Fi.CI.IGT: " Patchwork
@ 2017-09-14 10:58 ` Mika Kuoppala
2 siblings, 0 replies; 4+ messages in thread
From: Mika Kuoppala @ 2017-09-14 10:58 UTC (permalink / raw)
To: Chris Wilson, intel-gfx
Chris Wilson <chris@chris-wilson.co.uk> writes:
> Pull the two subtests together into the same subtest group as the
> fixtures were repeated for both and so we can consolidate down to one.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
> ---
> tests/prime_busy.c | 81 ++++++++++++++++++++++--------------------------------
> 1 file changed, 33 insertions(+), 48 deletions(-)
>
> diff --git a/tests/prime_busy.c b/tests/prime_busy.c
> index cbc91545..a516ab86 100644
> --- a/tests/prime_busy.c
> +++ b/tests/prime_busy.c
> @@ -52,6 +52,8 @@ static void busy(int fd, unsigned ring, unsigned flags)
> uint32_t *batch, *bbe;
> int i, count, timeout;
>
> + gem_quiescent_gpu(fd);
> +
> memset(&execbuf, 0, sizeof(execbuf));
> execbuf.buffers_ptr = (uintptr_t)obj;
> execbuf.buffer_count = 2;
> @@ -172,53 +174,39 @@ static void busy(int fd, unsigned ring, unsigned flags)
> close(pfd[SCRATCH].fd);
> }
>
> -static void run_busy(int fd,
> - const struct intel_execution_engine *e,
> - const char *name, unsigned flags)
> -{
> - igt_fixture {
> - gem_require_ring(fd, e->exec_id | e->flags);
> - igt_require(gem_can_store_dword(fd, e->exec_id | e->flags));
> - gem_quiescent_gpu(fd);
> -
> - if ((flags & HANG) == 0)
> - igt_fork_hang_detector(fd);
> - }
> -
> - igt_subtest_f("%s%s-%s",
> - !e->exec_id && !(flags & HANG) ? "basic-" : "",
> - name, e->name)
> - busy(fd, e->exec_id | e->flags, flags);
> -
> - igt_fixture {
> - if ((flags & HANG) == 0)
> - igt_stop_hang_detector();
> - gem_quiescent_gpu(fd);
> - }
> -}
> -
> -static void run_poll(int fd,
> - const struct intel_execution_engine *e,
> - const char *name, unsigned flags)
> +static void test_engine_mode(int fd,
> + const struct intel_execution_engine *e,
> + const char *name, unsigned int flags)
> {
> - igt_fixture {
> - gem_require_ring(fd, e->exec_id | e->flags);
> - igt_require(gem_can_store_dword(fd, e->exec_id | e->flags));
> -
> - gem_quiescent_gpu(fd);
> - if ((flags & HANG) == 0)
> - igt_fork_hang_detector(fd);
> - }
> + igt_hang_t hang = {};
>
> - igt_subtest_f("%swait-%s-%s",
> - !e->exec_id && !(flags & HANG) ? "basic-" : "",
> - name, e->name)
> - busy(fd, e->exec_id | e->flags, flags | POLL);
> + igt_subtest_group {
> + igt_fixture {
> + gem_require_ring(fd, e->exec_id | e->flags);
> + igt_require(gem_can_store_dword(fd, e->exec_id | e->flags));
> +
> + if ((flags & HANG) == 0)
> + igt_fork_hang_detector(fd);
> + else
> + hang = igt_allow_hang(fd, 0, 0);
> + }
>
> - igt_fixture {
> - if ((flags & HANG) == 0)
> - igt_stop_hang_detector();
> - gem_quiescent_gpu(fd);
> + igt_subtest_f("%s%s-%s",
> + !e->exec_id && !(flags & HANG) ? "basic-" : "",
> + name, e->name)
> + busy(fd, e->exec_id | e->flags, flags);
> +
> + igt_subtest_f("%swait-%s-%s",
> + !e->exec_id && !(flags & HANG) ? "basic-" : "",
> + name, e->name)
> + busy(fd, e->exec_id | e->flags, flags | POLL);
> +
> + igt_fixture {
> + if ((flags & HANG) == 0)
> + igt_stop_hang_detector();
> + else
> + igt_disallow_hang(fd, hang);
> + }
> }
> }
>
> @@ -250,10 +238,7 @@ igt_main
>
> for (e = intel_execution_engines; e->name; e++) {
> for (const struct mode *m = modes; m->name; m++)
> - igt_subtest_group {
> - run_busy(fd, e, m->name, m->flags);
> - run_poll(fd, e, m->name, m->flags);
> - }
> + test_engine_mode(fd, e, m->name, m->flags);
> }
> }
>
> --
> 2.14.1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-09-14 11:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-13 11:43 [PATCH igt] igt/prime_busy: Declare the hang tests expect to cause GPU hangs Chris Wilson
2017-09-13 15:12 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-09-14 2:46 ` ✓ Fi.CI.IGT: " Patchwork
2017-09-14 10:58 ` [PATCH igt] " Mika Kuoppala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox