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 EBF59CA6017 for ; Fri, 9 Oct 2026 00:32:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7341C10EA58; Fri, 9 Oct 2026 00:32:25 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="EcDWN1a6"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 303B010E188 for ; Fri, 9 Oct 2026 00:29:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1791505775; x=1823041775; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eFDR7Eq/H8pOMFfoSqDk7e6Cq/QzqlQDFIscyby397I=; b=EcDWN1a64RtglW4Ffgd0PRlHAq5nBwsSMDpfgp1uAvWGSlsrvTlK2vCm oRfG/IyC6UPxPioOdwDyLB2Oyyyr8NqrIAbHvEbGLJ+9Hh3Ukx0om+I1Q ycAHTPMgt1V6YVKRfv42vh7MlUbstZKmqybfkZ+cGXD/te3wF3utZMK/r T5p+gNZLdz2j3tp7ZSc36tNvXc9981ymhsEGG73vmE0VQZ+NmcGSwkGf4 KcWYCXh5LUC7NQR2hSO29/yMKzqgBacaVlyGpL9hLjlc+rthh0QebQ4yU 5YQujZY50VaPcnHVzphwmQJBB6lYKX6TjgTY98s2ArGO8ICWKgQX66w2L w==; X-CSE-ConnectionGUID: FH6SvyvyQY6mZRBrXwX/JA== X-CSE-MsgGUID: 7/nX1eKvToSjlJdP7pzzVg== X-IronPort-AV: E=McAfee;i="6800,10657,11929"; a="306337" X-IronPort-AV: E=Sophos;i="6.27,147,1787036400"; d="scan'208";a="306337" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2026 17:29:33 -0700 X-CSE-ConnectionGUID: 0YvW6XBARPGmkr41k112OA== X-CSE-MsgGUID: RnN7jI7NSymGWA80y9ChxA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,147,1787036400"; d="scan'208";a="263923" Received: from osgcshtiger.sh.intel.com ([10.239.81.49]) by fmviesa004.fm.intel.com with ESMTP; 08 Oct 2026 17:29:31 -0700 From: Shuicheng Lin To: igt-dev@lists.freedesktop.org Cc: Shuicheng Lin , Nishit Sharma , Kamil Konieczny , Jonathan Cavitt Subject: [PATCH v2 1/4] tests/intel/xe_exec_reset: Fix gt reset fault dmesg ignore regex Date: Fri, 9 Oct 2026 00:29:09 +0000 Message-Id: <20261009002912.1391610-2-shuicheng.lin@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261009002912.1391610-1-shuicheng.lin@intel.com> References: <20261009002912.1391610-1-shuicheng.lin@intel.com> MIME-Version: 1.0 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" igt_emit_ignore_dmesg_regex() passes the regex to igt_runner through /dev/kmsg, and the kernel escapes '\' as "\x5c" in kmsg records. igt_runner compiles the ignore regex from the escaped record, so "\(-ECANCELED\)" turns into "\x5c(-ECANCELED\x5c)", which requires a literal backslash and never matches. As a result the expected "(-ECANCELED) ... GT: reset failed" and "(-EIO) WEDGED" errors are reported as dmesg-warn/dmesg-fail in gt-reset-fault-injection. Avoid backslash escapes by dropping the opening parenthesis and matching the closing one with '.'. v2: Drop the parentheses instead of using bracket expressions and drop the comment (Kamil) Cc: Nishit Sharma Cc: Kamil Konieczny Reviewed-by: Jonathan Cavitt Signed-off-by: Shuicheng Lin --- tests/intel/xe_exec_reset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/intel/xe_exec_reset.c b/tests/intel/xe_exec_reset.c index 50771af53..3e8ca794b 100644 --- a/tests/intel/xe_exec_reset.c +++ b/tests/intel/xe_exec_reset.c @@ -928,12 +928,12 @@ static int try_vm_create(int fd) static void ignore_gt_reset_fault_dmesg(void) { - igt_emit_ignore_dmesg_regex("\\(-ECANCELED\\) .* GT: reset failed" - "|\\(-EIO\\) WEDGED: Device declared wedged" + igt_emit_ignore_dmesg_regex("-ECANCELED.* GT: reset failed" + "|-EIO. WEDGED: Device declared wedged" "|IOCTLs and executions are now blocked" "|For recovery procedure, refer to" "|Please file a _new_ bug report at" - "|Failed to invalidate GGTT \\(-ENOTRECOVERABLE\\)" + "|Failed to invalidate GGTT .-ENOTRECOVERABLE" "|GPU HANG" "|Failed to reset"); } -- 2.43.0