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 V2 4/5] lib/igt_kms: Force "edid_override" to NULL on exit
Date: Tue, 24 Sep 2024 19:56:37 +0530	[thread overview]
Message-ID: <20240924142638.238291-5-bhanuprakash.modem@intel.com> (raw)
In-Reply-To: <20240924142638.238291-1-bhanuprakash.modem@intel.com>

Force "edid_override" to NULL on each connector on exit.

V2: - Ignore if connector config not found

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

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index d7f6e475e..c1d80dbb8 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -3410,8 +3410,12 @@ void igt_display_fini(igt_display_t *display)
 	for (i = 0; i < display->n_pipes; i++)
 		igt_pipe_fini(&display->pipes[i]);
 
-	for (i = 0; i < display->n_outputs; i++)
+	for (i = 0; i < display->n_outputs; i++) {
+		if ((&display->outputs[i])->config.connector)
+			kmstest_force_edid(display->drm_fd, (&display->outputs[i])->config.connector, NULL);
 		igt_output_fini(&display->outputs[i]);
+	}
+
 	free(display->outputs);
 	display->outputs = NULL;
 	free(display->pipes);
-- 
2.43.0


  parent reply	other threads:[~2024-09-24 14:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-24 14:26 [i-g-t V2 0/5] Force connector/crtc attrs to default Bhanuprakash Modem
2024-09-24 14:26 ` [i-g-t V2 1/5] lib/igt_kms: Add infra to handle crtc arbitrary attributes Bhanuprakash Modem
2024-11-15 17:20   ` Kamil Konieczny
2024-11-18  9:48     ` Modem, Bhanuprakash
2024-09-24 14:26 ` [i-g-t V2 2/5] lib/drrs: Add support to force drrs to default on exit Bhanuprakash Modem
2024-09-24 14:26 ` [i-g-t V2 3/5] lib/dsc: Reset DSC bpc " Bhanuprakash Modem
2024-09-24 14:26 ` Bhanuprakash Modem [this message]
2024-09-24 14:26 ` [i-g-t V2 5/5] lib/igt_kms: Reset spurious hpd " Bhanuprakash Modem
2024-09-26  3:53 ` ✗ Fi.CI.BAT: failure for Force connector/crtc attrs to default (rev2) Patchwork
2024-09-26  4:06 ` ✗ CI.xeBAT: " Patchwork
2024-09-26 13:35 ` ✗ CI.xeFULL: " Patchwork
2024-11-14  9:38 ` ✓ CI.xeBAT: success for Force connector/crtc attrs to default (rev3) Patchwork
2024-11-14  9:47 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-11-14 18:50 ` ✗ 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=20240924142638.238291-5-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