Skip to contentSkip to conversation

tests/kms_chamelium: Make tests run without pipe color management support.

PATCH In review Maarten Lankhorst 3 participants 6 messages Mar 5, 2018 – Mar 12, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/kms_chamelium: Make tests run without pipe color management support.

Only try to set those values if the properties are supported. This fixes the kms_chameium tests to run on vc4 again.

Cc Paul Kocialkowski <[email protected]>
Cc Eric Anholt <[email protected]>
Cc Boris Brezillon <[email protected]>
---
 tests/kms_chamelium.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
tests/kms_chamelium.c +6 -3
index 8855a8300049..2bc34d07788d 100644
@@ -471,9 +471,12 @@ enable_output(data_t *data,
 	igt_output_override_mode(output, mode);
 
 	/* Clear any color correction values that might be enabled */
-	igt_pipe_obj_replace_prop_blob(primary->pipe, IGT_CRTC_DEGAMMA_LUT, NULL, 0);
-	igt_pipe_obj_replace_prop_blob(primary->pipe, IGT_CRTC_GAMMA_LUT, NULL, 0);
-	igt_pipe_obj_replace_prop_blob(primary->pipe, IGT_CRTC_CTM, NULL, 0);
+	if (igt_pipe_obj_has_prop(primary->pipe, IGT_CRTC_DEGAMMA_LUT))
+		igt_pipe_obj_replace_prop_blob(primary->pipe, IGT_CRTC_DEGAMMA_LUT, NULL, 0);
+	if (igt_pipe_obj_has_prop(primary->pipe, IGT_CRTC_GAMMA_LUT))
+		igt_pipe_obj_replace_prop_blob(primary->pipe, IGT_CRTC_GAMMA_LUT, NULL, 0);
+	if (igt_pipe_obj_has_prop(primary->pipe, IGT_CRTC_CTM))
+		igt_pipe_obj_replace_prop_blob(primary->pipe, IGT_CRTC_CTM, NULL, 0);
 
 	igt_display_commit2(display, COMMIT_ATOMIC);
 
Signature · 6 lines
2.16.2

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#1 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for tests/kms_chamelium: Make tests run without pipe color management support.

== Series Details ==

== Series Details ==

Series: tests/kms_chamelium: Make tests run without pipe color management support.
URL : https://patchwork.freedesktop.org/series/39396/
State : success

== Summary ==

IGT patchset tested on top of latest successful build 68fb7595bc16a9672ea20e86431763f833cf47a7 lib/sysfs: s/kick_fbcon/bind_fbcon/

with latest DRM-Tip kernel build CI_DRM_3874
82e049a0d7e6 drm-tip: 2018y-03m-05d-18h-55m-22s UTC integration manifest

No testlist changes.

---- Known issues:

Test prime_vgem:

        Subgroup basic-fence-flip:
                pass       -> FAIL       (fi-ilk-650) fdo#104008

fdo#104008 https://bugs.freedesktop.org/show_bug.cgi?id=104008

fi-bdw-5557u     total:288  pass:267  dwarn:0   dfail:0   fail:0   skip:21  time:426s
fi-bdw-gvtdvm    total:288  pass:264  dwarn:0   dfail:0   fail:0   skip:24  time:425s
fi-blb-e6850     total:288  pass:223  dwarn:1   dfail:0   fail:0   skip:64  time:375s
fi-bsw-n3050     total:288  pass:242  dwarn:0   dfail:0   fail:0   skip:46  time:503s
fi-bwr-2160      total:288  pass:183  dwarn:0   dfail:0   fail:0   skip:105 time:280s
fi-bxt-dsi       total:288  pass:258  dwarn:0   dfail:0   fail:0   skip:30  time:494s
fi-bxt-j4205     total:288  pass:259  dwarn:0   dfail:0   fail:0   skip:29  time:490s
fi-byt-j1900     total:288  pass:253  dwarn:0   dfail:0   fail:0   skip:35  time:482s
fi-byt-n2820     total:288  pass:249  dwarn:0   dfail:0   fail:0   skip:39  time:471s
fi-cfl-8700k     total:288  pass:260  dwarn:0   dfail:0   fail:0   skip:28  time:407s
fi-cfl-s2        total:288  pass:262  dwarn:0   dfail:0   fail:0   skip:26  time:578s
fi-elk-e7500     total:288  pass:229  dwarn:0   dfail:0   fail:0   skip:59  time:414s
fi-gdg-551       total:288  pass:179  dwarn:0   dfail:0   fail:1   skip:108 time:289s
fi-glk-1         total:288  pass:260  dwarn:0   dfail:0   fail:0   skip:28  time:518s
fi-hsw-4770      total:288  pass:261  dwarn:0   dfail:0   fail:0   skip:27  time:398s
fi-ilk-650       total:288  pass:227  dwarn:0   dfail:0   fail:1   skip:60  time:420s
fi-ivb-3520m     total:288  pass:259  dwarn:0   dfail:0   fail:0   skip:29  time:463s
fi-ivb-3770      total:288  pass:255  dwarn:0   dfail:0   fail:0   skip:33  time:423s
fi-kbl-7500u     total:288  pass:263  dwarn:1   dfail:0   fail:0   skip:24  time:470s
fi-kbl-7560u     total:108  pass:104  dwarn:0   dfail:0   fail:0   skip:3  
fi-kbl-7567u     total:288  pass:268  dwarn:0   dfail:0   fail:0   skip:20  time:464s
fi-kbl-r         total:288  pass:261  dwarn:0   dfail:0   fail:0   skip:27  time:505s
fi-pnv-d510      total:288  pass:222  dwarn:1   dfail:0   fail:0   skip:65  time:587s
fi-skl-6260u     total:288  pass:268  dwarn:0   dfail:0   fail:0   skip:20  time:437s
fi-skl-6600u     total:288  pass:261  dwarn:0   dfail:0   fail:0   skip:27  time:516s
fi-skl-6700hq    total:288  pass:262  dwarn:0   dfail:0   fail:0   skip:26  time:534s
fi-skl-6700k2    total:288  pass:264  dwarn:0   dfail:0   fail:0   skip:24  time:500s
fi-skl-6770hq    total:288  pass:268  dwarn:0   dfail:0   fail:0   skip:20  time:493s
fi-skl-guc       total:288  pass:260  dwarn:0   dfail:0   fail:0   skip:28  time:422s
fi-skl-gvtdvm    total:288  pass:265  dwarn:0   dfail:0   fail:0   skip:23  time:430s
fi-snb-2520m     total:288  pass:248  dwarn:0   dfail:0   fail:0   skip:40  time:525s
fi-snb-2600      total:288  pass:248  dwarn:0   dfail:0   fail:0   skip:40  time:391s

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1064/issues.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

Tested-by on v1 1/1
#2 lore raw
In reply to Maarten Lankhorst

Hi,

Quoted 8 lines · Maarten Lankhorst

Only try to set those values if the properties are supported. This fixes the kms_chameium tests to run on vc4 again.

Cc Paul Kocialkowski <[email protected]>
Cc Eric Anholt <[email protected]>
Cc Boris Brezillon <[email protected]>

This works like a charm now, thanks!

Maxime

Signature · 3 lines
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#3 lore raw

Op 06-03-18 om 16:57 schreef Maxime Ripard:

Quoted 11 lines

Hi,

Quoted 8 lines · Maarten Lankhorst

Only try to set those values if the properties are supported. This fixes the kms_chameium tests to run on vc4 again.

Cc Paul Kocialkowski <[email protected]>
Cc Eric Anholt <[email protected]>
Cc Boris Brezillon <[email protected]>
Quoted 5 lines

This works like a charm now, thanks!

Maxime

Can you upgrade this to a reviewed-by so I can apply this change?

~Maarten

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

Reviewed-by
#4 lore raw
Quoted 12 lines · Maarten Lankhorst

Op 06-03-18 om 16:57 schreef Maxime Ripard:

Quoted 11 lines

Hi,

Quoted 8 lines · Maarten Lankhorst

Only try to set those values if the properties are supported. This fixes the kms_chameium tests to run on vc4 again.

Cc Paul Kocialkowski <[email protected]>
Cc Eric Anholt <[email protected]>
Cc Boris Brezillon <[email protected]>
Quoted 6 lines
Quoted 5 lines

This works like a charm now, thanks!

Maxime

Can you upgrade this to a reviewed-by so I can apply this change?

Yep, of course:

Signature · 3 lines
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#5 lore raw

Op 09-03-18 om 14:08 schreef Maxime Ripard:

Quoted 13 lines · Maarten Lankhorst
Quoted 12 lines

Op 06-03-18 om 16:57 schreef Maxime Ripard:

Quoted 11 lines

Hi,

Quoted 8 lines · Maarten Lankhorst

Only try to set those values if the properties are supported. This fixes the kms_chameium tests to run on vc4 again.

Cc Paul Kocialkowski <[email protected]>
Cc Eric Anholt <[email protected]>
Cc Boris Brezillon <[email protected]>
Quoted 9 lines
Quoted 6 lines
Quoted 5 lines

This works like a charm now, thanks!

Maxime

Can you upgrade this to a reviewed-by so I can apply this change?

Yep, of course:

Thanks, pushed.

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev