Lockup/Freezes on Laptop with switchable graphics
Submitted by Matthew Fox
Assigned to Default DRI bug account
Created attachment 129781
I have a HP Pavilion dv6-3111sa laptop (circa 2010) with 2 GPUs:
01:05.0 VGA compatible controller : Advanced Micro Devices, Inc. [AMD/ATI] RS880M [Mobility Radeon HD 4225/4250] [1002:9712]
02:00.0 VGA compatible controller : 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.
Attachment 129781, "dmesg log":