From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id DCD356E87F for ; Wed, 23 Jun 2021 00:04:39 +0000 (UTC) Date: Tue, 22 Jun 2021 17:04:36 -0700 Message-ID: <8735t9la3v.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" In-Reply-To: <20210617191516.577394-28-jason@jlekstrand.net> References: <20210617191256.577244-1-jason@jlekstrand.net> <20210617191516.577394-28-jason@jlekstrand.net> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Subject: Re: [igt-dev] [PATCH i-g-t 77/79] tests/i915/gem_ctx_engines: Fix the invalid subtest for the new rules 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: Jason Ekstrand Cc: igt-dev@lists.freedesktop.org List-ID: On Thu, 17 Jun 2021 12:15:14 -0700, Jason Ekstrand wrote: > > + /* Reset back to a known-good param struct */ > + param.size = sizeof(*engines) + sizeof(*engines->engines); > + param.value = to_user_pointer(engines); > + igt_assert_eq(__set_param_fresh_context(i915, param), 0); > + > + /* Test that we can't set engines after we've done an execbuf */ > + param.ctx_id = gem_context_create(i915); > + spin = igt_spin_new(i915, .ctx_id = param.ctx_id); > + igt_spin_free(i915, spin); > + igt_assert_eq(__gem_context_set_param(i915, ¶m), -EINVAL); > + gem_context_destroy(i915, param.ctx_id); > + > + /* Test that we can't set engines on ctx0 */ Ah, didn't know this: Reviewed-by: Ashutosh Dixit > + param.ctx_id = 0; > + igt_assert_eq(__gem_context_set_param(i915, ¶m), -EINVAL); > + > out: > munmap(engines, 4096); > - gem_context_destroy(i915, param.ctx_id); > } _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev