<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [hsw DP] DP hot plug monitor discovery takes way too long"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=86733">86733</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[hsw DP] DP hot plug monitor discovery takes way too long
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DRM/Intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dimitri.j.ledkov@intel.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=110049" name="attach_110049" title="dp-screen-finding-takes-too-long.txt">attachment 110049</a> <a href="attachment.cgi?id=110049&action=edit" title="dp-screen-finding-takes-too-long.txt">[details]</a></span>
dp-screen-finding-takes-too-long.txt

I'm attaching a log booted without any screens attached, with drm.debug=7 set
on the kernel command line, and later a screen attached.

[   10.814093] [drm:intel_hpd_irq_handler] hotplug event received, stat
0x00400000, dig 0x10101210
[   10.816202] [drm:drm_dp_i2c_do_msg] native defer
-- " --
[   11.142132] [drm:drm_detect_monitor_audio] Monitor has basic audio support
...
[   11.143836] [drm:drm_dp_i2c_do_msg] native defer
-- " --
[   11.466765] [drm:drm_detect_monitor_audio] Monitor has basic audio support
[   11.467203] [drm:drm_dp_i2c_do_msg] native defer
-- " --
[   11.791475] [drm:drm_dp_i2c_do_msg] native defer
[   11.792287] [drm:drm_add_display_info] DP-1: Assigning EDID-1.4 digital sink
color depth as 8 bpc.

Imho the amount of "[drm:drm_dp_i2c_do_msg] native defer" calls is a lot and
takes too much time.

For example, kernel initialisation takes 1.5s with screen attached (as reported
by systemd-analyse), however it takes ~750ms less if no screen is attached and
as per above the bulk of that time on screen hotplug is spent in talking over
i2c. Also not sure why, but "Monitor has basic audio support" is detected
twice...

This is an Intel NUC Haswell platform.</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>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>