From: Shuicheng Lin <shuicheng.lin@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Shuicheng Lin <shuicheng.lin@intel.com>,
Nishit Sharma <nishit.sharma@intel.com>,
Jonathan Cavitt <jonathan.cavitt@intel.com>
Subject: [PATCH 1/4] tests/intel/xe_exec_reset: Fix gt reset fault dmesg ignore regex
Date: Wed, 7 Oct 2026 21:06:00 +0000 [thread overview]
Message-ID: <20261007210603.1350158-2-shuicheng.lin@intel.com> (raw)
In-Reply-To: <20261007210603.1350158-1-shuicheng.lin@intel.com>
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.
Use bracket expressions for the literal parentheses so the regex
survives kmsg escaping.
Cc: Nishit Sharma <nishit.sharma@intel.com>
Cc: Jonathan Cavitt <jonathan.cavitt@intel.com>
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
---
tests/intel/xe_exec_reset.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/tests/intel/xe_exec_reset.c b/tests/intel/xe_exec_reset.c
index 50771af53..901ce2f3f 100644
--- a/tests/intel/xe_exec_reset.c
+++ b/tests/intel/xe_exec_reset.c
@@ -928,12 +928,17 @@ 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"
+ /*
+ * The regex is passed to igt_runner through /dev/kmsg, which escapes
+ * '\\' as "\\x5c", so use bracket expressions instead of backslash
+ * escapes for literal parentheses.
+ */
+ 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
next prev parent reply other threads:[~2026-10-07 21:10 UTC|newest]
Thread overview: 10+ 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 ` Shuicheng Lin [this message]
2026-10-07 21:11 ` [PATCH 1/4] tests/intel/xe_exec_reset: Fix gt reset fault dmesg ignore regex Cavitt, Jonathan
2026-10-07 21:06 ` [PATCH 2/4] tests/intel/xe_wedged: Fix wedged " Shuicheng Lin
2026-10-07 21:06 ` [PATCH 3/4] tests/intel/xe_fault_injection: Avoid backslash escapes in " Shuicheng Lin
2026-10-07 21:06 ` [PATCH 4/4] runner/resultgen: Decode kmsg escapes in ignored dmesg regex Shuicheng Lin
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-2-shuicheng.lin@intel.com \
--to=shuicheng.lin@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jonathan.cavitt@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.