Bug 111184

Summary: [CI][DRMTIP] igt@kms_flip@flip-vs-panning-vs-hang-interruptible - fail - Failed assertion: set_mode(o, o->fb_ids[o->current_fb_id], x_ofs, 0) == 0
Product: DRI Reporter: Lakshmi <lakshminarayana.vudum>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: RESOLVED DUPLICATE QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs
Version: DRI git   
Hardware: Other   
OS: All   
Whiteboard: ReadyForDev
i915 platform: ICL i915 features: display/Other

Description Lakshmi 2019-07-22 10:14:12 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_327/fi-icl-u4/igt@kms_flip@flip-vs-panning-vs-hang-interruptible.html

Starting subtest: flip-vs-panning-vs-hang-interruptible
(kms_flip:1124) CRITICAL: Test assertion failure function run_test_step, file ../tests/kms_flip.c:803:
(kms_flip:1124) CRITICAL: Failed assertion: set_mode(o, o->fb_ids[o->current_fb_id], x_ofs, 0) == 0
(kms_flip:1124) CRITICAL: Last errno: 22, Invalid argument
(kms_flip:1124) CRITICAL: failed to pan (1280x1024@75Hz)+10: Invalid argument
Subtest flip-vs-panning-vs-hang-interruptible failed.
Comment 1 CI Bug Log 2019-07-22 10:14:43 UTC
The CI Bug Log issue associated to this bug has been updated.

### New filters associated

* ICL:  igt@kms_flip@flip-vs-panning-vs-hang-interruptible - fail -  Failed assertion: set_mode(o, o-&gt;fb_ids[o-&gt;current_fb_id], x_ofs, 0) == 0
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_327/fi-icl-u4/igt@kms_flip@flip-vs-panning-vs-hang-interruptible.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_328/fi-icl-u4/igt@kms_flip@flip-vs-panning-vs-hang-interruptible.html
Comment 2 CI Bug Log 2019-07-22 10:41:31 UTC
A CI Bug Log filter associated to this bug has been updated:

{- ICL:  igt@kms_flip@flip-vs-panning-vs-hang-interruptible - fail -  Failed assertion: set_mode(o, o-&gt;fb_ids[o-&gt;current_fb_id], x_ofs, 0) == 0 -}
{+ ICL:  igt@kms_flip@flip-vs-panning-vs-hang-interruptible|igt@kms_flip@basic-flip-vs-modeset - fail -  Failed assertion: set_mode(o, o-&gt;fb_ids[o-&gt;current_fb_id], x_ofs, 0) == 0 +}

New failures caught by the filter:

  * https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_327/fi-icl-u4/igt@kms_flip@basic-flip-vs-modeset.html
Comment 3 CI Bug Log 2019-07-22 10:41:48 UTC
A CI Bug Log filter associated to this bug has been updated:

{- ICL:  igt@kms_flip@flip-vs-panning-vs-hang-interruptible|igt@kms_flip@basic-flip-vs-modeset - fail -  Failed assertion: set_mode(o, o-&gt;fb_ids[o-&gt;current_fb_id], x_ofs, 0) == 0 -}
{+ ICL:  igt@kms_flip@flip-vs-panning-vs-hang-interruptible|igt@kms_flip@basic-flip-vs-modeset - fail -  Failed assertion: set_mode(o, o-&gt;fb_ids[o-&gt;current_fb_id], (x_ofs|0), 0) == 0 +}


  No new failures caught with the new filter
Comment 4 Ramalingam C 2019-07-26 15:12:49 UTC
fi-icl-u4 has two USB Type-C port connected to HDMI panel and DP panel and also eDP panel is connected.

If you see the IGT assertion for set_mode() for different tests, they are occurring when the DP4 port is tried for a modeset with different pipes.
Can see the slight sporadic in nature.
But all the time link training for DP4 is failing with dmesg like
[536.165831] [drm:intel_dp_start_link_train [i915]] [CONNECTOR:223:DP-4] Link Training failed at link rate = 540000, lane count = 1 at https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_327/fi-icl-u4/igt@kms_flip@flip-vs-panning-vs-hang-interruptible.html

So I am suspecting this could be mostly related to the panel or the DP to HDMI converter used here. Still, we need to figure out that there is no specific HW at DP4 than DP3, because of which DP4 alone failing. 
And this issue is reproduced in the latest run too with the reproducing rate of 4/8 times
Comment 5 CI Bug Log 2019-08-12 12:16:28 UTC
A CI Bug Log filter associated to this bug has been updated:

{- ICL:  igt@kms_flip@flip-vs-panning-vs-hang-interruptible|igt@kms_flip@basic-flip-vs-modeset - fail -  Failed assertion: set_mode(o, o-&gt;fb_ids[o-&gt;current_fb_id], (x_ofs|0), 0) == 0 -}
{+ ICL:  igt@kms_flip@flip-vs-panning-vs-hang-*|igt@kms_flip@basic-flip-vs-modeset - fail -  Failed assertion: set_mode(o, o-&gt;fb_ids[o-&gt;current_fb_id], (x_ofs|0), 0) == 0 +}

New failures caught by the filter:

  * https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_341/fi-icl-u4/igt@kms_flip@flip-vs-panning-vs-hang.html
  * https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_340/fi-icl-u4/igt@kms_flip@flip-vs-panning-vs-hang.html
Comment 6 CI Bug Log 2019-09-02 10:09:32 UTC
A CI Bug Log filter associated to this bug has been updated:

{- ICL:  igt@kms_flip@flip-vs-panning-vs-hang-*|igt@kms_flip@basic-flip-vs-modeset - fail -  Failed assertion: set_mode(o, o-&gt;fb_ids[o-&gt;current_fb_id], (x_ofs|0), 0) == 0 -}
{+ ICL:  igt@kms_flip@* - fail -  Failed assertion: set_mode(o, o-&gt;fb_ids[o-&gt;current_fb_id], (x_ofs|0), 0) == 0 +}

New failures caught by the filter:

  * https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_354/fi-icl-u4/igt@kms_flip@2x-flip-vs-modeset-vs-hang-interruptible.html
Comment 7 Matt Roper 2019-09-24 17:55:18 UTC
This is another duplicate of bug 111185 --- the failures here arise not from what the test is trying to exercise, but rather from a general failure to set the desired display mode due to link training failures.

Interestingly, the link appears less flaky in these logs (i.e., we can drive at least two lanes on DP-4 and four lanes on DP-3, just not at maximum speed), but since we're also attempting a 4k mode here, the required data rate still winds up exceeding the link's maximum bandwidth causing the modeset (and the test) to fail.

*** This bug has been marked as a duplicate of bug 111185 ***

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.