[igt-dev] [Intel-gfx] [PATCH i-g-t] i915/gem_exec_parallel: Reopen the existing device

Dixit, Ashutosh ashutosh.dixit at intel.com
Wed Nov 4 23:53:03 UTC 2020


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 <chris at 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);

Reviewed-by: Ashutosh Dixit <ashutosh.dixit at intel.com>


More information about the igt-dev mailing list