Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Lucas De Marchi <lucas.demarchi@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Lucas De Marchi <lucas.demarchi@intel.com>,
	Matt Roper <matthew.d.roper@intel.com>
Subject: [CI 9/9] xe_module_load: Stop caring about snd
Date: Mon, 18 Nov 2024 21:40:08 -0800	[thread overview]
Message-ID: <20241119054008.2001984-9-lucas.demarchi@intel.com> (raw)
In-Reply-To: <20241119054008.2001984-1-lucas.demarchi@intel.com>

Just handle xe and it should work.

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
---
 tests/intel/xe_module_load.c | 40 ------------------------------------
 1 file changed, 40 deletions(-)

diff --git a/tests/intel/xe_module_load.c b/tests/intel/xe_module_load.c
index 83e37430f..b91da5c32 100644
--- a/tests/intel/xe_module_load.c
+++ b/tests/intel/xe_module_load.c
@@ -36,52 +36,12 @@
 #define BAR_SIZE_SHIFT 20
 #define MIN_BAR_SIZE 256
 
-static void file_write(const char *ptr, size_t size, size_t nmemb,
-                       FILE *fp)
-{
-	int count;
-
-	count = fwrite(ptr, size, nmemb, fp);
-	if (count == size * nmemb)
-		return;
-
-	igt_debug("Can't update hda dynamic debug with : %s\n", ptr);
-}
-
-static void hda_dynamic_debug(bool enable)
-{
-	FILE *fp;
-	static const char snd_hda_intel_on[] = "module snd_hda_intel +pf";
-	static const char snd_hda_core_on[] = "module snd_hda_core +pf";
-
-	static const char snd_hda_intel_off[] = "module snd_hda_intel =_";
-	static const char snd_hda_core_off[] = "module snd_hda_core =_";
-
-	fp = fopen("/sys/kernel/debug/dynamic_debug/control", "w");
-	if (!fp) {
-		igt_debug("hda dynamic debug not available\n");
-		return;
-	}
-
-	if (enable) {
-		file_write(snd_hda_intel_on, 1, sizeof(snd_hda_intel_on), fp);
-		file_write(snd_hda_core_on, 1, sizeof(snd_hda_core_on), fp);
-	} else {
-		file_write(snd_hda_intel_off, 1, sizeof(snd_hda_intel_off), fp);
-		file_write(snd_hda_core_off, 1, sizeof(snd_hda_core_off), fp);
-	}
-
-	fclose(fp);
-}
-
 static void load_and_check_xe(const char *opts)
 {
 	int error;
 	int drm_fd;
 
-	hda_dynamic_debug(true);
 	error = igt_xe_driver_load(opts);
-	hda_dynamic_debug(false);
 
 	igt_assert_eq(error, 0);
 
-- 
2.47.0


  parent reply	other threads:[~2024-11-19  5:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-19  5:40 [CI 1/9] lib/igt_kmod: Remove unused module_ref Lucas De Marchi
2024-11-19  5:40 ` [CI 2/9] tests/intel/perf_pmu: Remove trial unload Lucas De Marchi
2024-11-19  5:40 ` [CI 3/9] lib/igt_kmod: Share xe's unload logic with i915 Lucas De Marchi
2024-11-19  5:40 ` [CI 4/9] lib/igt_kmod: Remove unused low level __igt_intel_driver_unload() Lucas De Marchi
2024-11-19  5:40 ` [CI 5/9] tests/core_hotunplug: Stop unloading audio Lucas De Marchi
2024-11-19  5:40 ` [CI 6/9] tests/device_reset: " Lucas De Marchi
2024-11-19  5:40 ` [CI 7/9] lib: Remove unused audio-related helpers Lucas De Marchi
2024-11-19  5:40 ` [CI 8/9] i915_module_load: Stop caring about snd/intel-gtt Lucas De Marchi
2024-11-19  5:40 ` Lucas De Marchi [this message]
2024-11-19 16:37 ` ✗ CI.xeBAT: failure for series starting with [CI,1/9] lib/igt_kmod: Remove unused module_ref Patchwork
2024-11-19 16:53 ` ✗ Fi.CI.BAT: " Patchwork
2024-11-21 22:02   ` Lucas De Marchi
2024-12-03 23:17     ` ✗ Fi.CI.BAT: failure for series starting with [CI, 1/9] " Matt Roper
     [not found]       ` <2z26xmkwu2n3z2ls7xf33rlogccpjsxdradgax3qb7hyys5kbs@l6s5aeisijex>
2024-12-04  0:00         ` Matt Roper
2024-12-04 14:11         ` Imre Deak
2024-11-20  2:36 ` ✗ CI.xeFULL: failure for series starting with [CI,1/9] " 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=20241119054008.2001984-9-lucas.demarchi@intel.com \
    --to=lucas.demarchi@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=matthew.d.roper@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