<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:arkadiusz.hiler@intel.com" title="Arek Hiler <arkadiusz.hiler@intel.com>"> <span class="fn">Arek Hiler</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CI][BAT] igt@kms_chamelium@hdmi-hpd-fast - fail - Failed assertion: igt_hotplug_detected(mon, HOTPLUG_TIMEOUT)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109800">bug 109800</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">i915 features</td>
           <td>display/HDMI
           </td>
           <td>display/LSPCON
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Priority</td>
           <td>medium
           </td>
           <td>high
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CI][BAT] igt@kms_chamelium@hdmi-hpd-fast - fail - Failed assertion: igt_hotplug_detected(mon, HOTPLUG_TIMEOUT)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109800#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CI][BAT] igt@kms_chamelium@hdmi-hpd-fast - fail - Failed assertion: igt_hotplug_detected(mon, HOTPLUG_TIMEOUT)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109800">bug 109800</a>
              from <span class="vcard"><a class="email" href="mailto:arkadiusz.hiler@intel.com" title="Arek Hiler <arkadiusz.hiler@intel.com>"> <span class="fn">Arek Hiler</span></a>
</span></b>
        <pre>Seems like we have two issues here with the same root-cause: LSPCon
What do they mean for the user: somtimes when you plug the cable in nothing
happens - the connector stays disconnected.

Raising the priority to high and changeing feature to display/LSPCON.

Note: DP-1 is connected to LSPCon and exposed as a HDMI port.

Issue 1. LSPcon does not wake up on plug and we don't even get a hotplug event

<6> [155.008282] [IGT] kms_chamelium: starting subtest hdmi-hpd-fast

        reset_state(data, NULL);

<7> [155.697587] [drm:drm_helper_probe_single_connector_modes]
[CONNECTOR:86:DP-1]
<7> [155.697886] [drm:intel_dp_detect [i915]] [CONNECTOR:86:DP-1]
<7> [155.698118] [drm:intel_power_well_enable [i915]] enabling always-on
<7> [155.698463] [drm:drm_helper_probe_single_connector_modes]
[CONNECTOR:86:DP-1] disconnected

        igt_hpd_storm_set_threshold(data->drm_fd, 0);

<7> [155.699325] [drm:i915_hpd_storm_ctl_write [i915]] Disabling HPD storm
detection
<7> [155.804532] [drm:intel_power_well_disable [i915]] disabling always-on

        chamelium_plug(data->chamelium, port);
        igt_assert_f(igt_hotplug_detected(mon, HOTPLUG_TIMEOUT),
                     "Timed out waiting for hotplug uevent\n");

<6> [176.098043] [IGT] kms_chamelium: exiting, ret=98

and so we have failed & exited after HTOPLUG_TIMEOUT=20s


Issue 2. LSPcon wakes up, we get a hotplug but the full initialization fails
and the port is still considered DISCONNECTED

<6> [261.100503] [IGT] kms_chamelium: starting subtest hdmi-hpd-fast

        reset_state(data, NULL);

