From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 04 Nov 2020 17:51:46 -0800 Message-ID: <87ft5oo9jh.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" In-Reply-To: <20201105002124.37888-2-chris@chris-wilson.co.uk> References: <20201105002124.37888-1-chris@chris-wilson.co.uk> <20201105002124.37888-2-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 2/2] i915/gem_ctx_thrash: Reopen the same 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 16:21:24 -0800, Chris Wilson wrote: > > Use gem_reopen_driver() to always reopen the same device without relying > on the filtering in drm_open_driver(). Reviewed-by: Ashutosh Dixit > Signed-off-by: Chris Wilson > --- > tests/i915/gem_ctx_thrash.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tests/i915/gem_ctx_thrash.c b/tests/i915/gem_ctx_thrash.c > index d32619d5d..d9ddd6689 100644 > --- a/tests/i915/gem_ctx_thrash.c > +++ b/tests/i915/gem_ctx_thrash.c > @@ -250,7 +250,7 @@ static void processes(void) > fds = malloc(num_ctx * sizeof(int)); > igt_assert(fds); > for (unsigned n = 0; n < num_ctx; n++) { > - fds[n] = drm_open_driver(DRIVER_INTEL); > + fds[n] = gem_reopen_driver(fd); > if (fds[n] == -1) { > int err = errno; > for (unsigned i = n; i--; ) _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev