<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 - Native screen resolution not working correctly over HDMI LSPCON (i915)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107503">107503</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Native screen resolution not working correctly over HDMI LSPCON (i915)
          </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>critical
          </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>nicholas.stommel@gmail.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>When booting Fedora, Ubuntu, OpenSUSE, and really any distribution running
Linux kernel 4.16 and above, the Intel integrated graphics card (in my case the
Kabylake HD 630) does not correctly enable the connected monitor's native
resolution over HDMI on LSPCON. Any kernel 4.15 and below does not cause this
issue. This issue is currently confirmed but lacks an actual kernel bug report
on the Redhat bugzilla here:
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1570392">https://bugzilla.redhat.com/show_bug.cgi?id=1570392</a>

dmesg logs show: 
[drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training
Unsuccessful 

Followed by reapeating lines of:
[drm:lspcon_wait_mode [i915]] *ERROR* LSPCON mode hasn't settled 

In particular, 1280x1800 and 1680x1050 are the two resolutions I find myself
limited to when the kernel boots and doesn't correctly use the full 1920x1080
native resolution of the monitor (in this case, a Samsung CF591). This issue
does not, however, appear related to this particular monitor as two others I
have tried end up with the same issue. Nor is it a cable problem, I switched
that out several times as well. After much testing, the issue seems very
non-deterministic and fairly random indeed. Grub and Plymouth don't appear to
be culprits either.

Basically, the kernel isn't correctly setting full HD resolution of the monitor
around *half* the time. Booting Fedora 28 or Ubuntu 18.04 with kernel version
4.16 or newer on my machine with Intel graphics using the HDMI LSPCON connector
is like tossing a die: I either get Full HD, those two variants of stretched
and incorrect low resolution, or (rarely, but still) failure to boot at all. 

After some confusion, I determined that the HDMI option board on the system
motherboard of the HP Elitedesk 800 G3 DM is, in fact, using an LSPCON
converter from DP->HDMI using this helpful info from Intel i915 dev Imre Deak:
"There are two ways to connect HDMI to the APL RVPs: via the DDI1 DP++ plug
with an DP->HDMI dongle, or via the DDI0 HDMI plug which is connected to the
SoC through the LSPCON converter. You seem to be using the second scenario with
LSPCON being in the protocol converter mode (configured as such by BIOS). In
that case the connection will show up as a DP connector." 

Other users on machines including Intel NUCs have confirmed this issue with
HDMI over LSPCON resulting in incorrect resolution on boot. It appears a
regression occurred in LSPCON handling through kernel 4.16 and above.</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 the assignee for the bug.</li>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>