From patchwork Fri Sep 29 12:25:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 13404190 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D7C1EE71D22 for ; Fri, 29 Sep 2023 12:25:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6096F10E6FD; Fri, 29 Sep 2023 12:25:30 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6F7DE10E6FC; Fri, 29 Sep 2023 12:25:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695990326; x=1727526326; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fHoj1IsAZty2I0ZpHfNKydpjxbohb3jClnXT5IDWVHs=; b=XpHUXgd5hmRpSfX2n9RMt7gOxMEHOaccq+uSuGgHfyCsD0rIKgwYzLTX DceglttEsvRjuUbuExVJ8OCYhUwPY89clHb+s6LN0Z3RKy80K0R+22aH8 YIV/ptaVCkAVlsl/mKiVKstphtUaEfyqmZnihM5OYoM+ydD0DxKcQ9FJm zXqoal5rFUwOJM/8x1SeGJYdYJ9ydOoB0yI3d0tn3OopQ7ji0hl6IGW2p rNs4d9vT8LtQAytG9s7UC6WESoiHBqCQGp/Xye+RkjqOPiYSJIyOvpqnr Rbon/oJUb+ZEXomRVGhj68snQVR7XaGgHaQ+r3GaTgUJXJMgEAOJh0bNx g==; X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="446443760" X-IronPort-AV: E=Sophos;i="6.03,187,1694761200"; d="scan'208";a="446443760" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2023 05:25:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="726577127" X-IronPort-AV: E=Sophos;i="6.03,187,1694761200"; d="scan'208";a="726577127" Received: from pbrady4x-mobl1.ger.corp.intel.com (HELO localhost.localdomain) ([10.213.203.84]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2023 05:25:25 -0700 From: Tvrtko Ursulin To: igt-dev@lists.freedesktop.org, Intel-gfx@lists.freedesktop.org Date: Fri, 29 Sep 2023 13:25:06 +0100 Message-Id: <20230929122517.349348-2-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230929122517.349348-1-tvrtko.ursulin@linux.intel.com> References: <20230929122517.349348-1-tvrtko.ursulin@linux.intel.com> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH i-g-t 01/12] tests/i915/drm_fdinfo: Check engine info is supported 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Tvrtko Ursulin On top of checking that parsing works, check that there are some engines present. This will be needed once the memory stats are added and so return value from __igt_parse_drm_fdinfo() will then be possible to be greater than zero even when engine stats are not supported. Signed-off-by: Tvrtko Ursulin --- tests/intel/drm_fdinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/intel/drm_fdinfo.c b/tests/intel/drm_fdinfo.c index aca19db50680..344c44dce78b 100644 --- a/tests/intel/drm_fdinfo.c +++ b/tests/intel/drm_fdinfo.c @@ -737,6 +737,7 @@ igt_main igt_require_gem(i915); igt_require(igt_parse_drm_fdinfo(i915, &info, NULL, 0, NULL, 0)); + igt_require(info.num_engines); ctx = intel_ctx_create_all_physical(i915);