From: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Subject: [i-g-t 2/2] lib/igt_kms: Clear all connector properties on reset
Date: Tue, 13 Aug 2024 18:45:20 +0530 [thread overview]
Message-ID: <20240813131520.2715442-3-bhanuprakash.modem@intel.com> (raw)
In-Reply-To: <20240813131520.2715442-1-bhanuprakash.modem@intel.com>
Just to sanitize all properties we should clear all
connector properties on reset.
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
lib/igt_kms.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index f5fc9ada1..f52b35a72 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -2575,6 +2575,7 @@ static void igt_output_reset(igt_output_t *output)
memset(&output->override_mode, 0, sizeof(output->override_mode));
igt_output_set_prop_value(output, IGT_CONNECTOR_CRTC_ID, 0);
+ igt_output_set_prop_value(output, IGT_CONNECTOR_DPMS, DRM_MODE_DPMS_OFF);
if (igt_output_has_prop(output, IGT_CONNECTOR_BROADCAST_RGB))
igt_output_set_prop_value(output, IGT_CONNECTOR_BROADCAST_RGB,
@@ -2597,6 +2598,13 @@ static void igt_output_reset(igt_output_t *output)
if (igt_output_has_prop(output, IGT_CONNECTOR_DITHERING_MODE))
igt_output_set_prop_enum(output, IGT_CONNECTOR_DITHERING_MODE,
"off");
+
+ if (igt_output_has_prop(output, IGT_CONNECTOR_SCALING_MODE))
+ igt_output_set_prop_value(output, IGT_CONNECTOR_SCALING_MODE,
+ DRM_MODE_SCALE_NONE);
+
+ if (igt_output_has_prop(output, IGT_CONNECTOR_MAX_BPC))
+ igt_output_set_prop_value(output, IGT_CONNECTOR_MAX_BPC, 12);
}
/**
--
2.43.2
next prev parent reply other threads:[~2024-08-13 13:25 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 ` [i-g-t 1/2] lib/igt_kms: Clear all pipe " Bhanuprakash Modem
2024-08-13 13:15 ` Bhanuprakash Modem [this message]
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-3-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