Skip to contentSkip to conversation

tools/intel_dp_compliance: Use ARGB8888 format fbs for Gen 10

PATCH Superseded Radhakrishna Sripada 3 participants 4 messages Jun 29, 2018 – Jul 2, 2018

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/intel_dp_compliance: Use ARGB8888 format fbs for Gen 10

According to Display WA #1172, to truly bypass the color data on Gen 10 use ARGB8888 instead of XRGB8888 to pass compliance.

---
 tools/intel_dp_compliance.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
tools/intel_dp_compliance.c +6 -5
index c40548e79227..abfda1564559 100644
@@ -175,7 +175,7 @@ static int tio_fd;
 struct termios saved_tio;
 
 drmModeRes *resources;
-int drm_fd, modes;
+int drm_fd, modes, gen;
 uint64_t tiling = LOCAL_DRM_FORMAT_MOD_NONE;
 uint32_t depth = 24, stride, bpp;
 int specified_mode_num = -1, specified_disp_id = -1;
@@ -445,7 +445,7 @@ static int setup_framebuffers(struct connector *dp_conn)
 
 	dp_conn->fb = igt_create_fb(drm_fd,
 				    dp_conn->fb_width, dp_conn->fb_height,
-				    DRM_FORMAT_XRGB8888,
+				    gen == 10 ? DRM_FORMAT_ARGB8888 : DRM_FORMAT_XRGB8888,
 				    LOCAL_DRM_FORMAT_MOD_NONE,
 				    &dp_conn->fb_video_pattern);
 	igt_assert(dp_conn->fb);
@@ -475,7 +475,7 @@ static int setup_failsafe_framebuffer(struct connector *dp_conn)
 	dp_conn->failsafe_fb = igt_create_fb(drm_fd,
 					     dp_conn->failsafe_width,
 					     dp_conn->failsafe_height,
-					     DRM_FORMAT_XRGB8888,
+					     gen == 10 ? DRM_FORMAT_ARGB8888 : DRM_FORMAT_XRGB8888,
 					     LOCAL_DRM_FORMAT_MOD_NONE,
 					     &dp_conn->fb_failsafe_pattern);
 	igt_assert(dp_conn->failsafe_fb);
@@ -508,7 +508,7 @@ static int setup_video_pattern_framebuffer(struct connector *dp_conn)
 	video_height = dp_conn->test_pattern.vdisplay;
 	dp_conn->test_pattern.fb = igt_create_fb(drm_fd,
 						 video_width, video_height,
-						 DRM_FORMAT_XRGB8888,
+						 gen == 10 ? DRM_FORMAT_ARGB8888 : DRM_FORMAT_XRGB8888,
 						 LOCAL_DRM_FORMAT_MOD_NONE,
 						 &dp_conn->test_pattern.fb_pattern);
 	igt_assert(dp_conn->test_pattern.fb);
@@ -770,7 +770,7 @@ set_default_mode(struct connector *c, bool set_mode)
 	height = c->mode.vdisplay;
 
 	fb_id = igt_create_pattern_fb(drm_fd, width, height,
-				      DRM_FORMAT_XRGB8888,
+				      gen == 10 ? DRM_FORMAT_ARGB8888 : DRM_FORMAT_XRGB8888,
 				      tiling, &fb_info);
 
 	igt_info("CRTC(%u):[%d]", c->crtc, 0);
@@ -1036,6 +1036,7 @@ int main(int argc, char **argv)
 	set_termio_mode();
 
 	drm_fd = drm_open_driver(DRIVER_ANY);
+	gen = intel_gen(intel_get_drm_devid(drm_fd));
 
 	kmstest_set_vt_graphics_mode();
 	setup_debugfs_files();
Signature · 6 lines
2.9.3

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

[igt-dev] ✓ Fi.CI.BAT: success for tools/intel_dp_compliance: Use ARGB8888 format fbs for Gen 10

== Series Details ==

== Series Details ==

Series: tools/intel_dp_compliance: Use ARGB8888 format fbs for Gen 10
URL : https://patchwork.freedesktop.org/series/45684/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4404 -> IGTPW_1515 =

== Summary - SUCCESS ==

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/45684/revisions/1/mbox/

== Changes ==

No changes found

== Participating hosts (45 -> 40) ==

Missing (5): fi-ctg-p8600 fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-hsw-4200u

== Build changes ==

* IGT: IGT_4531 -> IGTPW_1515

CI_DRM_4404: ceaab659002c938f1788b7458d5081fadc3c1ddc @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1515: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1515/
IGT_4531: a14bc8b4d69eaca189665de505e6b10cbfbb7730 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

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

#2 lore raw

[igt-dev] ✓ Fi.CI.IGT: success for tools/intel_dp_compliance: Use ARGB8888 format fbs for Gen 10

