Bug 108541 - s2ram fails with XFX Radeon R7 240 graphics card
Summary: s2ram fails with XFX Radeon R7 240 graphics card
Status: CLOSED INVALID
Alias: None
Product: Power Management
Classification: Unclassified
Component: Hibernation/Suspend (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: Rafael J. Wysocki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-27 14:48 UTC by Elmar Stellnberger
Modified: 2015-12-14 02:54 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.2.5-1-ARCH
Subsystem:
Regression: No
Bisected commit-id:


Attachments
lspci -vvv (31.08 KB, text/plain)
2015-11-27 14:52 UTC, Elmar Stellnberger
Details
dmesg (58.68 KB, text/plain)
2015-11-27 14:53 UTC, Elmar Stellnberger
Details
/proc/cmdline (219 bytes, text/plain)
2015-11-27 14:53 UTC, Elmar Stellnberger
Details
journal/dmesg for Nvidia Geforce GT 720 (92.92 KB, application/x-bzip)
2015-12-11 21:18 UTC, Elmar Stellnberger
Details

Description Elmar Stellnberger 2015-11-27 14:48:10 UTC
After upgrading from an XFX Radeon R5 230 graphics card to an XFX Radeon R7 240 my computer does no more awake from s2ram. Blacklisting the radeon module does not help. If I hit a key on my USB keyboard it seems to awake at first the CD drive getting power (you can even open it) but then the power button remains to blink which indicates that s2ram is still active. There is no escape except a hard reset (pressing the power button does not make it resume either). 
  I have also experimented with init=/bin/bash vga=0 radeon.modeset=0 radeon.blacklist=1 no_console_suspend. Once I have tried all options for /sys/power/pm_test and it did always awake without intervention; even echo mem >/sys/power/state made it awake without intervention (see for the logs - they seem to tell something about wake on lan and some missing acpi awake code). Then I tried to re-test with the same parameters and echo mem >/sys/power/state but the screen turned off in spite of no_console_suspend and it did not awake any more; strange. 
  Please have a very look at the log since I would plan to deploy the same card on different computers (it features working 4K/UHD/3840x2160).
p.s.: the graphics mode is restored wrongly after s2disk
Comment 1 Elmar Stellnberger 2015-11-27 14:52:37 UTC
Created attachment 195601 [details]
lspci -vvv
Comment 2 Elmar Stellnberger 2015-11-27 14:53:09 UTC
Created attachment 195611 [details]
dmesg
Comment 3 Elmar Stellnberger 2015-11-27 14:53:28 UTC
Created attachment 195621 [details]
/proc/cmdline
Comment 4 Elmar Stellnberger 2015-11-28 21:11:56 UTC
The following report is similar in the way that acpi seems to disable the wakeup:
https://www.mail-archive.com/kernel-packages%40lists.launchpad.net/msg142829.html
Comment 5 Elmar Stellnberger 2015-12-02 15:29:27 UTC
I would suspect that the problem is ACPI related and due to the split of S3 state in D3hot and D3cold; i.e. it would affect all newer graphics cards being used with not ultimately new mainboards. Rafael, do you think this issue could be addressed by a kernel quirk?
Comment 6 Aaron Lu 2015-12-10 02:26:18 UTC
(In reply to Elmar Stellnberger from comment #2)
> Created attachment 195611 [details]
> dmesg

No problems found there, the PM test all succeeded.
Comment 7 Aaron Lu 2015-12-10 02:28:26 UTC
(In reply to Elmar Stellnberger from comment #4)
> The following report is similar in the way that acpi seems to disable the
> wakeup:
> https://www.mail-archive.com/kernel-packages%40lists.launchpad.net/msg142829.
> html

The above link described a problem that the computer failed to suspend(shutdown instead and it is capable of "waking up" from power button, except that the firmware doesn't think it is sleeping so it did a fresh boot instead), while your problem here is about not being able to wake up the system by power button, I don't think they are similar.
Comment 8 Aaron Lu 2015-12-10 02:36:49 UTC
(In reply to Elmar Stellnberger from comment #0)
> After upgrading from an XFX Radeon R5 230 graphics card to an XFX Radeon R7
> 240 my computer does no more awake from s2ram. Blacklisting the radeon
> module does not help. If I hit a key on my USB keyboard it seems to awake at
> first the CD drive getting power (you can even open it) but then the power
> button remains to blink which indicates that s2ram is still active. There is
> no escape except a hard reset (pressing the power button does not make it
> resume either). 
>   I have also experimented with init=/bin/bash vga=0 radeon.modeset=0
> radeon.blacklist=1 no_console_suspend. Once I have tried all options for
> /sys/power/pm_test and it did always awake without intervention; even echo
> mem >/sys/power/state made it awake without intervention (see for the logs -
> they seem to tell something about wake on lan and some missing acpi awake

once you are using /sys/power/pm_test, the firmware is not involved, i.e. the OS will freeze user space/suspend devices/bring down CPUs/etc. and wait for 5 seconds, then resume. No real ACPI sleep state happened. The fact that all pm_test could pass normally suggests there is a problem in the firmware or hardware.

> code). Then I tried to re-test with the same parameters and echo mem
> >/sys/power/state but the screen turned off in spite of no_console_suspend
> and it did not awake any more; strange. 

By "same parameters" I suppose you mean the kernel cmdline options instead of the values echoed to /sys/power/pm_test? If yes, since the pm_test is not involved in this case, the firmware is taking control to enter a ACPI sleep state and the computer really sleeps.

>   Please have a very look at the log since I would plan to deploy the same
> card on different computers (it features working 4K/UHD/3840x2160).
> p.s.: the graphics mode is restored wrongly after s2disk

From the descriptions, it all seems to me the hardware/firmware loses the capability to wake up from ACPI sleep state(S3, aka suspend to mem, to be specific) after the graphics card is changed. If it's possible, you can also test Windows on it.
Comment 9 Elmar Stellnberger 2015-12-11 16:45:40 UTC
  Yes, it definitely is a hardware/firmware problem: I have now tested it under a Windows 7 installation on the very same machine with the same graphics card (Esprimo E5730, Fujitsu Siemens) and it did not awake either (with the same results).
  Then additionally I have removed the XFX Radeon R7 240 graphics card from the E5730 and put it into an Esprimo P5731 / D3011-A1 board (from Fujistu). s2ram did behave the same way with the same card on another Core 2 Quad computer: it simply does not work (same behaviour as described in comment 1).
  Aaron could it be as suspected in comment 5 that not any old style board will work with a 'new style' PCIe (graphics) card?
Comment 10 Elmar Stellnberger 2015-12-11 21:18:38 UTC
Created attachment 197191 [details]
journal/dmesg for Nvidia Geforce GT 720

Now I have purchased an Nvidia Geforce GT 720 card in the hope that it would s2ram without a problem. Unfortunately when I tested the card with the Esprimo E5730 s2ram did go awry in the very same way as with the Radeon XFX R7 240. Damn it! I would guess that absolutely no combination of a Core 2 Quad board and a K4 graphics card would work; neither from ATI nor from Nvidia.
Comment 11 Aaron Lu 2015-12-14 02:54:02 UTC
(In reply to Elmar Stellnberger from comment #9)
>   Aaron could it be as suspected in comment 5 that not any old style board
> will work with a 'new style' PCIe (graphics) card?

I have no idea, I suppose the mainboard vendor should know this.
I'll close the bug as INVALID since this is not a OS issue and there is nothing we can do in Linux.

Note You need to log in before you can comment on or make changes to this bug.