Skip to contentSkip to conversation

Cannot suspend with radeon drivers.

Bug 71051 [email protected] 1 participant 17 messages Feb 24, 2014 – Jan 23, 2015 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

Lan Tianyu <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected]
          Component|Power-Video                 |Video(DRI - non Intel)
           Assignee|acpi_power-video@kernel-bug |drivers_video-dri@kernel-bu
                   |s.osdl.org                  |gs.osdl.org
            Product|ACPI                        |Drivers
Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.
#2 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

--- Comment #2 from Álvaro Castillo <[email protected]> --- I tried to listen to music with VLC player. So I was surprised... system works 100% after resume but Screen is off LOL. I can swtich into different ttys and X11 desktop without Screen turned on LOL.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

--- Comment #3 from Álvaro Castillo <[email protected]> --- Add information:

I've tried some options to going into suspend system with pm-suspend --*

All options tried was not turn on laptop screen after resume:
--quirk-dpms-on
--quirk-dpms-suspend
--quirk-radeon-off
--quirk-s3-bios
--quirk-s3-mode
--quirk-vbe-post
--quirk-vbemode-restore
--quirk-vbestate-restore
--quirk-vga-mode-3
--quirk-save-pci
--store-quirks-as-lkw
--quirk-none

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

--- Comment #4 from Álvaro Castillo <[email protected]> --- Created attachment 127311
--> https://bugzilla.kernel.org/attachment.cgi?id=127311&action=edit
Contains some information get of pm-utils-bugreport.sh script.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

--- Comment #5 from Álvaro Castillo <[email protected]> --- systemctl suspend does not work too.

systemd-python-208-9.fc20.x86_64
systemd-208-9.fc20.x86_64
systemd-libs-208-9.fc20.x86_64

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

Álvaro Castillo <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

 Attachment #127311|pm-utils-bugreport-info.sh  |pm-utils-bugreport-info.sh.
           filename|                            |txt
Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#7 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

Hin-Tak Leung <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #6 from Hin-Tak Leung <[email protected]> ---

Quoted 1 line

From mine (toshiba, but I believe the hp has similar graphic hardware):

dmesg:

[drm] Found VCE firmware/feedback version 40.2.2 / 15!

# lspci | grep VGA
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
Mullins [Radeon R3 Graphics]

I looked up that 'VCE firmware/feedback' line where it comes from in the kernel code. It seems that Mullins support in new to kernel 3.15.x (?) and still being actively worked on. Is that correct?

Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.
#8 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #7 from Alex Deucher <[email protected]> --- (In reply to Hin-Tak Leung from comment #6)

Quoted 6 lines

From mine (toshiba, but I believe the hp has similar graphic hardware):

dmesg:

[drm] Found VCE firmware/feedback version 40.2.2 / 15!

Quoted 8 lines
# lspci | grep VGA
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
Mullins [Radeon R3 Graphics]

I looked up that 'VCE firmware/feedback' line where it comes from in the kernel code. It seems that Mullins support in new to kernel 3.15.x (?) and still being actively worked on. Is that correct?

This is a different chip than Álvaro, so it's probably a different issue.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

--- Comment #8 from Alex Deucher <[email protected]> --- Created attachment 150801
--> https://bugzilla.kernel.org/attachment.cgi?id=150801&action=edit
possible fix for mullins

This patch may fix Hin-Tak's issue, but won't affect the original reporter.

Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.
#10 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

--- Comment #9 from Hin-Tak Leung <[email protected]> --- (In reply to Alex Deucher from comment #8)

Quoted 4 lines

Created attachment 150801 [details]
possible fix for mullins

This patch may fix Hin-Tak's issue, but won't affect the original reporter.

Yes, it does fix my suspend problem. Thanks for the quick response. Please feel free to add a 'Tested-By:'.

The screen stays blank after wake on hibernate though, with these messages:

Sep 19 04:42:48 localhost kernel: [drm:cik_ring_test] *ERROR* radeon: ring 1
test failed (scratch(0x3010C)=0xCAFEDEAD)
Sep 19 04:42:48 localhost kernel: [drm:radeon_dp_link_train_cr] *ERROR*
displayport link status failed
Sep 19 04:42:48 localhost kernel: [drm:radeon_dp_link_train_cr] *ERROR* clock
recovery failed
Sep 19 04:42:48 localhost kernel: [drm:radeon_dp_link_train_cr] *ERROR*
displayport link status failed
Sep 19 04:42:48 localhost kernel: [drm:radeon_dp_link_train_cr] *ERROR* clock

recovery failed

Somehow blindly suspending (by accident, pressing the power button for too short a duration) aand waking brings it back, interestingly.

