* [PATCH i-g-t] i915/gem_ctx_shared: Use the supplied ring for smoketest
@ 2019-11-04 15:29 Chris Wilson
2019-11-04 15:29 ` [Intel-gfx] " Chris Wilson
2019-11-04 15:37 ` Mika Kuoppala
0 siblings, 2 replies; 4+ messages in thread
From: Chris Wilson @ 2019-11-04 15:29 UTC (permalink / raw)
To: intel-gfx; +Cc: igt-dev
Allow the subtests that want to limit the test to a single engine, to
limit the test to a single engine.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
---
tests/i915/gem_ctx_shared.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tests/i915/gem_ctx_shared.c b/tests/i915/gem_ctx_shared.c
index 6d8cbcce2..4d9ffafce 100644
--- a/tests/i915/gem_ctx_shared.c
+++ b/tests/i915/gem_ctx_shared.c
@@ -740,8 +740,12 @@ static void smoketest(int i915, unsigned ring, unsigned timeout)
uint32_t *ptr;
nengine = 0;
- for_each_physical_engine(e, i915)
- engines[nengine++] = eb_ring(e);
+ if (ring == -1) {
+ for_each_physical_engine(e, i915)
+ engines[nengine++] = eb_ring(e);
+ } else {
+ engines[nengine++] = ring;
+ }
igt_require(nengine);
scratch = gem_create(i915, 4096);
--
2.24.0.rc2
_______________________________________________
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
* [Intel-gfx] [PATCH i-g-t] i915/gem_ctx_shared: Use the supplied ring for smoketest
2019-11-04 15:29 [PATCH i-g-t] i915/gem_ctx_shared: Use the supplied ring for smoketest Chris Wilson
@ 2019-11-04 15:29 ` Chris Wilson
2019-11-04 15:37 ` Mika Kuoppala
1 sibling, 0 replies; 4+ messages in thread
From: Chris Wilson @ 2019-11-04 15:29 UTC (permalink / raw)
To: intel-gfx; +Cc: igt-dev
Allow the subtests that want to limit the test to a single engine, to
limit the test to a single engine.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
---
tests/i915/gem_ctx_shared.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tests/i915/gem_ctx_shared.c b/tests/i915/gem_ctx_shared.c
index 6d8cbcce2..4d9ffafce 100644
--- a/tests/i915/gem_ctx_shared.c
+++ b/tests/i915/gem_ctx_shared.c
@@ -740,8 +740,12 @@ static void smoketest(int i915, unsigned ring, unsigned timeout)
uint32_t *ptr;
nengine = 0;
- for_each_physical_engine(e, i915)
- engines[nengine++] = eb_ring(e);
+ if (ring == -1) {
+ for_each_physical_engine(e, i915)
+ engines[nengine++] = eb_ring(e);
+ } else {
+ engines[nengine++] = ring;
+ }
igt_require(nengine);
scratch = gem_create(i915, 4096);
--
2.24.0.rc2
_______________________________________________
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
* Re: [PATCH i-g-t] i915/gem_ctx_shared: Use the supplied ring for smoketest
2019-11-04 15:29 [PATCH i-g-t] i915/gem_ctx_shared: Use the supplied ring for smoketest Chris Wilson
2019-11-04 15:29 ` [Intel-gfx] " Chris Wilson
@ 2019-11-04 15:37 ` Mika Kuoppala
2019-11-04 15:37 ` [Intel-gfx] " Mika Kuoppala
1 sibling, 1 reply; 4+ messages in thread
From: Mika Kuoppala @ 2019-11-04 15:37 UTC (permalink / raw)
To: Chris Wilson, intel-gfx; +Cc: igt-dev
Chris Wilson <chris@chris-wilson.co.uk> writes:
> Allow the subtests that want to limit the test to a single engine, to
> limit the test to a single engine.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
> ---
> tests/i915/gem_ctx_shared.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/tests/i915/gem_ctx_shared.c b/tests/i915/gem_ctx_shared.c
> index 6d8cbcce2..4d9ffafce 100644
> --- a/tests/i915/gem_ctx_shared.c
> +++ b/tests/i915/gem_ctx_shared.c
> @@ -740,8 +740,12 @@ static void smoketest(int i915, unsigned ring, unsigned timeout)
> uint32_t *ptr;
>
> nengine = 0;
> - for_each_physical_engine(e, i915)
> - engines[nengine++] = eb_ring(e);
> + if (ring == -1) {
> + for_each_physical_engine(e, i915)
> + engines[nengine++] = eb_ring(e);
> + } else {
> + engines[nengine++] = ring;
> + }
> igt_require(nengine);
>
> scratch = gem_create(i915, 4096);
> --
> 2.24.0.rc2
_______________________________________________
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: [Intel-gfx] [PATCH i-g-t] i915/gem_ctx_shared: Use the supplied ring for smoketest
2019-11-04 15:37 ` Mika Kuoppala
@ 2019-11-04 15:37 ` Mika Kuoppala
0 siblings, 0 replies; 4+ messages in thread
From: Mika Kuoppala @ 2019-11-04 15:37 UTC (permalink / raw)
To: Chris Wilson, intel-gfx; +Cc: igt-dev
Chris Wilson <chris@chris-wilson.co.uk> writes:
> Allow the subtests that want to limit the test to a single engine, to
> limit the test to a single engine.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
> ---
> tests/i915/gem_ctx_shared.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/tests/i915/gem_ctx_shared.c b/tests/i915/gem_ctx_shared.c
> index 6d8cbcce2..4d9ffafce 100644
> --- a/tests/i915/gem_ctx_shared.c
> +++ b/tests/i915/gem_ctx_shared.c
> @@ -740,8 +740,12 @@ static void smoketest(int i915, unsigned ring, unsigned timeout)
> uint32_t *ptr;
>
> nengine = 0;
> - for_each_physical_engine(e, i915)
> - engines[nengine++] = eb_ring(e);
> + if (ring == -1) {
> + for_each_physical_engine(e, i915)
> + engines[nengine++] = eb_ring(e);
> + } else {
> + engines[nengine++] = ring;
> + }
> igt_require(nengine);
>
> scratch = gem_create(i915, 4096);
> --
> 2.24.0.rc2
_______________________________________________
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:[~2019-11-04 15:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-04 15:29 [PATCH i-g-t] i915/gem_ctx_shared: Use the supplied ring for smoketest Chris Wilson
2019-11-04 15:29 ` [Intel-gfx] " Chris Wilson
2019-11-04 15:37 ` Mika Kuoppala
2019-11-04 15:37 ` [Intel-gfx] " Mika Kuoppala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox