[i-g-t] lib/igt_kms: Clear connector dpms properties on reset

Bhanuprakash Modem bhanuprakash.modem at intel.com
Wed Aug 14 10:27:55 UTC 2024


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

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

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index e030b35a6..63d15163a 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -2573,6 +2573,9 @@ static void igt_output_reset(igt_output_t *output)
 
 	igt_output_set_prop_value(output, IGT_CONNECTOR_CRTC_ID, 0);
 
+	if (igt_output_has_prop(output, IGT_CONNECTOR_DPMS))
+		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,
 					  BROADCAST_RGB_FULL);
@@ -2594,6 +2597,9 @@ 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_MAX_BPC))
+		igt_output_set_prop_value(output, IGT_CONNECTOR_MAX_BPC, 12);
 }
 
 /**
-- 
2.43.2



More information about the Intel-gfx-trybot mailing list