All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shuicheng Lin <shuicheng.lin@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Shuicheng Lin <shuicheng.lin@intel.com>,
	Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	Nishit Sharma <nishit.sharma@intel.com>
Subject: [PATCH 2/4] tests/intel/xe_wedged: Fix wedged dmesg ignore regex
Date: Wed,  7 Oct 2026 21:06:01 +0000	[thread overview]
Message-ID: <20261007210603.1350158-3-shuicheng.lin@intel.com> (raw)
In-Reply-To: <20261007210603.1350158-1-shuicheng.lin@intel.com>

The kernel now reports the failed GT reset and the device wedge through
SIGID-based logging:

  SIGID=106 FATAL (-ECANCELED) Tile0: GT0: GT: reset failed
  SIGID=102 FATAL (-EIO) WEDGED: Device declared wedged!

which the existing "reset failed .-ECANCELED" and "declared device ...
as wedged" patterns no longer match, so these expected errors are
reported as dmesg-warn. Add patterns for the new messages.

Also fix the CAT error pattern. igt_emit_ignore_dmesg_regex() passes the
regex to igt_runner through /dev/kmsg, which escapes '\' as "\x5c", so
"\[" no longer matches a literal '['. The pattern also lacked the space
before "class=". Use bracket expressions and add the missing space.

Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Cc: Nishit Sharma <nishit.sharma@intel.com>
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
---
 tests/intel/xe_wedged.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/intel/xe_wedged.c b/tests/intel/xe_wedged.c
index 8c3c8bd36..0cd884450 100644
--- a/tests/intel/xe_wedged.c
+++ b/tests/intel/xe_wedged.c
@@ -41,6 +41,10 @@ static void ignore_wedged_in_dmesg(void)
 				    "|GT[0-9A-Fa-f]*: Failed to submit"
 				    "|Modules linked in:"
 				    "|__pfx___drm_"
+				    /* SIGID-based logging (newer kernels) */
+				    "|[(]-ECANCELED[)] .* GT: reset failed"
+				    "|[(]-EIO[)] WEDGED: Device declared wedged"
+				    "|IOCTLs and executions are now blocked"
 				    "|Tile[0-9]+: GT[0-9A-Fa-f]*:$"
 				    "|ASID: [0-9]+"
 				    "|Faulted Address: 0x[0-9A-Fa-f]+"
@@ -50,7 +54,7 @@ static void ignore_wedged_in_dmesg(void)
 				    "|EngineClass: [0-9]+ [a-z]+"
 				    "|EngineInstance: [0-9]+"
 				    "|Tile[0-9]+: GT[0-9A-Fa-f]*: Fault response: Unsuccessful -EINVAL"
-				    "|Tile[0-9]+: GT[0-9A-Fa-f]*: Engine memory CAT error \\[[0-9]+\\]:"
+				    "|Tile[0-9]+: GT[0-9A-Fa-f]*: Engine memory CAT error [[][0-9]+[]]: "
 				    "class=[a-z]+, logical_mask: 0x[0-9A-Fa-f]+, guc_id=[0-9]+");
 }
 
-- 
2.43.0


  parent reply	other threads:[~2026-10-07 21:08 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-07 21:05 [PATCH 0/4] Fix dmesg ignore regexes with backslash escapes Shuicheng Lin
2026-10-07 21:06 ` [PATCH 1/4] tests/intel/xe_exec_reset: Fix gt reset fault dmesg ignore regex Shuicheng Lin
2026-10-07 21:11   ` Cavitt, Jonathan
2026-10-08 15:07   ` Kamil Konieczny
2026-10-08 22:19     ` Lin, Shuicheng
2026-10-07 21:06 ` Shuicheng Lin [this message]
2026-10-08 14:33   ` [PATCH 2/4] tests/intel/xe_wedged: Fix wedged " Kamil Konieczny
2026-10-08 22:49     ` Lin, Shuicheng
2026-10-07 21:06 ` [PATCH 3/4] tests/intel/xe_fault_injection: Avoid backslash escapes in " Shuicheng Lin
2026-10-08 14:36   ` Kamil Konieczny
2026-10-08 22:58     ` Lin, Shuicheng
2026-10-07 21:06 ` [PATCH 4/4] runner/resultgen: Decode kmsg escapes in ignored dmesg regex Shuicheng Lin
2026-10-08 15:02   ` Kamil Konieczny
2026-10-08 23:50     ` Lin, Shuicheng
2026-10-07 21:56 ` ✓ i915.CI.BAT: success for Fix dmesg ignore regexes with backslash escapes Patchwork
2026-10-07 22:23 ` ✓ Xe.CI.BAT: " Patchwork
2026-10-08  2:12 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-10-08  6:19 ` ✓ i915.CI.Full: success " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261007210603.1350158-3-shuicheng.lin@intel.com \
    --to=shuicheng.lin@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=nishit.sharma@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.