Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Pranay Samala <pranay.samala@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: karthik.b.s@intel.com, kunal1.joshi@intel.com,
	sameer.lattannavar@intel.com, pranay.samala@intel.com
Subject: [PATCH i-g-t] tests/intel/kms_dp_linktrain_fallback: Reduce debug loglevel dynamically
Date: Thu,  9 Jan 2025 22:37:29 +0530	[thread overview]
Message-ID: <20250109170729.47646-1-pranay.samala@intel.com> (raw)

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@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


             reply	other threads:[~2025-01-09 17:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-09 17:07 Pranay Samala [this message]
2025-01-09 18:31 ` ✓ i915.CI.BAT: success for tests/intel/kms_dp_linktrain_fallback: Reduce debug loglevel dynamically Patchwork
2025-01-09 19:24 ` ✓ Xe.CI.BAT: " Patchwork
2025-01-10  3:18 ` [PATCH i-g-t] " B, Jeevan
2025-01-12  5:42 ` ✗ Xe.CI.Full: failure for " Patchwork
2025-01-13  2:09 ` ✗ i915.CI.Full: " Patchwork
2025-01-29  5:39 ` [PATCH i-g-t] " B, Jeevan
2025-01-29  5:49   ` Samala, Pranay
2025-01-29  5:52     ` B, Jeevan

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=20250109170729.47646-1-pranay.samala@intel.com \
    --to=pranay.samala@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=karthik.b.s@intel.com \
    --cc=kunal1.joshi@intel.com \
    --cc=sameer.lattannavar@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