Hardware accelerated video decoding causes GPU crash (radeon driver)

Bug #1574845 reported by Daro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

SMPlayer with vdpau output plays video ok, but after stopping video in few seconds system freezes. I attach smplayer.log with syslog messages during crash. The same happens with Kodi. I attach kodi.log with syslog messages during crash.

WORKAROUND: Don't use hardware acceleration.

---
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: multimedia 1757 F.... pulseaudio
 /dev/snd/controlC1: multimedia 1757 F.... pulseaudio
DistroRelease: Ubuntu 16.04
HibernationDevice: RESUME=UUID=7c796799-7a5f-45e4-8553-2d104ccaf5fd
InstallationDate: Installed on 2013-11-30 (948 days ago)
InstallationMedia: Ubuntu 12.04.3 LTS "Precise Pangolin" - Release amd64 (20130820.1)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: System manufacturer P5QL-E
Package: linux (not installed)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
ProcFB: 0 radeondrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-28-generic root=UUID=002800d5-0471-42e5-abad-77cbf9f27354 ro quiet
ProcVersionSignature: Ubuntu 4.4.0-28.47-generic 4.4.13
PulseList:
 Error: command ['pacmd', 'list'] failed with exit code 1: Home directory not accessible: Permission denied
 No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-28-generic N/A
 linux-backports-modules-4.4.0-28-generic N/A
 linux-firmware 1.157.1
RfKill:
 0: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
Tags: xenial
Uname: Linux 4.4.0-28-generic x86_64
UpgradeStatus: Upgraded to xenial on 2016-04-23 (72 days ago)
UserGroups:

_MarkForUpload: True
dmi.bios.date: 12/01/2008
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0905
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: P5QL-E
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 2.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0905:bd12/01/2008:svnSystemmanufacturer:pnP5QL-E:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP5QL-E:rvrRev2.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: P5QL-E
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
Daro (ziutekputek) wrote :
Revision history for this message
Daro (ziutekputek) wrote :
Revision history for this message
Daro (ziutekputek) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
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-rc6-wily/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Daro (ziutekputek) wrote :

I tested with 4.6.0-040600rc6-generic but the problem persists. Making pause and play again in SMPlayes gives the following syslog output:

May 5 23:55:05 HOME kernel: [ 308.448015] radeon 0000:01:00.0: ring 5 stalled for more than 10000msec
May 5 23:55:05 HOME kernel: [ 308.448021] radeon 0000:01:00.0: GPU lockup (current fence id 0x0000000000000e02 last fence id 0x0000000000000e0b on ring 5)
May 5 23:55:05 HOME kernel: [ 308.482242] radeon 0000:01:00.0: GPU reset succeeded, trying to resume
May 5 23:55:05 HOME kernel: [ 308.491775] [drm] enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=0
May 5 23:55:05 HOME kernel: [ 308.493998] [drm] PCIE GART of 1024M enabled (table at 0x000000000025E000).
May 5 23:55:05 HOME kernel: [ 308.494017] radeon 0000:01:00.0: WB enabled
May 5 23:55:05 HOME kernel: [ 308.494020] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000020000c00 and cpu addr 0xffff880034aa6c00
May 5 23:55:05 HOME kernel: [ 308.494023] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000020000c0c and cpu addr 0xffff880034aa6c0c
May 5 23:55:05 HOME kernel: [ 308.494409] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x000000000005c598 and cpu addr 0xffffc9000181c598
May 5 23:55:05 HOME kernel: [ 308.540202] [drm] ring test on 0 succeeded in 1 usecs
May 5 23:55:05 HOME kernel: [ 308.540208] [drm] ring test on 3 succeeded in 2 usecs
May 5 23:55:06 HOME kernel: [ 308.714841] [drm] ring test on 5 succeeded in 1 usecs
May 5 23:55:06 HOME kernel: [ 308.714847] [drm] UVD initialized successfully.
May 5 23:55:06 HOME kernel: [ 308.919526] [drm] ib test on ring 0 succeeded in 0 usecs
May 5 23:55:06 HOME kernel: [ 308.919554] [drm] ib test on ring 3 succeeded in 0 usecs
May 5 23:55:07 HOME kernel: [ 310.068059] [drm:uvd_v1_0_ib_test [radeon]] *ERROR* radeon: fence wait timed out.
May 5 23:55:07 HOME kernel: [ 310.068089] [drm:radeon_ib_ring_tests [radeon]] *ERROR* radeon: failed testing IB on ring 5 (-110).

and makes X freeze.

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

Daro, please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 1574845

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Daro (ziutekputek) wrote : JournalErrors.txt

apport information

tags: added: apport-collected xenial
description: updated
Revision history for this message
Daro (ziutekputek) wrote :

Christopher,

I executed the command but I am not sure if it have gone ok. Is it because I stayed with upstream kernel? Should I repeat it just let me know.

Revision history for this message
penalvch (penalvch) wrote :

Daro, please do it with the Ubuntu kernel (not upstream).

Revision history for this message
Daro (ziutekputek) wrote : AlsaInfo.txt

apport information

description: updated
Revision history for this message
Daro (ziutekputek) wrote : CRDA.txt

apport information

Revision history for this message
Daro (ziutekputek) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Daro (ziutekputek) wrote : JournalErrors.txt

apport information

Revision history for this message
Daro (ziutekputek) wrote : Lspci.txt

apport information

Revision history for this message
Daro (ziutekputek) wrote : Lsusb.txt

apport information

Revision history for this message
Daro (ziutekputek) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Daro (ziutekputek) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Daro (ziutekputek) wrote : ProcModules.txt

apport information

Revision history for this message
Daro (ziutekputek) wrote : UdevDb.txt

apport information

Revision history for this message
Daro (ziutekputek) wrote : WifiSyslog.txt

apport information

Revision history for this message
Daro (ziutekputek) wrote :

Christopher,

I did it again. Hope this time is ok.

Revision history for this message
penalvch (penalvch) wrote :

Daro, to clarify, did this issue not occur in a Ubuntu release prior to 16.04?

tags: added: bios-outdated-1104
description: updated
Revision history for this message
Daro (ziutekputek) wrote :

Christopher,

As far as I can remember on 12.04 I did not manage to make hardware accelerated video decoding work at all because of lack of some libraries / packages. I think I made it work when I upgraded to 15.10 and this is when this issue arose.

Revision history for this message
penalvch (penalvch) wrote :

Daro, could you please specify how you made it work in 15.10?

Revision history for this message
Daro (ziutekputek) wrote :

Christopher,

I installed some of vdpau packages which was missing in 12.04. Which one exactly - I do not remember. If it is important and could be traced in log files - please give me a hint.

penalvch (penalvch)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
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.