[PATCH i-g-t] tests/intel/kms_dp_linktrain_fallback: Reduce debug loglevel dynamically
Pranay Samala
pranay.samala at intel.com
Thu Jan 9 17:07:29 UTC 2025
This test is getting incomplete on CI environment because
its logging to many logs.
So dynamically reducing the debug log level to 10.
Signed-off-by: Pranay Samala <pranay.samala at intel.com>
---
tests/intel/kms_dp_linktrain_fallback.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/tests/intel/kms_dp_linktrain_fallback.c b/tests/intel/kms_dp_linktrain_fallback.c
index a05e2015f..415005774 100644
--- a/tests/intel/kms_dp_linktrain_fallback.c
+++ b/tests/intel/kms_dp_linktrain_fallback.c
@@ -14,7 +14,7 @@
*/
#include <sys/types.h>
-
+#include "igt_sysfs.h"
#include "igt.h"
/**
@@ -391,6 +391,7 @@ igt_main
data_t data = {};
igt_fixture {
+ int dir, current_log_level;
data.drm_fd = drm_open_driver_master(DRIVER_INTEL |
DRIVER_XE);
kmstest_set_vt_graphics_mode();
@@ -398,6 +399,14 @@ igt_main
igt_display_require_output(&data.display);
for_each_pipe(&data.display, data.pipe)
data.n_pipes++;
+ dir = igt_sysfs_drm_module_params_open();
+ if (dir >= 0) {
+ current_log_level = igt_drm_debug_level_get(dir);
+ close(dir);
+
+ if (current_log_level > 10)
+ igt_drm_debug_level_update(10);
+ }
}
igt_subtest("dp-fallback") {
--
2.34.1
More information about the igt-dev
mailing list