From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 04 Nov 2020 15:53:03 -0800 Message-ID: <87imakof1c.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" In-Reply-To: <20201104222321.4078393-1-chris@chris-wilson.co.uk> References: <20201104222321.4078393-1-chris@chris-wilson.co.uk> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Subject: Re: [igt-dev] [Intel-gfx] [PATCH i-g-t] i915/gem_exec_parallel: Reopen the existing device List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Chris Wilson Cc: igt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org List-ID: On Wed, 04 Nov 2020 14:23:21 -0800, Chris Wilson wrote: > > Avoid any unnecessary filtering inside drm_open_driver() by explicitly > reopening the same device. > > Signed-off-by: Chris Wilson > --- > 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); Reviewed-by: Ashutosh Dixit _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev