<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - [BYT]igt/many kms_flip subcases randomly fail with *ERROR* failed to train DP, aborting"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=73037#c29">Comment # 29</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - [BYT]igt/many kms_flip subcases randomly fail with *ERROR* failed to train DP, aborting"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=73037">bug 73037</a>
              from <span class="vcard"><a class="email" href="mailto:huax.lu@intel.com" title="lu hua <huax.lu@intel.com>"> <span class="fn">lu hua</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=102963" name="attach_102963" title="dmesg">attachment 102963</a> <a href="attachment.cgi?id=102963&action=edit" title="dmesg">[details]</a></span>
dmesg

Apply these 2 patches and test it on igt commit b6ed9fb0d9a68.
Run 4 cycles, "*ERROR* failed to train DP, aborting" doesn't appear. But
reports "*ERROR* mismatch in has_dp_encoder (expected 1, found 0)".

root@x-byt06:/GFX/Test/Intel_gpu_tools/intel-gpu-tools# dmesg -r | egrep
"<[1-3]>" |grep drm
<3>[  182.656611] [drm:intel_pipe_config_compare] *ERROR* mismatch in
has_dp_encoder (expected 1, found 0)
<3>[  182.663755] [drm:valleyview_pipestat_irq_handler] *ERROR* pipe A underrun
<3>[  221.645594] [drm:intel_pipe_config_compare] *ERROR* mismatch in
has_dp_encoder (expected 1, found 0)
<3>[  221.652742] [drm:valleyview_pipestat_irq_handler] *ERROR* pipe A underrun

output
root@x-byt06:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./kms_flip 
--run-subtest absolute-wf_vblank-interruptible
IGT-Version: 1.7-gb6ed9fb (x86_64) (Linux: 3.16.0-rc5_kcloud_1f014f_20140717+
x86_64)
Using monotonic timestamps
Beginning absolute-wf_vblank-interruptible on crtc 7, connector 27
  1920x1080 60 1920 1966 1996 2080 1080 1082 1086 1112 0xa 0x48 138780
...........................................................................................
absolute-wf_vblank-interruptible on crtc 7, connector 27: PASSED

Beginning absolute-wf_vblank-interruptible on crtc 12, connector 27
  1920x1080 60 1920 1966 1996 2080 1080 1082 1086 1112 0xa 0x48 138780
...........................................................................................
absolute-wf_vblank-interruptible on crtc 12, connector 27: PASSED

Subtest absolute-wf_vblank-interruptible: SUCCESS
root@x-byt06:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./kms_flip 
--run-subtest absolute-wf_vblank-interruptible
IGT-Version: 1.7-gb6ed9fb (x86_64) (Linux: 3.16.0-rc5_kcloud_1f014f_20140717+
x86_64)
Using monotonic timestamps
Beginning absolute-wf_vblank-interruptible on crtc 7, connector 27
  1920x1080 60 1920 1966 1996 2080 1080 1082 1086 1112 0xa 0x48 138780
................................................................................................................................................................................
absolute-wf_vblank-interruptible on crtc 7, connector 27: PASSED

Beginning absolute-wf_vblank-interruptible on crtc 12, connector 27
  1920x1080 60 1920 1966 1996 2080 1080 1082 1086 1112 0xa 0x48 138780
...........................................................................................
absolute-wf_vblank-interruptible on crtc 12, connector 27: PASSED

Subtest absolute-wf_vblank-interruptible: SUCCESS
root@x-byt06:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./kms_flip 
--run-subtest absolute-wf_vblank-interruptible
IGT-Version: 1.7-gb6ed9fb (x86_64) (Linux: 3.16.0-rc5_kcloud_1f014f_20140717+
x86_64)
Using monotonic timestamps
Beginning absolute-wf_vblank-interruptible on crtc 7, connector 27
  1920x1080 60 1920 1966 1996 2080 1080 1082 1086 1112 0xa 0x48 138780
................................................................................................................................................................................
absolute-wf_vblank-interruptible on crtc 7, connector 27: PASSED

Beginning absolute-wf_vblank-interruptible on crtc 12, connector 27
  1920x1080 60 1920 1966 1996 2080 1080 1082 1086 1112 0xa 0x48 138780
...........................................................................................
absolute-wf_vblank-interruptible on crtc 12, connector 27: PASSED

Subtest absolute-wf_vblank-interruptible: SUCCESS
root@x-byt06:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./kms_flip 
--run-subtest absolute-wf_vblank-interruptible
IGT-Version: 1.7-gb6ed9fb (x86_64) (Linux: 3.16.0-rc5_kcloud_1f014f_20140717+
x86_64)
Using monotonic timestamps
Beginning absolute-wf_vblank-interruptible on crtc 7, connector 27
  1920x1080 60 1920 1966 1996 2080 1080 1082 1086 1112 0xa 0x48 138780
................................................................................................................................................................................
absolute-wf_vblank-interruptible on crtc 7, connector 27: PASSED

Beginning absolute-wf_vblank-interruptible on crtc 12, connector 27
  1920x1080 60 1920 1966 1996 2080 1080 1082 1086 1112 0xa 0x48 138780
...........................................................................................
absolute-wf_vblank-interruptible on crtc 12, connector 27: PASSED

Subtest absolute-wf_vblank-interruptible: SUCCESS</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>