<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 - HDMI 2.0 4k EDIDs not available (Radeon RX Vega 56)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102985">102985</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>HDMI 2.0 4k EDIDs not available (Radeon RX Vega 56)
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>DRI git
          </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/AMDgpu
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bicom@invergo.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=134476" name="attach_134476" title="DRM/AMDGPU logs (journalctl)">attachment 134476</a> <a href="attachment.cgi?id=134476&action=edit" title="DRM/AMDGPU logs (journalctl)">[details]</a></span>
DRM/AMDGPU logs (journalctl)

I have a Radeon RX Vega 56 connected to a Sony 4K TV (kd-49x8305c) via a
"Premium" (certified) HDMI 2.0 cable. The TV's HDMI input is set to "Enhanced
Format". Thus, on the hardware side, everything's ready to go for 4k@60Hz. On
the software side, I'm running Arch Linux with mesa-git (rev. 066d1dc951),
llvm-svn (rev. 313470), and Linux branch amd-staging-drm-next (4.13 rev.
dcae401d1113).  I'm running Gnome and I've tested both Wayland and Xorg.

While other functionality such as rendering and acceleration work with this
setup, I have been unable to access any 4k resolutions.

As you'll see in the attached logs, the maximum resolution detected from the
TV's EDID is 1920x1080. However, using the program edid-decode (output
attached), one can see that the EDID clearly advertises 4k modes, however,
they're in the Extension block at VIC indexes higher than 64.

Until recently, 64 was the highest supported by drivers/gpu/drm/drm_edid.c in
the kernel.  However, that has been fixed:

<a href="https://github.com/torvalds/linux/commit/8ec6e0755565192b328059b64f982adabbecda78#diff-f1b0089a97dd0195eb24305ab63a79e3">https://github.com/torvalds/linux/commit/8ec6e0755565192b328059b64f982adabbecda78#diff-f1b0089a97dd0195eb24305ab63a79e3</a>

That commit has been merged into the amd-staging-drm-next kernel (but not
amd-staging), and the revision that I have built and installed includes that
code.  Nevertheless, I haven't had any luck in getting the computer to
recognize any of those extended modes.

I have tried adding the mode manually via xrandr, however when I try to switch
to that mode, I get the error "xrandr: Configure crtc 0 failed". Trying to set
it in a conf file in /etc/X11/xorg.conf.d also didn't work (I no longer have a
configuration file in there). I've also tried forcing it from the kernel
command line (video=3840x2160@60) to no avail.  Still, all of those seem like
workarounds when I think the problem is pretty clearly that the VIC 65+ modes
are not detected.</pre>
        </div>
      </p>


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

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>