← Back to team overview

kernel-packages team mailing list archive

[Bug 1583888] Re: Laptop crashes when trying to run discrete AMD GPUs commands with Xenial

 

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

** Attachment removed: "logs-after-session-restart.tgz"
   https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1583888/+attachment/4668463/+files/logs-after-session-restart.tgz

** Attachment removed: "ProcEnviron.txt"
   https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1583888/+attachment/4668451/+files/ProcEnviron.txt

** Attachment removed: "JournalErrors.txt"
   https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1583888/+attachment/4668450/+files/JournalErrors.txt

** Attachment removed: "logs.zip"
   https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1583888/+attachment/4666671/+files/logs.zip

** Description changed:

  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 crash the OS.
+ 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.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1583888

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

Status in linux package in Ubuntu:
  Incomplete
Status in linux source package in Xenial:
  Confirmed

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1583888/+subscriptions


References