Bug 57201 - [vgaswitcheroo] increased consumption and hangups after hibernating with disabled radeon
Summary: [vgaswitcheroo] increased consumption and hangups after hibernating with disa...
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-27 14:02 UTC by Nikolay Amiantov
Modified: 2016-03-23 18:35 UTC (History)
2 users (show)

See Also:
Kernel Version: 3.9-rc8-24-gd7d7271
Subsystem:
Regression: No
Bisected commit-id:


Attachments
lspci -vv (from the older kernel) (11.40 KB, text/plain)
2013-04-27 14:02 UTC, Nikolay Amiantov
Details
dmesg with failure from 3.9-rc8 (68.00 KB, text/plain)
2013-04-27 14:03 UTC, Nikolay Amiantov
Details
dmesg after rebooting from failure, 3.9-rc8 (52.88 KB, text/plain)
2013-04-27 14:05 UTC, Nikolay Amiantov
Details
dmesg, 3.8.8 (80.00 KB, text/plain)
2013-04-27 14:06 UTC, Nikolay Amiantov
Details

Description Nikolay Amiantov 2013-04-27 14:02:04 UTC
Created attachment 100101 [details]
lspci -vv (from the older kernel)

After hibernation with disabled radeon and resuming, vgaswitcheroo thinks that discrete card is powered down, but in fact it is not. It consumes power, and attemts to disable it again hangups the system.

Steps to reproduce:
1. Start system, switch to intel (if needed), disable unused card (echo DDIS and OFF to /sys/kernel/debug/vgaswitcheroo/switch)
2. Check power consumption (for example, with powertop)
3. Hibernate the system, resume
4. Check power consumption again, notice increase

If attempting to re-disable card (echo ON and OFF) echo hang-ups after ON. If you SIGINT echo, whole system will hangup.

On the older 3.8.8 kernel the behaviour is somewhat different:
1. Echo ON and OFF, the power consumption will go down.
2. Hibernate the system again, resume.
3. Notice power consumption increase again.
4. Echo ON.
And system hangups just like with newer kernel.

A workaround is to enable card before hibernation and disable it after resuming --- it works in both kernels.
Comment 1 Nikolay Amiantov 2013-04-27 14:03:36 UTC
Created attachment 100111 [details]
dmesg with failure from 3.9-rc8
Comment 2 Nikolay Amiantov 2013-04-27 14:05:32 UTC
Created attachment 100121 [details]
dmesg after rebooting from failure, 3.9-rc8

Also, after rebooting (with magic-sysrq), the ATI card is not avaliable at all (it doesn't exist in lspci). It can be fixed with poweroff-poweron. Attached dmesg log from this state.
Comment 3 Nikolay Amiantov 2013-04-27 14:06:26 UTC
Created attachment 100131 [details]
dmesg, 3.8.8

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