[PATCH i-g-t v2 2/4] tests/intel/xe_configfs: Unbind before testing engines_allowed
Lucas De Marchi
lucas.demarchi at intel.com
Mon Aug 25 15:59:44 UTC 2025
Future kernel change will require the driver not to be bound yet in
order to allow this configfs setting because it has no effect
otherwise. Make sure we unbind before testing this.
Reference: https://patchwork.freedesktop.org/patch/669151/?series=151729&rev=4
Reviewed-by: Riana Tauro <riana.tauro at intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
---
v2:
- s/bind/bound/ where appropriate (Riana)
---
tests/intel/xe_configfs.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/tests/intel/xe_configfs.c b/tests/intel/xe_configfs.c
index 57f770b0b..bed92714f 100644
--- a/tests/intel/xe_configfs.c
+++ b/tests/intel/xe_configfs.c
@@ -73,6 +73,12 @@ static void test_engines_allowed_invalid(int configfs_device_fd)
"rcs0asdf",
};
+ /*
+ * These only test if engine parsing is correct, so just make sure
+ * there's no device bound
+ */
+ igt_kmod_unbind("xe", bus_addr);
+
for (size_t i = 0; i < ARRAY_SIZE(values); i++) {
const char *v = values[i];
@@ -93,6 +99,12 @@ static void test_engines_allowed(int configfs_device_fd)
"rcs000",
};
+ /*
+ * These only test if engine parsing is correct, so just make sure
+ * there's no device bound
+ */
+ igt_kmod_unbind("xe", bus_addr);
+
for (size_t i = 0; i < ARRAY_SIZE(values); i++) {
const char *v = values[i];
--
2.50.1
More information about the igt-dev
mailing list