public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Vinod Govindapillai <vinod.govindapillai@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: vinod.govindapillai@intel.com, santhosh.reddy.guddati@intel.com,
	swati2.sharma@intel.com, jani.nikula@intel.com,
	ville.syrjala@intel.com
Subject: [PATCH i-g-t v2 4/8] tests/intel/kms_frontbuffer_tracking: use intel_fbc_get_fbc_status()
Date: Tue,  7 Apr 2026 12:58:39 +0300	[thread overview]
Message-ID: <20260407095843.43679-5-vinod.govindapillai@intel.com> (raw)
In-Reply-To: <20260407095843.43679-1-vinod.govindapillai@intel.com>

Use the common intel_fbc_get_fbc_status() to get the fbc status

Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
---
 tests/intel/kms_frontbuffer_tracking.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/tests/intel/kms_frontbuffer_tracking.c b/tests/intel/kms_frontbuffer_tracking.c
index 427cf3262..602dd86d0 100644
--- a/tests/intel/kms_frontbuffer_tracking.c
+++ b/tests/intel/kms_frontbuffer_tracking.c
@@ -1574,8 +1574,8 @@ static struct timespec fbc_get_last_action(void)
 	char *action;
 	ssize_t n_read;
 
+	intel_fbc_get_fbc_status(prim_mode_params.crtc, buf, sizeof(buf));
 
-	debugfs_read_crtc("i915_fbc_status", buf);
 	action = strstr(buf, "\nLast action:");
 	igt_assert(action);
 
@@ -1623,8 +1623,8 @@ static void fbc_setup_last_action(void)
 	char buf[128];
 	char *action;
 
+	intel_fbc_get_fbc_status(prim_mode_params.crtc, buf, sizeof(buf));
 
-	debugfs_read_crtc("i915_fbc_status", buf);
 	action = strstr(buf, "\nLast action:");
 	if (!action) {
 		igt_info("FBC last action not supported\n");
@@ -1642,7 +1642,8 @@ static bool fbc_is_compressing(void)
 {
 	char buf[128];
 
-	debugfs_read_crtc("i915_fbc_status", buf);
+	intel_fbc_get_fbc_status(prim_mode_params.crtc, buf, sizeof(buf));
+
 	return strstr(buf, "\nCompressing: yes\n") != NULL;
 }
 
@@ -1657,7 +1658,7 @@ static bool fbc_found_skip_reason(void)
 	char fbc_status[128];
 	int i;
 
-	debugfs_read_crtc("i915_fbc_status", fbc_status);
+	intel_fbc_get_fbc_status(prim_mode_params.crtc, fbc_status, sizeof(fbc_status));
 
 	if (strstr(fbc_status, "FBC Enabled\n"))
 		return false;
@@ -1675,7 +1676,8 @@ static bool fbc_enable_per_plane(int plane_index, igt_crtc_t *crtc)
 
 	sprintf(buf_plane, "%d%s", plane_index, igt_crtc_name(crtc));
 
-	debugfs_read_crtc("i915_fbc_status", buf);
+	intel_fbc_get_fbc_status(prim_mode_params.crtc, buf, sizeof(buf));
+
 	return strstr(strstr(buf, "*"), buf_plane);
 }
 
-- 
2.43.0


  parent reply	other threads:[~2026-04-07  9:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-07  9:58 [PATCH i-g-t v2 0/8] updates to fbc tests Vinod Govindapillai
2026-04-07  9:58 ` [PATCH i-g-t v2 1/8] tests/intel/kms_frontbuffer_tracking: update the outdated fbc status checks Vinod Govindapillai
2026-04-07  9:58 ` [PATCH i-g-t v2 2/8] tests/intel/kms_frontbuffer_tracking: avoid multiple fbc status queries Vinod Govindapillai
2026-04-07 11:14   ` Jani Nikula
2026-04-07  9:58 ` [PATCH i-g-t v2 3/8] lib/i915/fbc: extract intel_fbc_get_fbc_status() Vinod Govindapillai
2026-04-07  9:58 ` Vinod Govindapillai [this message]
2026-04-07  9:58 ` [PATCH i-g-t v2 5/8] tests/intel/kms_frontbuffer_tracking: use a bigger fbc status buffer Vinod Govindapillai
2026-04-07  9:58 ` [PATCH i-g-t v2 6/8] tests/intel/kms_fbcon_fbt: " Vinod Govindapillai
2026-04-07  9:58 ` [PATCH i-g-t v2 7/8] tests/intel/kms_fbcon_fbt: update the outdated fbc skip reasons Vinod Govindapillai
2026-04-07  9:58 ` [PATCH i-g-t v2 8/8] tests/intel/kms_fbcon_fbt: use a common source for checking fbc tests skips Vinod Govindapillai
2026-04-07 11:21   ` Jani Nikula
2026-04-09  5:38 ` ✓ Xe.CI.BAT: success for updates to fbc tests (rev2) Patchwork
2026-04-09  5:56 ` ✓ i915.CI.BAT: " Patchwork
2026-04-09  7:00 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-04-09 16:43 ` ✗ i915.CI.Full: " 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=20260407095843.43679-5-vinod.govindapillai@intel.com \
    --to=vinod.govindapillai@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    --cc=santhosh.reddy.guddati@intel.com \
    --cc=swati2.sharma@intel.com \
    --cc=ville.syrjala@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