In reply to Radhakrishna Sripada
== Series Details ==

== Series Details ==

Series: tools/intel_dp_compliance: Use ARGB8888 format fbs for Gen 10
URL : https://patchwork.freedesktop.org/series/45684/
State : success

== Summary ==

= CI Bug Log - changes from IGT_4531_full -> IGTPW_1515_full =

== Summary - WARNING ==

Minor unknown changes coming with IGTPW_1515_full need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_1515_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://patchwork.freedesktop.org/api/1.0/series/45684/revisions/1/mbox/

== Possible new issues ==

Here are the unknown changes that may have been introduced in IGTPW_1515_full:

=== IGT changes ===

    ==== Warnings ====

    igt@gem_exec_schedule@deep-blt:
      shard-kbl:          SKIP -> PASS

    igt@kms_cursor_crc@cursor-64x64-dpms:
      shard-snb:          SKIP -> PASS

== Known issues ==

Here are the changes found in IGTPW_1515_full that come from known issues:

=== IGT changes ===

    ==== Issues hit ====

    igt@drv_selftest@live_gtt:
      shard-glk:          PASS -> INCOMPLETE (fdo#103359, k.org#198133)

    igt@gem_busy@busy-bsd2:
      shard-snb:          SKIP -> INCOMPLETE (fdo#105411)

    igt@gem_exec_schedule@pi-ringfull-blt:
      shard-kbl:          NOTRUN -> FAIL (fdo#103158)

    igt@kms_flip@2x-plain-flip-fb-recreate-interruptible:
      shard-hsw:          PASS -> FAIL (fdo#100368)

    igt@kms_flip_tiling@flip-to-x-tiled:
      shard-glk:          PASS -> FAIL (fdo#104724, fdo#103822)

    igt@kms_setmode@basic:
      shard-kbl:          PASS -> FAIL (fdo#99912)

    igt@kms_vblank@pipe-a-accuracy-idle:
      shard-glk:          PASS -> FAIL (fdo#102583)

    
    ==== Possible fixes ====

    igt@drv_selftest@live_gtt:
      shard-kbl:          FAIL (fdo#105347) -> PASS

    igt@drv_selftest@live_hangcheck:
      shard-apl:          DMESG-FAIL (fdo#106947, fdo#106560) -> PASS

    igt@drv_selftest@live_hugepages:
      shard-kbl:          INCOMPLETE (fdo#103665) -> PASS

    igt@gem_persistent_relocs@forked-faulting-reloc:
      shard-snb:          INCOMPLETE (fdo#105411) -> PASS

    igt@kms_available_modes_crc@available_mode_test_crc:
      shard-snb:          FAIL (fdo#106641) -> PASS

    igt@kms_flip@2x-flip-vs-expired-vblank:
      shard-glk:          FAIL (fdo#105363) -> PASS

    igt@kms_frontbuffer_tracking@fbc-1p-pri-indfb-multidraw:
      shard-snb:          FAIL (fdo#104724, fdo#103167) -> PASS

    igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-mmap-wc:
      shard-glk:          FAIL (fdo#104724, fdo#103167) -> PASS

    igt@kms_rotation_crc@sprite-rotation-180:
      shard-snb:          FAIL (fdo#104724, fdo#103925) -> PASS

    igt@testdisplay:
      shard-glk:          INCOMPLETE (fdo#103359, k.org#198133) -> PASS

fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102583 https://bugs.freedesktop.org/show_bug.cgi?id=102583
fdo#103158 https://bugs.freedesktop.org/show_bug.cgi?id=103158
fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103359 https://bugs.freedesktop.org/show_bug.cgi?id=103359
fdo#103665 https://bugs.freedesktop.org/show_bug.cgi?id=103665
fdo#103822 https://bugs.freedesktop.org/show_bug.cgi?id=103822
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#104724 https://bugs.freedesktop.org/show_bug.cgi?id=104724
fdo#105347 https://bugs.freedesktop.org/show_bug.cgi?id=105347
fdo#105363 https://bugs.freedesktop.org/show_bug.cgi?id=105363
fdo#105411 https://bugs.freedesktop.org/show_bug.cgi?id=105411
fdo#106560 https://bugs.freedesktop.org/show_bug.cgi?id=106560
fdo#106641 https://bugs.freedesktop.org/show_bug.cgi?id=106641
fdo#106947 https://bugs.freedesktop.org/show_bug.cgi?id=106947
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
k.org#198133 https://bugzilla.kernel.org/show_bug.cgi?id=198133

== Participating hosts (5 -> 5) ==

No changes in participating hosts

== Build changes ==

* IGT: IGT_4531 -> IGTPW_1515
* Linux: CI_DRM_4401 -> CI_DRM_4404

CI_DRM_4401: 4fe59a304a9a855a1c0e9a576c94d4cca239b427 @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_4404: ceaab659002c938f1788b7458d5081fadc3c1ddc @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1515: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1515/
IGT_4531: a14bc8b4d69eaca189665de505e6b10cbfbb7730 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

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

#3 lore raw
In reply to Radhakrishna Sripada
Quoted 24 lines · Radhakrishna Sripada

According to Display WA #1172, to truly bypass the color data on Gen 10 use ARGB8888 instead of XRGB8888 to pass compliance.

---
 tools/intel_dp_compliance.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
tools/intel_dp_compliance.c +1 -1
index c40548e79227..abfda1564559 100644
@@ -175,7 +175,7 @@ static int tio_fd;
 struct termios saved_tio;
 
 drmModeRes *resources;
-int drm_fd, modes;
+int drm_fd, modes, gen;
 uint64_t tiling = LOCAL_DRM_FORMAT_MOD_NONE;
 uint32_t depth = 24, stride, bpp;
 int specified_mode_num = -1, specified_disp_id = -1;

tools/intel_dp_compliance.c static int setup_framebuffers(struct connector *dp_conn) · line 448

Quoted 5 lines
tools/intel_dp_compliance.c +1 -1
@@ -445,7 +445,7 @@ static int setup_framebuffers(struct connector *dp_conn)
 
 	dp_conn->fb = igt_create_fb(drm_fd,
 				    dp_conn->fb_width, dp_conn->fb_height,
-				    DRM_FORMAT_XRGB8888,
+				    gen == 10 ? DRM_FORMAT_ARGB8888 : DRM_FORMAT_XRGB8888,

I think this issue matters only in case of DP_TEST_LINK_VIDEO_PATTERN, so we need to adjust the mode only in setup_video_pattern_framebuffer() accordingly.

Quoted 13 lines
tools/intel_dp_compliance.c +1 -1
 				    LOCAL_DRM_FORMAT_MOD_NONE,
 				    &dp_conn->fb_video_pattern);
 	igt_assert(dp_conn->fb);
@@ -475,7 +475,7 @@ static int setup_failsafe_framebuffer(struct connector *dp_conn)
 	dp_conn->failsafe_fb = igt_create_fb(drm_fd,
 					     dp_conn->failsafe_width,
 					     dp_conn->failsafe_height,
-					     DRM_FORMAT_XRGB8888,
+					     gen == 10 ? DRM_FORMAT_ARGB8888 : DRM_FORMAT_XRGB8888,
 					     LOCAL_DRM_FORMAT_MOD_NONE,
 					     &dp_conn->fb_failsafe_pattern);
 	igt_assert(dp_conn->failsafe_fb);

tools/intel_dp_compliance.c static int setup_video_pattern_framebuffer(struct connector *dp_conn) · line 513

Quoted 7 lines
tools/intel_dp_compliance.c +1 -1
@@ -508,7 +508,7 @@ static int setup_video_pattern_framebuffer(struct connector *dp_conn)
 	video_height = dp_conn->test_pattern.vdisplay;
 	dp_conn->test_pattern.fb = igt_create_fb(drm_fd,
 						 video_width, video_height,
-						 DRM_FORMAT_XRGB8888,
+						 gen == 10 ? DRM_FORMAT_ARGB8888 : DRM_FORMAT_XRGB8888,
 						 LOCAL_DRM_FORMAT_MOD_NONE,
 						 &dp_conn->test_pattern.fb_pattern);

We'd still have to set the per-pixel alpha value to 0xff in fill_framebuffer(). Please also add here a code comment on why the format adjustment is needed.

Quoted 21 lines
tools/intel_dp_compliance.c +2 -1
 	igt_assert(dp_conn->test_pattern.fb);
@@ -770,7 +770,7 @@ set_default_mode(struct connector *c, bool set_mode)
 	height = c->mode.vdisplay;
 
 	fb_id = igt_create_pattern_fb(drm_fd, width, height,
-				      DRM_FORMAT_XRGB8888,
+				      gen == 10 ? DRM_FORMAT_ARGB8888 : DRM_FORMAT_XRGB8888,
 				      tiling, &fb_info);
 
 	igt_info("CRTC(%u):[%d]", c->crtc, 0);
@@ -1036,6 +1036,7 @@ int main(int argc, char **argv)
 	set_termio_mode();
 
 	drm_fd = drm_open_driver(DRIVER_ANY);
+	gen = intel_gen(intel_get_drm_devid(drm_fd));
 
 	kmstest_set_vt_graphics_mode();
 	setup_debugfs_files();
Signature · 1 line
2.9.3

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