Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Subject: [i-g-t 1/2] lib/igt_kms: Clear all pipe properties on reset
Date: Tue, 13 Aug 2024 18:45:19 +0530	[thread overview]
Message-ID: <20240813131520.2715442-2-bhanuprakash.modem@intel.com> (raw)
In-Reply-To: <20240813131520.2715442-1-bhanuprakash.modem@intel.com>

Just to sanitize all properties we should clear all
pipe properties on reset.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
 lib/igt_kms.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index e030b35a6..f5fc9ada1 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -2562,6 +2562,9 @@ static void igt_pipe_reset(igt_pipe_t *pipe)
 	if (igt_pipe_obj_has_prop(pipe, IGT_CRTC_SCALING_FILTER))
 		igt_pipe_obj_set_prop_enum(pipe, IGT_CRTC_SCALING_FILTER, "Default");
 
+	if (igt_pipe_obj_has_prop(pipe, IGT_CRTC_VRR_ENABLED))
+		igt_pipe_obj_set_prop_value(pipe, IGT_CRTC_VRR_ENABLED, 0);
+
 	pipe->out_fence_fd = -1;
 }
 
-- 
2.43.2


  reply	other threads:[~2024-08-13 13:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-13 13:15 [i-g-t 0/2] Clear all KMS properties on reset Bhanuprakash Modem
2024-08-13 13:15 ` Bhanuprakash Modem [this message]
2024-08-13 13:15 ` [i-g-t 2/2] lib/igt_kms: Clear all connector " Bhanuprakash Modem
2024-08-13 15:26 ` ✗ CI.xeBAT: failure for Clear all KMS " Patchwork
2024-08-13 15:38 ` ✗ Fi.CI.BAT: " Patchwork
2024-08-13 17:54 ` ✗ CI.xeFULL: " Patchwork
2024-08-14  3:58 ` ✗ Fi.CI.BAT: failure for Clear all KMS properties on reset (rev2) Patchwork
2024-08-14  4:00 ` ✗ CI.xeBAT: " Patchwork
2024-08-14  5:04 ` ✗ CI.xeFULL: " 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=20240813131520.2715442-2-bhanuprakash.modem@intel.com \
    --to=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /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