From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id A948C10E7ED for ; Wed, 5 Apr 2023 00:09:31 +0000 (UTC) From: Umesh Nerlige Ramappa To: igt-dev@lists.freedesktop.org Date: Wed, 5 Apr 2023 00:09:09 +0000 Message-Id: <20230405000909.51175-3-umesh.nerlige.ramappa@intel.com> In-Reply-To: <20230405000909.51175-1-umesh.nerlige.ramappa@intel.com> References: <20230405000909.51175-1-umesh.nerlige.ramappa@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v2 2/2] tests/drm_fdinfo: Drop active busyness tests for GuC backend List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: With GuC scheduling backends, the context busyness for an active context is obtained from the GuC FW. The support for this is WIP, so disable tests that check TEST_BUSY until the feature is implemented. v2: Drop fixture (Tvrtko) Signed-off-by: Umesh Nerlige Ramappa --- tests/i915/drm_fdinfo.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/i915/drm_fdinfo.c b/tests/i915/drm_fdinfo.c index 65b8b830..1b124755 100644 --- a/tests/i915/drm_fdinfo.c +++ b/tests/i915/drm_fdinfo.c @@ -197,6 +197,9 @@ single(int gem_fd, const intel_ctx_t *ctx, int spin_fd; uint64_t ahnd; + if (flags & TEST_BUSY) + igt_require(!gem_using_guc_submission(gem_fd)); + if (flags & TEST_ISOLATION) { spin_fd = gem_reopen_driver(gem_fd); ctx = intel_ctx_create_all_physical(spin_fd); @@ -287,6 +290,8 @@ busy_check_all(int gem_fd, const intel_ctx_t *ctx, igt_spin_t *spin; unsigned int i; + igt_require(!gem_using_guc_submission(gem_fd)); + memset(tval, 0, sizeof(tval)); spin = spin_sync(gem_fd, ahnd, ctx, e); @@ -346,6 +351,8 @@ most_busy_check_all(int gem_fd, const intel_ctx_t *ctx, uint64_t val[16]; unsigned int i; + igt_require(!gem_using_guc_submission(gem_fd)); + memset(busy_class, 0, sizeof(busy_class)); memset(tval, 0, sizeof(tval)); @@ -404,6 +411,8 @@ all_busy_check_all(int gem_fd, const intel_ctx_t *ctx, uint64_t val[16]; unsigned int i; + igt_require(!gem_using_guc_submission(gem_fd)); + memset(busy_class, 0, sizeof(busy_class)); memset(tval, 0, sizeof(tval)); @@ -525,6 +534,9 @@ virtual(int i915, const intel_ctx_cfg_t *base_cfg, unsigned int flags) { intel_ctx_cfg_t cfg = {}; + if (flags & TEST_BUSY) + igt_require(!gem_using_guc_submission(i915)); + cfg.vm = gem_vm_create(i915); for (int class = 0; class < 32; class++) { @@ -624,6 +636,8 @@ virtual_all(int i915, const intel_ctx_cfg_t *base_cfg, unsigned int flags) const unsigned int num_engines = base_cfg->num_engines; intel_ctx_cfg_t cfg = {}; + igt_require(!gem_using_guc_submission(i915)); + cfg.vm = gem_vm_create(i915); for (int class = 0; class < 32; class++) { -- 2.34.1