From: Jonathan Cavitt <jonathan.cavitt@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: jonathan.cavitt@intel.com, saurabhg.gupta@intel.com,
alex.zuo@intel.com, francois.dugast@intel.com,
lucas.demarchi@intel.com, matthew.brost@intel.com,
rodrigo.vivi@intel.com, michal.wajdeczko@intel.com,
kamil.konieczny@linux.intel.com
Subject: [PATCH] tests/intel/xe_fault_injection: Ignore expected errors
Date: Wed, 6 Nov 2024 20:02:44 +0000 [thread overview]
Message-ID: <20241106200244.119564-1-jonathan.cavitt@intel.com> (raw)
The following errors can be observed when running the xe_fault_injection
subtests:
[drm] *ERROR* GT0: GuC init failed with -ENOMEM
[drm] *ERROR* GT0: Failed to initialize uC (-ENOMEM)
probe with driver xe failed with error -12
Add these messages to the dmesg ignore regex to the applicable tests
(specifically, all tests for the last error, and all tests that target
GuC subsystems for the first two errors).
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3343
Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
CC: Francois Dugast <francois.dugast@intel.com>
CC: Lucas De Marchi <lucas.demarchi@intel.com>
CC: Matthew Brost <matthew.brost@intel.com>
CC: Rodrigo Vivi <rodrigo.vivi@intel.com>
CC: Michal Wajdeczko <michal.wajdeczko@intel.com>
CC: Kamil Konieczny <kamil.konieczny@linux.intel.com>
---
tests/intel/xe_fault_injection.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/tests/intel/xe_fault_injection.c b/tests/intel/xe_fault_injection.c
index d1c8b25307..5bdc3d09e6 100644
--- a/tests/intel/xe_fault_injection.c
+++ b/tests/intel/xe_fault_injection.c
@@ -30,6 +30,27 @@ enum injection_list_action {
INJECTION_LIST_REMOVE,
};
+static bool function_is_part_of_guc(char function_name[])
+{
+ return strstr(function_name, "_guc_") != NULL ||
+ strstr(function_name, "_uc_") != NULL ||
+ strstr(function_name, "_wopcm_") != NULL;
+}
+
+static void ignore_faults_in_dmesg(char function_name[])
+{
+ /* Driver probe is expected to fail in all cases, so ignore in igt_runner */
+ igt_emit_ignore_dmesg_regex("probe with driver xe failed with error -12");
+
+ /*
+ * If GuC module fault is injected, GuC is expected to fail,
+ * so also ignore GuC init failures in igt_runner.
+ */
+ if (function_is_part_of_guc(function_name))
+ igt_emit_ignore_dmesg_regex("GT0: GuC init failed with -ENOMEM"
+ "|GT0: Failed to initialize uC (-ENOMEM)");
+}
+
/*
* The injectable file requires CONFIG_FUNCTION_ERROR_INJECTION in kernel.
*/
@@ -175,6 +196,7 @@ igt_main
if (regexec(®ex, line, 2, pmatch, 0) == 0) {
strcpy(function_name, line);
function_name[pmatch[1].rm_eo - 1] = '\0';
+ ignore_faults_in_dmesg(function_name);
igt_dynamic_f("function-%s", function_name)
inject_fault_try_bind(fd, pci_slot, function_name);
}
--
2.43.0
next reply other threads:[~2024-11-06 20:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-06 20:02 Jonathan Cavitt [this message]
2024-11-06 20:55 ` ✗ Fi.CI.BAT: failure for tests/intel/xe_fault_injection: Ignore expected errors Patchwork
2024-11-06 21:03 ` ✓ CI.xeBAT: success " Patchwork
2024-11-07 17:53 ` [PATCH] " Kamil Konieczny
2024-11-08 4:21 ` ✗ CI.xeFULL: failure for " 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=20241106200244.119564-1-jonathan.cavitt@intel.com \
--to=jonathan.cavitt@intel.com \
--cc=alex.zuo@intel.com \
--cc=francois.dugast@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
--cc=lucas.demarchi@intel.com \
--cc=matthew.brost@intel.com \
--cc=michal.wajdeczko@intel.com \
--cc=rodrigo.vivi@intel.com \
--cc=saurabhg.gupta@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox