1002:5975 kms radeon drm: suspend freezes graphics, hibernate reinits ok

Bug #1029159 reported by xenoson
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

However ums seems deprecated nowadays and we don't have direct rendering anymore: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/946677

With the default kms, during resume from suspend I'm getting:
[drm:r100_ring_test] *ERROR* radeon: ring test failed (scratch(0x15E4)=0xCAFEDEAD)
[drm:r100_cp_init] *ERROR* radeon: cp isn't working (-22).
afterwards the log and VTs are flooded with
[drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(4).
[drm:radeon_cs_ioctl] *ERROR* Failed to schedule IB !
The graphic is frozen but looks intact and the mouse pointer moves. It's possible to change to VTs.
From this state, a reboot hangs somewhere down the line shortly after the plymouth splash appears and looks normal.

Interestingly this can be rescued by pm-hibernate from the console.
After waking up from hibernate the X session continues as if nothing went wrong in between.

I tried with 3.4.0-030400-generic-pae from kernel-ppa/mainline, it doesn't flood the logs anymore but the first two errors and the frozen graphic is the same.

Attached is the syslog of a hibernate suspend hibernate cycle and lspci -vvvxxxx before, during and after.

WORKAROUND: With ums (nomodeset kernel parameter) this laptop suspends to ram just fine.

---
ApportVersion: 2.0.1-0ubuntu11
Architecture: i386
DistroRelease: Ubuntu 12.04
Package: linux (not installed)
Tags: precise
Uname: Linux 3.5.0-030500-generic i686
UnreportableReason: The running kernel is not an Ubuntu kernel
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu11
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: SB [HDA ATI SB], device 0: ALC883 Analog [ALC883 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: xenoson 1975 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'SB'/'HDA ATI SB at 0xffef8000 irq 16'
   Mixer name : 'Realtek ALC883'
   Components : 'HDA:10ec0883,1462a422,00100002 HDA:11c11040,11c10001,00100200'
   Controls : 25
   Simple ctrls : 15
CurrentDmesg:
 Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: Permission denied
 dmesg: write failed: Broken pipe
DistroRelease: Ubuntu 12.04
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 002: ID 04d9:0499 Holtek Semiconductor, Inc. Optical Mouse
MachineType: Notebook SAM2010
Package: linux (not installed)
ProcFB: 0 radeondrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.2.0-27-generic-pae root=/dev/mapper/hostname-root ro quiet splash
ProcVersionSignature: Ubuntu 3.2.0-27.43-generic-pae 3.2.21
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
Tags: precise
Uname: Linux 3.2.0-27-generic-pae i686
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: sudo
WifiSyslog:

dmi.bios.date: 04/25/2008
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: A1058AM7 V7.27
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: SAM2010
dmi.board.vendor: MEDION
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 10
dmi.chassis.vendor: MICRO-STAR INT'L CO.,LTD.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrA1058AM7V7.27:bd04/25/2008:svnNotebook:pnSAM2010:pvr1058:rvnMEDION:rnSAM2010:rvr:cvnMICRO-STARINT'LCO.,LTD.:ct10:cvrToBeFilledByO.E.M.:
dmi.product.name: SAM2010
dmi.product.version: 1058
dmi.sys.vendor: Notebook

Revision history for this message
xenoson (xenoson) wrote :
Revision history for this message
xenoson (xenoson) wrote :
Revision history for this message
xenoson (xenoson) wrote :
Revision history for this message
xenoson (xenoson) wrote :
Revision history for this message
xenoson (xenoson) wrote :
Revision history for this message
xenoson (xenoson) wrote :
Revision history for this message
xenoson (xenoson) wrote :
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
tags: added: precise
penalvch (penalvch)
summary: - kms radeon drm: suspend freezes graphics, hibernate reinits ok
+ 1002:5975 kms radeon drm: suspend freezes graphics, hibernate reinits ok
Revision history for this message
penalvch (penalvch) wrote :

xenoson, thank you for reporting this and helping make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal:
apport-collect 1029159
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.
As well, if you could also please test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please do not test the kernel in the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. As well, please comment on which kernel version specifically you tested.

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'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream', and comment as to why specifically you were unable to test it.

Please let us know your results. Thanks in advance.

Helpful Bug Reporting Links:
https://help.ubuntu.com/community/ReportingBugs#Bug_Reporting_Etiquette
https://help.ubuntu.com/community/ReportingBugs#A3._Make_sure_the_bug_hasn.27t_already_been_reported
https://help.ubuntu.com/community/ReportingBugs#Adding_Apport_Debug_Information_to_an_Existing_Launchpad_Bug
https://help.ubuntu.com/community/ReportingBugs#Adding_Additional_Attachments_to_an_Existing_Launchpad_Bug

tags: added: needs-upstream-testing resume suspend
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
xenoson (xenoson) wrote : ProcEnviron.txt

apport information

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

Apport refused to sent because of mainline Kernel :)
So with 3.5.0-030500-generic from http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5-quantal/linux-image-3.5.0-030500-generic_3.5.0-030500.201207211835_i386.deb i can still reproduce this.

Revision history for this message
xenoson (xenoson) wrote : AcpiTables.txt

apport information

description: updated
Revision history for this message
xenoson (xenoson) wrote : AlsaDevices.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : AplayDevices.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : CRDA.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : Card0.Codecs.codec.1.txt

apport information

Revision history for this message
xenoson (xenoson) wrote : IwConfig.txt

apport information

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

apport information

Revision history for this message
xenoson (xenoson) wrote : PciMultimedia.txt

apport information

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

apport information

Revision history for this message
xenoson (xenoson) wrote : ProcEnviron.txt

apport information

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

apport information

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

apport information

Revision history for this message
xenoson (xenoson) wrote : PulseList.txt

apport information

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

apport information

Revision history for this message
xenoson (xenoson) wrote : UdevLog.txt

apport information

tags: added: kernel-bug-exists-upstream
removed: needs-upstream-testing
Revision history for this message
penalvch (penalvch) wrote :

xenoson, thank you for testing the mainline kernel and apport-collect'ing.

Just to clarify, did you do your tests with or without the nomodeset parameter enabled?

tags: added: kernel-bug-exists-upstream-v3.5-quantal
Revision history for this message
xenoson (xenoson) wrote :

This bug just occurs with kernel mode setting. Suspend is working with nomodeset.

Revision history for this message
penalvch (penalvch) wrote :

xenoson, thank you for clarifying.

Did this problem occur in a Ubuntu release prior to Precise?

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

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