From mboxrd@z Thu Jan 1 00:00:00 1970 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 E38F0C4828D for ; Thu, 1 Feb 2024 15:51:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 92E3310EF47; Thu, 1 Feb 2024 15:51:21 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="amQpC0N3"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id D6CC510EF47 for ; Thu, 1 Feb 2024 15:51:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706802681; x=1738338681; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yeqKFdkolOC1hnx1zyJ7fgg+hnG3Wlm8tssjTAX0szY=; b=amQpC0N3uDT9TPBkx6LY/m1LsMGwi6p1BW4fx7KBnzVRC/kMFTuFeTNG Xb04pxtWH4k0n7GmxShw87mp3faYkbVs+roP0a6XGDxSSpkB4u6hB8XZo Q5qa3vg7z1BGzVOp/Ksent116SBIgzuxVgOd3Qea5UHH6udgKNUSEEfW+ S/HEHAqzbXliVC0a8IO0RZ8hU/ZJNo70xnBuxuFYkK3BibzIsPjGW0EJy 4D6AJwsOs/cosgMSYUWPODAbp27o5s2faThbSUOaP2nO1WoI9uEu7cHLu 41w7ss9ATUHWSZj0IFvGfz6ZTVSyTVIlkz9FimGXHx2KdhZCMonr/th82 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="11296188" X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="11296188" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2024 07:51:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="101481" Received: from msterni-mobl.ger.corp.intel.com (HELO localhost) ([10.245.112.128]) by orviesa006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2024 07:51:20 -0800 From: Kamil Konieczny To: igt-dev@lists.freedesktop.org Cc: Kamil Konieczny , =?UTF-8?q?Dominik=20Karol=20Pi=C4=85tkowski?= Subject: [PATCH i-g-t v6 7/8] tests/intel/xe_exec_basic: add multigpu subtests Date: Thu, 1 Feb 2024 16:50:46 +0100 Message-ID: <20240201155047.48608-8-kamil.konieczny@linux.intel.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240201155047.48608-1-kamil.konieczny@linux.intel.com> References: <20240201155047.48608-1-kamil.konieczny@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" Add a few multi-gpu subtests: multigpu-once-* multigpu-many-execqueues-many-vm-* multigpu-no-exec-* run on two or more GPUs. Many variant was limited to take at most few seconds. Signed-off-by: Kamil Konieczny Reviewed-by: Dominik Karol PiÄ…tkowski --- tests/intel/xe_exec_basic.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/tests/intel/xe_exec_basic.c b/tests/intel/xe_exec_basic.c index e6f8db5b0..3defe1d87 100644 --- a/tests/intel/xe_exec_basic.c +++ b/tests/intel/xe_exec_basic.c @@ -11,6 +11,7 @@ */ #include "igt.h" +#include "intel_multigpu.h" #include "lib/igt_syncobj.h" #include "lib/intel_reg.h" #include "xe_drm.h" @@ -54,6 +55,18 @@ * Description: Run no-exec %arg[1] test * Test category: functionality test * + * SUBTEST: multigpu-once-%s + * Description: Run %arg[1] test only once on multiGPU + * Test category: functionality test + * + * SUBTEST: multigpu-many-execqueues-many-vm-%s + * Description: Run %arg[1] test on many exec_queues and many VMs on multiGPU + * Test category: stress test + * + * SUBTEST: multigpu-no-exec-%s + * Description: Run no-exec %arg[1] test on multiGPU + * Test category: functionality test + * * arg[1]: * * @basic: basic @@ -368,4 +381,27 @@ igt_main igt_fixture drm_close_driver(fd); + + for (const struct section *s = sections; s->name; s++) { + igt_subtest_f("multigpu-once-%s", s->name) { + xe_multi_fork_foreach_gpu(xe, gpu_idx) + xe_for_each_engine(xe, hwe) + test_exec(xe, hwe, 1, 1, 1, s->flags); + igt_waitchildren(); + } + + igt_subtest_f("multigpu-many-execqueues-many-vm-%s", s->name) { + xe_multi_fork_foreach_gpu(xe, gpu_idx) + xe_for_each_engine(fd, hwe) + test_exec(fd, hwe, 16, 32, 16, s->flags); + igt_waitchildren(); + } + + igt_subtest_f("multigpu-no-exec-%s", s->name) { + xe_multi_fork_foreach_gpu(xe, gpu_idx) + xe_for_each_engine(fd, hwe) + test_exec(fd, hwe, 1, 0, 1, s->flags); + igt_waitchildren(); + } + } } -- 2.42.0