Bug 91019 - [BDW]igt/kms_frontbuffer_tracking fails
Summary: [BDW]igt/kms_frontbuffer_tracking fails
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Paulo Zanoni
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-18 08:47 UTC by lu hua
Modified: 2017-01-10 17:28 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (124.79 KB, text/plain)
2015-06-18 08:47 UTC, lu hua
no flags Details
possible fix (2.54 KB, patch)
2015-06-18 18:00 UTC, Paulo Zanoni
no flags Details | Splinter Review
possible fix, v2 (4.53 KB, patch)
2015-06-18 21:00 UTC, Paulo Zanoni
no flags Details | Splinter Review

Description lu hua 2015-06-18 08:47:34 UTC
Created attachment 116575 [details]
dmesg

==System Environment==
--------------------------
Regression: not sure, new case

Non-working platforms: BDW

==kernel==
--------------------------
drm-intel-nightly/2a36ab374449e3794b4be6be01f1a47cb6ee5b83
commit 2a36ab374449e3794b4be6be01f1a47cb6ee5b83
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Wed Jun 17 14:44:45 2015 +0200

    drm-intel-nightly: 2015y-06m-17d-12h-44m-01s UTC integration manifest

==Bug detailed description==
-----------------------------
It fails on BDW with drm-intel-nightly kernel.

output:
IGT-Version: 1.11-gc83299d (x86_64) (Linux: 4.1.0-rc8_drm-intel-nightly_2a36ab_20150618+ x86_64)
Primary screen: eDP Custom 1024x768
FBC last action not supported
Can't test PSR: not supported by sink.
Test assertion failure function get_sink_crc, file kms_frontbuffer_tracking.c:679:
Failed assertion: read(sink_crc.fd, crc->data, SINK_CRC_SIZE) == SINK_CRC_SIZE
Last errno: 25, Inappropriate ioctl for device
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [collect_crcs+0x8a]
  #2 [main+0x663]
  #3 [__libc_start_main+0xf5]
  #4 [_start+0x29]
  #5 [<unknown>+0x29]
Test kms_frontbuffer_tracking failed.
**** DEBUG ****
(kms_frontbuffer_tracking:4903) drmtest-DEBUG: Test requirement passed: fd >= 0
Test requirement passed: fd >= 0
Test requirement passed: drmSetMaster(fd) == 0
Primary screen: eDP Custom 1024x768
Test requirement passed: init_modeset_cached_params()
igt_create_fb_with_bo_size(width=1024, height=768, format=0x34325258 [bpp=32], tiling=0x100000000000001, size=0
igt_create_fb_with_bo_size(handle=1, pitch=4096)
igt_create_fb_with_bo_size(width=64, height=64, format=0x34325241 [bpp=32], tiling=0x0, size=0
igt_create_fb_with_bo_size(handle=2, pitch=256)
igt_create_fb_with_bo_size(width=64, height=64, format=0x34325258 [bpp=32], tiling=0x100000000000001, size=0
igt_create_fb_with_bo_size(handle=3, pitch=512)
igt_create_fb_with_bo_size(width=1024, height=1024, format=0x34325258 [bpp=32], tiling=0x100000000000001, size=0
igt_create_fb_with_bo_size(handle=4, pitch=4096)
igt_create_fb_with_bo_size(width=2548, height=1524, format=0x34325258 [bpp=32], tiling=0x100000000000001, size=0
igt_create_fb_with_bo_size(handle=5, pitch=16384)
VT: graphics mode set (mode was 0x0)
FBC last action not supported
Can't test PSR: not supported by sink.
igt_create_fb_with_bo_size(width=1024, height=768, format=0x34325258 [bpp=32], tiling=0x100000000000001, size=0
igt_create_fb_with_bo_size(handle=6, pitch=4096)
Test assertion failure function get_sink_crc, file kms_frontbuffer_tracking.c:679:
Failed assertion: read(sink_crc.fd, crc->data, SINK_CRC_SIZE) == SINK_CRC_SIZE
Last errno: 25, Inappropriate ioctl for device
****  END  ****
Subtest fbc-1p-cur-sfb-multidraw-blt: FAIL

==Reproduce steps==
---------------------------- 
1. ./kms_frontbuffer_tracking --run-subtest fbc-1p-cur-sfb-multidraw-blt
Comment 1 Paulo Zanoni 2015-06-18 15:39:43 UTC
Maybe we're trying to read the sink CRC on an eDP panel that doesn't support it... I'll investigate this.
Comment 2 Paulo Zanoni 2015-06-18 18:00:35 UTC
Created attachment 116580 [details] [review]
possible fix

Hi

Can you please test this patch and see if it solves the problem?

Thanks,
Paulo
Comment 3 Paulo Zanoni 2015-06-18 21:00:20 UTC
Created attachment 116581 [details] [review]
possible fix, v2

New version of the patch, after some IRC review. Please test this one.
Comment 4 lu hua 2015-06-19 02:43:06 UTC
(In reply to Paulo Zanoni from comment #3)
> Created attachment 116581 [details] [review] [review]
> possible fix, v2
> 
> New version of the patch, after some IRC review. Please test this one.

Fixed by this patch.
output:
IGT-Version: 1.11-g4fbce7e (x86_64) (Linux: 4.1.0-rc8_drm-intel-nightly_186047_20150619+ x86_64)
Primary screen: eDP Custom 1024x768
FBC last action not supported
Can't test PSR: not supported by sink.
Sink CRC not supported: panel doesn't support it
Subtest fbc-1p-cur-sfb-multidraw-blt: SUCCESS (7.682s)
Comment 5 Paulo Zanoni 2015-06-23 17:48:01 UTC
Patch merged to IGT.
Comment 6 lu hua 2015-06-26 06:28:24 UTC
most of the subcases are pass. some fail will track on bug 91028.
Close it.
Comment 7 Jari Tahvanainen 2017-01-10 17:28:23 UTC
Closing verified+fixed.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.