Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/kms_cursor_legacy: Reduce debug loglevel dynamically
@ 2025-01-28  5:28 Pranay Samala
  2025-01-28  6:55 ` ✓ Xe.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Pranay Samala @ 2025-01-28  5:28 UTC (permalink / raw)
  To: igt-dev; +Cc: karthik.b.s, kunal1.joshi, sameer.lattannavar, pranay.samala

This test is getting killed due to exceeding disk usage
limit 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@intel.com>
---
 tests/kms_cursor_legacy.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c
index 1f082df2d..533972cd4 100644
--- a/tests/kms_cursor_legacy.c
+++ b/tests/kms_cursor_legacy.c
@@ -40,6 +40,7 @@
 #include "igt_psr.h"
 #include "igt_rand.h"
 #include "igt_stats.h"
+#include "igt_sysfs.h"
 
 /**
  * SUBTEST: %s-%s
@@ -1840,6 +1841,7 @@ igt_main
 	};
 
 	igt_fixture {
+		int dir, current_log_level;
 		display.drm_fd = drm_open_driver_master(DRIVER_ANY);
 		kmstest_set_vt_graphics_mode();
 
@@ -1850,6 +1852,15 @@ igt_main
 		 * fetch is enabled, so switching PSR1 for this whole test.
 		 */
 		intel_psr2_restore = i915_psr2_sel_fetch_to_psr1(display.drm_fd, NULL);
+
+		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_describe("Test checks how many cursor updates we can fit between vblanks "
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-02-20  7:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-28  5:28 [PATCH i-g-t] tests/kms_cursor_legacy: Reduce debug loglevel dynamically Pranay Samala
2025-01-28  6:55 ` ✓ Xe.CI.BAT: success for " Patchwork
2025-01-28  7:00 ` ✗ i915.CI.BAT: failure " Patchwork
2025-01-28  7:30 ` [PATCH i-g-t] " Dandamudi, Priyanka
2025-01-28 18:19 ` ✗ Xe.CI.Full: failure for " Patchwork
2025-02-10 15:11 ` [PATCH i-g-t] " Leo Li
2025-02-10 15:58   ` Jani Nikula
2025-02-19 14:39     ` Wheeler, Daniel
2025-02-20  7:00       ` Samala, Pranay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox