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 EA112C49EA1 for ; Tue, 6 Aug 2024 14:43:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A787810E39E; Tue, 6 Aug 2024 14:43:53 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="MEKpNq3g"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id 32DD110E39F for ; Tue, 6 Aug 2024 14:43:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1722955433; x=1754491433; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1eHrbNPoJshnxDbZ/GIvmsGWQa7OM8m3Yk8XXk/Nlbo=; b=MEKpNq3gemHr4bQJZk7j0w7yw3sg1imvhbgR8yf8/Qd+UT7yv71zW3u9 4p3ob8UGk5K+MG86UXab2ReiEdb65FGmWRIIXzp23Kr/CQ/43amezlxeJ 6DoqcJcIchnOfHrjI9it6UaciUG1Osj8PirOmbJ11cGH0wy8DNpqTcoFX sUfpDPw5Po9n7/tv/qvkIYJN3PduDme3Bx/bMVWA1+R33Ao8oHVOhnuv1 QfkiRU6WTB69x7k+clgb7iQ4gCDF0QNXhFXdI6QV9CvYqj//1urP6rfio uzfVK6iycY0OtnTNk96pmGnGopMJ5mJ++9CKhcCzC2+8OR8xYKIWLS+CE A==; X-CSE-ConnectionGUID: CEY9ZwOfTFOcSLTRnkcvUA== X-CSE-MsgGUID: N3w2y5mCQSiSbOgqLLiqIw== X-IronPort-AV: E=McAfee;i="6700,10204,11156"; a="24766621" X-IronPort-AV: E=Sophos;i="6.09,268,1716274800"; d="scan'208";a="24766621" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Aug 2024 07:43:52 -0700 X-CSE-ConnectionGUID: 3UjtF7BITkaMD4JztonBiw== X-CSE-MsgGUID: zyYhX65yTbSNGeyjXLriiQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,268,1716274800"; d="scan'208";a="56606698" Received: from oandoniu-mobl3.ger.corp.intel.com (HELO localhost) ([10.245.244.78]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Aug 2024 07:43:49 -0700 From: Kamil Konieczny To: igt-dev@lists.freedesktop.org Cc: Kamil Konieczny , Rodrigo Vivi , =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= Subject: [PATCH i-g-t v2 3/4] tests/intel/xe_wedged: Inform runner about expected error Date: Tue, 6 Aug 2024 16:43:31 +0200 Message-ID: <20240806144332.80609-4-kamil.konieczny@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240806144332.80609-1-kamil.konieczny@linux.intel.com> References: <20240806144332.80609-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" Tests runs force wedged state and then driver emits an error. Standalone runs are succeeding but when run by igt runner it catch such errors and reports them in results. Inform runner to ignore such triggered failure. Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/1760 Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/1958 Cc: Rodrigo Vivi Signed-off-by: Kamil Konieczny Reviewed-by: Zbigniew KempczyƄski --- tests/intel/xe_wedged.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/intel/xe_wedged.c b/tests/intel/xe_wedged.c index a4fc53869..a3f7a697f 100644 --- a/tests/intel/xe_wedged.c +++ b/tests/intel/xe_wedged.c @@ -26,6 +26,12 @@ #include "xe/xe_query.h" #include "xe/xe_spin.h" +static void ignore_wedged_in_dmesg(void) +{ + /* this is needed for igt_runner so it will ignore it */ + igt_emit_ignore_dmesg_regex("CRITICAL: Xe has declared device [0-9A-Fa-f:.]* as wedged"); +} + static void force_wedged(int fd) { igt_debugfs_write(fd, "fail_gt_reset/probability", "100"); @@ -235,6 +241,8 @@ igt_main O_RDWR)); igt_assert_eq(simple_ioctl(fd), 0); + ignore_wedged_in_dmesg(); + force_wedged(fd); igt_assert_neq(simple_ioctl(fd), 0); fd = rebind_xe(fd); @@ -245,6 +253,7 @@ igt_main igt_subtest_f("wedged-at-any-timeout") { igt_require(igt_debugfs_exists(fd, "wedged_mode", O_RDWR)); + ignore_wedged_in_dmesg(); igt_debugfs_write(fd, "wedged_mode", "2"); simple_hang(fd); @@ -268,6 +277,7 @@ igt_main igt_debugfs_write(fd, "wedged_mode", "2"); igt_assert_eq(simple_ioctl(fd), 0); igt_debugfs_write(fd, "wedged_mode", "1"); + ignore_wedged_in_dmesg(); simple_hang(fd); igt_assert_eq(simple_ioctl(fd), 0); } -- 2.43.0