From patchwork Mon Nov 6 12:35:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 13446874 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 A0C5AC4332F for ; Mon, 6 Nov 2023 12:35:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2817D10E2DD; Mon, 6 Nov 2023 12:35:28 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 59ECD10E06F; Mon, 6 Nov 2023 12:35:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699274125; x=1730810125; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=/eJ95NmKrXbktgkStPToH//mEk/QTfimajFsZiM6qFg=; b=hF6H/UHXBbUbc+UvMUFGoE4OtPNoq94XrBUzBfTbYVpM0n8HNM4+HK6x e+7PZBB+XxVMp43Xa4EjXCeajRkV+ncim9aQFMqff9ojV1jcdQN9BwW2z 9xhynEa+ocogcwW/tKMuFDaqO55VNcuFI0Wj+FonAqBB9gG/1DrEtkL9s /pAQqb7BLLnopTT7P82rxC7hmD/XMmAXQa5MIdsfJx19P43xQhlR9FKGk oxkhxkR7in/k57g271HXIjb7tUA8xg8NNZQJCm1mTTwS5ValMtEhmtUis NWf6ZfNdozyfr81ynosqpnOPdOurpjwWjTGt2IvQT/TDT55pqXqYB9US6 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10885"; a="393159536" X-IronPort-AV: E=Sophos;i="6.03,281,1694761200"; d="scan'208";a="393159536" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2023 04:35:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10885"; a="712188448" X-IronPort-AV: E=Sophos;i="6.03,281,1694761200"; d="scan'208";a="712188448" Received: from ajayshan-mobl.ger.corp.intel.com (HELO localhost.localdomain) ([10.213.234.152]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2023 04:35:23 -0800 From: Tvrtko Ursulin To: igt-dev@lists.freedesktop.org, Intel-gfx@lists.freedesktop.org Date: Mon, 6 Nov 2023 12:35:10 +0000 Message-Id: <20231106123518.588528-1-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Subject: [Intel-gfx] [CI 1/9] 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 Reviewed-by: Kamil Konieczny --- 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);