Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH i-g-t] i915/gem_exec_parallel: Reopen the existing device
@ 2020-11-04 22:23 Chris Wilson
  2020-11-04 23:53 ` Dixit, Ashutosh
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Wilson @ 2020-11-04 22:23 UTC (permalink / raw)
  To: intel-gfx; +Cc: igt-dev, Chris Wilson

Avoid any unnecessary filtering inside drm_open_driver() by explicitly
reopening the same device.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/i915/gem_exec_parallel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/gem_exec_parallel.c b/tests/i915/gem_exec_parallel.c
index bdb8e3e90..1a988b957 100644
--- a/tests/i915/gem_exec_parallel.c
+++ b/tests/i915/gem_exec_parallel.c
@@ -77,7 +77,7 @@ static void *thread(void *data)
 	pthread_mutex_unlock(t->mutex);
 
 	if (t->flags & FDS) {
-		fd = drm_open_driver(DRIVER_INTEL);
+		fd = gem_reopen_driver(t->fd);
 		gem_context_copy_engines(t->fd, 0, fd, 0);
 	} else {
 		fd = t->fd;
-- 
2.29.2

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

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

end of thread, other threads:[~2020-11-04 23:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-04 22:23 [Intel-gfx] [PATCH i-g-t] i915/gem_exec_parallel: Reopen the existing device Chris Wilson
2020-11-04 23:53 ` Dixit, Ashutosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox