<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 - slow switching to KD_GRAPHICS (KMS?)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=92982">92982</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>slow switching to KD_GRAPHICS (KMS?)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>xorg
          </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>Driver/Radeon
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>xorg-driver-ati@lists.x.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>royvandervegt@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>xorg-team@lists.x.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=119748" name="attach_119748" title="cpu and glxinfo">attachment 119748</a> <a href="attachment.cgi?id=119748&action=edit" title="cpu and glxinfo">[details]</a></span>
cpu and glxinfo

I have been experiencing this problem since late 2013 when I started using
Linux, but I was never able to pinpoint the root cause.
When X starts, it takes a long time (5 - 10 sec) to display the desktop.
Switching from X/Wayland to tty and vice versa also takes the same amount of
time. After the switch is complete everything works fine.

Now I was programming some animations using the framebuffer device (/dev/fb0)
and I was using `ioctl(fd, KDSETMODE, KD_GRAPHICS)` to enable graphics mode
instead of text mode. This also takes 5 - 10 seconds. This might be a good
starting point?

KMS is enabled and also reported as such by X on startup. No special
configurations are in use, everything is vanilla.

System information:
 - ATI Mobility Radeon HD5470m (512mb)
 - Driver version: xf86-video-ati 1:7.5.0-2, but goes back a long time before
this version
 - Kernel: Linux arch 4.2.5-1-ARCH #1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015
x86_64 GNU/Linux</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>