<7> [261.766875] [drm:gen8_de_irq_handler [i915]] hotplug event received, stat
0x00200000, dig 0x10101011, pins 0x00000020, long 0x00000000
<7> [261.767045] [drm:intel_hpd_irq_handler [i915]] digital hpd port B - short
<7> [261.767384] [drm:intel_dp_hpd_pulse [i915]] got hpd irq on port B - short
<7> [261.768643] [drm:intel_dp_read_dpcd [i915]] DPCD: 12 14 c4 01 01 15 01 81
00 00 04 00 0f 00 04
<7> [261.769487] [drm:drm_dp_read_desc] DP branch: OUI 00-60-ad dev-ID MC2800
HW-rev 2.2 SW-rev 1.76 quirks 0x0000
<7> [261.770463] [drm:i915_hotplug_work_func [i915]] running encoder hotplug
functions
<7> [261.770792] [drm:i915_hotplug_work_func [i915]] Connector DP-1 (pin 5)
received hotplug event.
<7> [261.771035] [drm:intel_dp_detect [i915]] [CONNECTOR:86:DP-1]
<7> [261.772122] [drm:lspcon_wake_native_aux_ch [i915]] Native AUX CH up, DPCD
version: 1.2
<7> [261.772425] [drm:lspcon_resume [i915]] LSPCON recovering in PCON mode
after 0 ms
<7> [261.773203] [drm:drm_dp_i2c_do_msg] native defer
<7> [261.775151] [drm:drm_dp_i2c_do_msg] native defer
<7> [261.776932] [drm:drm_dp_i2c_do_msg] native defer
<7> [261.778560] [drm:drm_dp_i2c_do_msg] native defer
<7> [261.780333] [drm:drm_dp_i2c_do_msg] native defer
<7> [261.781597] [drm:lspcon_wait_mode [i915]] Current LSPCON mode PCON
<7> [261.782647] [drm:intel_dp_read_dpcd [i915]] DPCD: 12 14 c4 01 01 15 01 81
00 00 04 00 0f 00 04
<7> [261.783483] [drm:drm_dp_read_desc] DP branch: OUI 00-60-ad dev-ID MC2800
HW-rev 2.2 SW-rev 1.76 quirks 0x0000
<7> [261.784410] [drm:intel_encoder_hotplug [i915]] [CONNECTOR:86:DP-1] status
updated from connected to disconnected
<7> [261.788074] [drm:drm_helper_probe_single_connector_modes]
[CONNECTOR:86:DP-1]
<7> [261.788307] [drm:intel_dp_detect [i915]] [CONNECTOR:86:DP-1]
<7> [261.789405] [drm:lspcon_wake_native_aux_ch [i915]] Native AUX CH up, DPCD
version: 1.2
<7> [261.789777] [drm:lspcon_resume [i915]] LSPCON recovering in PCON mode
after 0 ms
<7> [261.790567] [drm:drm_dp_i2c_do_msg] native defer
<7> [261.792404] [drm:drm_dp_i2c_do_msg] native defer
<7> [261.794076] [drm:drm_dp_i2c_do_msg] native defer
<7> [261.795679] [drm:drm_dp_i2c_do_msg] native defer
<7> [261.797656] [drm:drm_dp_i2c_do_msg] native defer
<7> [261.799284] [drm:lspcon_wait_mode [i915]] Current LSPCON mode PCON
<7> [261.800341] [drm:intel_dp_read_dpcd [i915]] DPCD: 12 14 c4 01 01 15 01 81
00 00 04 00 0f 00 04
<7> [261.801349] [drm:drm_dp_read_desc] DP branch: OUI 00-60-ad dev-ID MC2800
HW-rev 2.2 SW-rev 1.76 quirks 0x0000
<7> [261.801887] [drm:drm_helper_probe_single_connector_modes]
[CONNECTOR:86:DP-1] disconnected

        igt_hpd_storm_set_threshold(data->drm_fd, 0);

<7> [261.803011] [drm:i915_hpd_storm_ctl_write [i915]] Disabling HPD storm
detection

        chamelium_plug(data->chamelium, port);
        igt_assert_f(igt_hotplug_detected(mon, HOTPLUG_TIMEOUT),
                     "Timed out waiting for hotplug uevent\n");
        status = reprobe_connector(data, port);

<7> [261.816449] [drm:drm_helper_probe_single_connector_modes]
[CONNECTOR:86:DP-1]
<7> [261.816510] [drm:intel_dp_detect [i915]] [CONNECTOR:86:DP-1]
<7> [261.816965] [drm:lspcon_wake_native_aux_ch [i915]] Native AUX CH up, DPCD
version: 1.2
<7> [261.817031] [drm:lspcon_resume [i915]] LSPCON recovering in PCON mode
after 0 ms
<7> [261.817500] [drm:drm_dp_i2c_do_msg] native defer
<7> [261.818877] [drm:drm_dp_i2c_do_msg] native defer
<7> [261.820132] [drm:drm_dp_i2c_do_msg] native defer
<7> [261.821411] [drm:drm_dp_i2c_do_msg] native defer
<7> [261.822649] [drm:drm_dp_i2c_do_msg] native defer
<7> [261.823467] [drm:lspcon_wait_mode [i915]] Current LSPCON mode PCON
<7> [261.823987] [drm:intel_dp_read_dpcd [i915]] DPCD: 12 14 c4 01 01 15 01 81
00 00 04 00 0f 00 04
<7> [261.824442] [drm:drm_dp_read_desc] DP branch: OUI 00-60-ad dev-ID MC2800
HW-rev 2.2 SW-rev 1.76 quirks 0x0000kk
<7> [261.824800] [drm:drm_helper_probe_single_connector_modes]
[CONNECTOR:86:DP-1] disconnected

        igt_assert_f(status == DRM_MODE_CONNECTED,
                     "Invalid connector status after hotplug: "
                     "got %s, expected connected\n",
                     connection_str(status));

<6> [261.941908] [IGT] kms_chamelium: exiting, ret=98</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are on the CC list for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>