Laptop crashes when trying to run discrete AMD GPUs commands with Xenial

Bug #1583888 reported by Pierre Equoy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Medium
Unassigned
Xenial
Confirmed
Medium
Unassigned

Bug Description

I'm trying to get my laptop with an AMD integrated GPU and AMD discrete GPU to work with the open source drivers on Xenial.

In order to use the discrete GPU, in Xenial you can prefix any command with `DRI_PRIME=1`. However, this will cause a kernel call trace:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1583888/+attachment/4678542/+files/kern.log

I tried installing a backported kernel from http://people.canonical.com/~amilone/amdgpu-4.5/ and even though the computer does not crash anymore, it still won't show anything (but the process launched will take 100% of the CPU and cannot be stopped nor killed, it looks...).

I tried with the following commands:
glxinfo
glxgears
DRI_PRIME=1 glxinfo
DRI_PRIME=1 glxgears

Once, I managed to get some output from the `glxinfo` command, with and without `DRI_PRIME=1` prefix:
$ glxinfo | grep -i "opengl"
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD KAVERI (DRM 2.43.0, LLVM 3.8.0)
OpenGL core profile version string: 4.1 (Core Profile) Mesa 11.2.0
OpenGL core profile shading language version string: 4.10
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.2.0
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.2.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:

$ DRI_PRIME=1 glxinfo | grep -i "opengl"
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD ICELAND (DRM 3.1.0, LLVM 3.8.0)
OpenGL core profile version string: 4.1 (Core Profile) Mesa 11.2.0
OpenGL core profile shading language version string: 4.10
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.2.0
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.2.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:

So it looks like the discrete GPU is used, but so far I couldn't really use it to run anything 3D-demanding.

Attached is a Zip with a lot of logs, hope this will help!

---
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: u 1514 F.... pulseaudio
 /dev/snd/controlC0: u 1514 F.... pulseaudio
CurrentDesktop: Unity
DistroRelease: Ubuntu 16.04
HibernationDevice: RESUME=UUID=c7cb27f3-e158-413f-bc47-98e4dffdbba4
InstallationDate: Installed on 2016-06-06 (0 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
MachineType: Dell Inc. Inspiron 5445
Package: linux (not installed)
ProcFB: 0 radeondrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-22-generic.efi.signed root=UUID=e5369e55-3dcd-4731-83da-faa4c5f0f8eb ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 4.4.0-22.40-generic 4.4.8
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-22-generic N/A
 linux-backports-modules-4.4.0-22-generic N/A
 linux-firmware 1.157
Tags: xenial xenial
Uname: Linux 4.4.0-22-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 06/04/2014
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A01
dmi.board.name: 014302
dmi.board.vendor: Dell Inc.
dmi.board.version: X01
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: A01
dmi.modalias: dmi:bvnDellInc.:bvrA01:bd06/04/2014:svnDellInc.:pnInspiron5445:pvrA01:rvnDellInc.:rn014302:rvrX01:cvnDellInc.:ct8:cvrA01:
dmi.product.name: Inspiron 5445
dmi.product.version: A01
dmi.sys.vendor: Dell Inc.

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1583888

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu):
status: Incomplete → New
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.6 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety

Changed in linux (Ubuntu):
importance: Undecided → Medium
Changed in linux (Ubuntu Xenial):
status: New → Incomplete
importance: Undecided → Medium
tags: added: kernel-da-key xenial
Revision history for this message
Pierre Equoy (pieq) wrote : JournalErrors.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Pierre Equoy (pieq) wrote : ProcEnviron.txt

apport information

Pierre Equoy (pieq)
tags: added: kernel-bug-exists-upstream
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in linux (Ubuntu Xenial):
status: Incomplete → Confirmed
Revision history for this message
Pierre Equoy (pieq) wrote :

Tested with upstream Kernel from the URL proposed in comment 4.

When launching:

    DRI_PRIME=1 glxgears

the screen turns black and the Unity session restarts.

Please see attached logs (even though I couldn't find any error in it...).

Let me know if there are other logs I count provide to help.

Revision history for this message
penalvch (penalvch) wrote :

Perre Equoy, while booted into the default Ubuntu kernel (not upstream), please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 1583888

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Pierre Equoy (pieq) wrote : AlsaInfo.txt

apport information

description: updated
Revision history for this message
Pierre Equoy (pieq) wrote : CRDA.txt

apport information

Revision history for this message
Pierre Equoy (pieq) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Pierre Equoy (pieq) wrote : IwConfig.txt

apport information

Revision history for this message
Pierre Equoy (pieq) wrote : JournalErrors.txt

apport information

Revision history for this message
Pierre Equoy (pieq) wrote : Lspci.txt

apport information

Revision history for this message
Pierre Equoy (pieq) wrote : Lsusb.txt

apport information

Revision history for this message
Pierre Equoy (pieq) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Pierre Equoy (pieq) wrote : ProcEnviron.txt

apport information

Revision history for this message
Pierre Equoy (pieq) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Pierre Equoy (pieq) wrote : ProcModules.txt

apport information

Revision history for this message
Pierre Equoy (pieq) wrote : PulseList.txt

apport information

Revision history for this message
Pierre Equoy (pieq) wrote : RfKill.txt

apport information

Revision history for this message
Pierre Equoy (pieq) wrote : UdevDb.txt

apport information

Revision history for this message
Pierre Equoy (pieq) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
penalvch (penalvch)
tags: added: latest-bios-a01
Revision history for this message
penalvch (penalvch) wrote :
description: updated
Revision history for this message
penalvch (penalvch) wrote :

Pierre Equoy:
1) Regarding your logs.zip and tgz file, it's much more helpful to only attach what is relevant uncompressed/untarred, versus copying everything in various folders (much of which isn't relevant).
2) Regarding including a .crash file. It's always best not to manually attach this to a report, as it could contain sensitive information one may rather not reveal. Hence, I'll be deleting the file momentarily as I've extracted the bits regarding the kernel call trace.
3) Regarding the .crash file, given this is an xorg crash, you would want to file a new report against it. Have you done this already?
4) Regarding the kernel call trace, could you please test the latest mainline kernel (4.7-rc2) and advise to the results?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.