<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 - Lockup/Freezes on Laptop with switchable graphics"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=99881">99881</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Lockup/Freezes on Laptop with switchable graphics
          </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/Radeon
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>matthew@tech3.me
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=129781" name="attach_129781" title="dmesg log">attachment 129781</a> <a href="attachment.cgi?id=129781&action=edit" title="dmesg log">[details]</a></span>
dmesg log

Hi,

I have a HP Pavilion dv6-3111sa laptop (circa 2010) with 2 GPUs:

01:05.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc.
[AMD/ATI] RS880M [Mobility Radeon HD 4225/4250] [1002:9712]
02:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc.
[AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470] [1002:68e0] (rev ff)

I am running Ubuntu 16.04.2 with kernel Ubuntu 4.8.0-36.36~16.04.1-generic
4.8.11

The screen usually freezes for a fraction of a second and then again a few
seconds later. It may do this several times. In addition, the computer usually
locks up before/after graphical login requiring a hard shutdown, although it
doesn't always lock up. It seems to be preventing the computer from shutting
down normally as well.

This appears in dmesg output whenever a freeze occurs:

  186.427140] [drm] enabling PCIE gen 2 link speeds, disable with
radeon.pcie_gen2=0
[  186.431201] [drm] PCIE GART of 512M enabled (table at 0x000000000014C000).
[  186.431293] radeon 0000:02:00.0: WB enabled
[  186.431301] radeon 0000:02:00.0: fence driver on ring 0 use gpu addr
0x0000000020000c00 and cpu addr 0xffff958c0f4f3c00
[  186.431306] radeon 0000:02:00.0: fence driver on ring 3 use gpu addr
0x0000000020000c0c and cpu addr 0xffff958c0f4f3c0c
[  186.431703] radeon 0000:02:00.0: fence driver on ring 5 use gpu addr
0x000000000005c418 and cpu addr 0xffffad3d81a1c418
[  186.447926] [drm] ring test on 0 succeeded in 1 usecs
[  186.447934] [drm] ring test on 3 succeeded in 2 usecs
[  186.634582] [drm] ring test on 5 succeeded in 1 usecs
[  186.634592] [drm] UVD initialized successfully.
[  186.634648] [drm] ib test on ring 0 succeeded in 0 usecs
[  186.634686] [drm] ib test on ring 3 succeeded in 0 usecs
[  186.805724] [drm] ib test on ring 5 succeeded
[  186.838322] snd_hda_intel 0000:02:00.1: Enabling via vga_switcheroo
[  186.942052] snd_hda_intel 0000:02:00.1: CORB reset timeout#2, CORBRP = 65535
[  196.033454] snd_hda_intel 0000:02:00.1: Disabling via vga_switcheroo
[  196.646111] snd_hda_intel 0000:02:00.1: Cannot lock devices!

Adding radeon.runpm=0 to my boot cmdline solves the issues as a workaround.

With previous ubuntu/kernel versions, the main issue was the freezing which
would happen every seven seconds with the corresponding dmesg block. This would
continue ad infinitum, although on rare occasions it would stop after many
freezes. However with my current kernel this pattern doesn't seem to occur - it
freezes a few times before the freezing stops and the freezes do not occur at
regular intervals.

I'm not sure if this is a graphics or sound issue from the dmesg block. There's
also some ACPI errors in the dmesg log so maybe a firmware problem, or faulty
hardware? I tried some lower level debugging previously but couldn't conclude
anything.

Thanks for any assistance.</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>