The corrupted mouse pointer also changed from the usual 'squashed + block' ( photo attached to https://bugzilla.redhat.com/show_bug.cgi?id=1141491#c0)
to a phantom double pointer, which is extremely confusing now.

I'll attach the full dmesg of the 'wake from hibernate + suspend + wake from suspend', and the double pointer picture below. And while I am at it, is there any patches to get x-video I should try?

Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.
#11 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

--- Comment #10 from Hin-Tak Leung <[email protected]> --- Created attachment 150871
--> https://bugzilla.kernel.org/attachment.cgi?id=150871&action=edit
The wake from hibernate, suspend and wake dmesg.

The wake from hibernate, suspend and wake dmesg, mentioned in the last comment. screen does not turn on until after the 2nd wake.

Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.
#12 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

--- Comment #11 from Hin-Tak Leung <[email protected]> --- Created attachment 150881
--> https://bugzilla.kernel.org/attachment.cgi?id=150881&action=edit
photo of the double-pointer corruption

It is very confusing - the arrow is fake, and the squashed text cursor 3 lines above is the correct one. Both are smaller than intended. This double-pointer is very confusing and worse than the usual 'pointer + block' corruption. ( see https://bugzilla.redhat.com/attachment.cgi?id=937273
in https://bugzilla.redhat.com/show_bug.cgi?id=1141491#c0 )

Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.
#13 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

--- Comment #12 from Michel Dänzer <[email protected]> --- (In reply to Hin-Tak Leung from comment #11)

Quoted 1 line

photo of the double-pointer corruption

Looks like you're using an old version of xf86-video-modesetting, or another generic driver which doesn't correctly handle 128x128 hardware cursors. Please use the radeon driver from a current version of xf86-video-ati; with glamor enabled, that also provides X-Video support.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#14 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

--- Comment #13 from Hin-Tak Leung <[email protected]> --- (In reply to Michel Dänzer from comment #12)

Quoted 7 lines

(In reply to Hin-Tak Leung from comment #11)

Quoted 1 line

photo of the double-pointer corruption

Looks like you're using an old version of xf86-video-modesetting, or another generic driver which doesn't correctly handle 128x128 hardware cursors. Please use the radeon driver from a current version of xf86-video-ati; with glamor enabled, that also provides X-Video support.

Thanks for the hints! Bringing drv-ati,drv-modesetting,glamor up gives me the correct cursor, and I get X-Video after bring mesa (and llvm) up - from up-to-date fedora 20 to the not-yet-alpha fedora 21-ish.

The mouse cursor totally disappeared after GUI login in the first reboot (and I had to use vt2 to reboot the system again) and video playback showed very strange colors - almost B/W-ish - after the first X restart, but both wierdness seems to be gone in later reboots, so far.

So as far as I am concerned, I just need attachment 150801 going upstream, and possibly the hibernate cik_ring_test/radeon_dp_link_train_cr error issue looked at. FWIW, I tested attachment 150801 against 3.16.2 (or rather, adapted fedora's 3.16.2-200 to include the patch).

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#15 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

--- Comment #14 from Hin-Tak Leung <[email protected]> --- (In reply to Hin-Tak Leung from comment #13)
... attachment 150801 [details] going

Quoted 2 lines

upstream ... cik_ring_test/radeon_dp_link_train_cr error issue looked at.

To answer my own question, attachment 150801 is in 3.17-rcX, so will be in 3.17 proper ; my suspend problem is no-more. I've a problem with GPU lock-up under stress, filed as Bug 85421 .

Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.
#16 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

--- Comment #15 from Hin-Tak Leung <[email protected]> --- (In reply to Hin-Tak Leung from comment #14)
...

Quoted 2 lines

To answer my own question, attachment 150801 [details] is in 3.17-rcX, so will be in 3.17 proper...

besides v3.17-rc6, it is also in v3.16.4 .

Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.
#17 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=71051

Thomas J. Moore <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #16 from Thomas J. Moore <[email protected]> ---
I have a Dell Inspiron with AMD A6 (Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon R4/R5 Graphics]), and stopped upgrading my kernel at 3.16.3 because it would no longer resume from disk about 90% or more of the time. I have finally given in and looked for the cause a bit, and have traced it to this patch. Without this patch, 3.18.3 (and probably all other versions I skipped before it) works fine for me. That said, I never suspend to memory, and so I tried with and without, and indeed the patch seems to be necessary for resume-from-memory on my system as well. So, while this patch does fix a bug, it introduces a regression for me. Is it possible the value of nb_dpm_enabled is not restored or initialized properly on resume from disk, due to the video mode change?

The symptoms when resuming from disk are similar to comment 9 (ring test failures, which do not occur without the patch), with X crashing (and, due to the fact that I start it in inittab, retrying with "couldn't schedule ib" error until I reboot or disable the inittab entry).

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel