From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF682C388F7 for ; Wed, 4 Nov 2020 23:53:07 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5C0C820644 for ; Wed, 4 Nov 2020 23:53:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5C0C820644 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1D9DB6E060; Wed, 4 Nov 2020 23:53:06 +0000 (UTC) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id 028A56E060; Wed, 4 Nov 2020 23:53:04 +0000 (UTC) IronPort-SDR: W0bBFNFvWoQcopoV+aVM13Cos44MLhL2PuScnSWKBwSN2HiPAYxetYtaOsKXbSnxEIgk09amsZ pNKb0wayOSEg== X-IronPort-AV: E=McAfee;i="6000,8403,9795"; a="149157393" X-IronPort-AV: E=Sophos;i="5.77,451,1596524400"; d="scan'208";a="149157393" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2020 15:53:04 -0800 IronPort-SDR: kATQtqi2A7tu74OCsUvkBDS22VB55beUVgMfkhYmHZCX+U+JsIm2+z10oRAJRhTJtPhmuLcmbm 8ilxPaveKvpw== X-IronPort-AV: E=Sophos;i="5.77,451,1596524400"; d="scan'208";a="325813877" Received: from adixit-mobl1.amr.corp.intel.com (HELO adixit-arch.intel.com) ([10.209.52.179]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2020 15:53:04 -0800 Date: Wed, 04 Nov 2020 15:53:03 -0800 Message-ID: <87imakof1c.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" To: Chris Wilson In-Reply-To: <20201104222321.4078393-1-chris@chris-wilson.co.uk> References: <20201104222321.4078393-1-chris@chris-wilson.co.uk> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Subject: Re: [Intel-gfx] [PATCH i-g-t] i915/gem_exec_parallel: Reopen the existing device X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: igt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" 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 _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx