From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Intel-gfx@lists.freedesktop.org,
Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Subject: [igt-dev] [PATCH i-g-t 2/2] tests/i915/gem_exec_parallel:Set engine map to default context
Date: Fri, 24 Jan 2020 12:17:59 +0000 [thread overview]
Message-ID: <20200124121759.22308-2-tvrtko.ursulin@linux.intel.com> (raw)
In-Reply-To: <20200124121759.22308-1-tvrtko.ursulin@linux.intel.com>
From: Sreedhar Telukuntla <sreedhar.telukuntla@intel.com>
Set the potential engine map of the parent client's default
context to the newly created DRM client's default context.
Without doing so there is a mismatch between the intended
and actual engine used by the *-fds subtests.
v2: Fix FDS flags check
Tvrtko:
v3: Use new helper gem_context_copy_engines.
Signed-off-by: Sreedhar Telukuntla <sreedhar.telukuntla@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
tests/i915/gem_exec_parallel.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/i915/gem_exec_parallel.c b/tests/i915/gem_exec_parallel.c
index cfbe78070873..0d4d6c6283e0 100644
--- a/tests/i915/gem_exec_parallel.c
+++ b/tests/i915/gem_exec_parallel.c
@@ -83,10 +83,12 @@ static void *thread(void *data)
pthread_cond_wait(t->cond, t->mutex);
pthread_mutex_unlock(t->mutex);
- if (t->flags & FDS)
+ if (t->flags & FDS) {
fd = drm_open_driver(DRIVER_INTEL);
- else
+ gem_context_copy_engines(t->fd, 0, fd, 0);
+ } else {
fd = t->fd;
+ }
i = 0;
batch[i] = MI_STORE_DWORD_IMM | (t->gen < 6 ? 1 << 22 : 0);
--
2.20.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
WARNING: multiple messages have this Message-ID (diff)
From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Intel-gfx@lists.freedesktop.org
Subject: [Intel-gfx] [PATCH i-g-t 2/2] tests/i915/gem_exec_parallel:Set engine map to default context
Date: Fri, 24 Jan 2020 12:17:59 +0000 [thread overview]
Message-ID: <20200124121759.22308-2-tvrtko.ursulin@linux.intel.com> (raw)
In-Reply-To: <20200124121759.22308-1-tvrtko.ursulin@linux.intel.com>
From: Sreedhar Telukuntla <sreedhar.telukuntla@intel.com>
Set the potential engine map of the parent client's default
context to the newly created DRM client's default context.
Without doing so there is a mismatch between the intended
and actual engine used by the *-fds subtests.
v2: Fix FDS flags check
Tvrtko:
v3: Use new helper gem_context_copy_engines.
Signed-off-by: Sreedhar Telukuntla <sreedhar.telukuntla@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
tests/i915/gem_exec_parallel.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/i915/gem_exec_parallel.c b/tests/i915/gem_exec_parallel.c
index cfbe78070873..0d4d6c6283e0 100644
--- a/tests/i915/gem_exec_parallel.c
+++ b/tests/i915/gem_exec_parallel.c
@@ -83,10 +83,12 @@ static void *thread(void *data)
pthread_cond_wait(t->cond, t->mutex);
pthread_mutex_unlock(t->mutex);
- if (t->flags & FDS)
+ if (t->flags & FDS) {
fd = drm_open_driver(DRIVER_INTEL);
- else
+ gem_context_copy_engines(t->fd, 0, fd, 0);
+ } else {
fd = t->fd;
+ }
i = 0;
batch[i] = MI_STORE_DWORD_IMM | (t->gen < 6 ? 1 << 22 : 0);
--
2.20.1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2020-01-24 12:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-24 12:17 [igt-dev] [PATCH i-g-t 1/2] lib/i915: Add helper for copying engine maps from one context to another Tvrtko Ursulin
2020-01-24 12:17 ` [Intel-gfx] " Tvrtko Ursulin
2020-01-24 12:17 ` Tvrtko Ursulin [this message]
2020-01-24 12:17 ` [Intel-gfx] [PATCH i-g-t 2/2] tests/i915/gem_exec_parallel:Set engine map to default context Tvrtko Ursulin
2020-01-24 12:25 ` [igt-dev] " Chris Wilson
2020-01-24 12:25 ` [Intel-gfx] " Chris Wilson
2020-01-24 12:23 ` [igt-dev] [PATCH i-g-t 1/2] lib/i915: Add helper for copying engine maps from one context to another Chris Wilson
2020-01-24 12:23 ` [Intel-gfx] " Chris Wilson
2020-01-24 12:26 ` [igt-dev] " Tvrtko Ursulin
2020-01-24 12:26 ` [Intel-gfx] " Tvrtko Ursulin
2020-01-24 12:29 ` [igt-dev] " Chris Wilson
2020-01-24 12:29 ` [Intel-gfx] " Chris Wilson
2020-01-24 12:28 ` [igt-dev] [PATCH i-g-t v2 " Tvrtko Ursulin
2020-01-24 12:28 ` [Intel-gfx] " Tvrtko Ursulin
2020-01-24 12:48 ` [igt-dev] " Chris Wilson
2020-01-24 12:48 ` [Intel-gfx] " Chris Wilson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200124121759.22308-2-tvrtko.ursulin@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=Intel-gfx@lists.freedesktop.org \
--cc=igt-dev@lists.freedesktop.org \
--cc=tvrtko.ursulin@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.