[Bug 65068] vgaswitcheroo doesn't deal with powered off dGPU on resume

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jun 2 18:39:43 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=65068

--- Comment #6 from Austin Lund <austin.lund at gmail.com> ---
(In reply to comment #5)
> (In reply to comment #4)
> > I'm not sure if this has anything to do with this bug, but the PCI config
> > space is all messed up when running on the integrated GPU:
> 
> When you disable the GPU the hardware is physically powered off so you are
> accessing non-existent registers.  You need to power up the GPU using
> vgaswitcheroo before loading/resuming the driver or access the config space
> with lspci.

I guess what I was trying to say was, does having the device in this state
before you start suspend make the power management subsystem confused?  Will it
try to "restore" the pci configuration space to 0xff?  

The radeon GPU is definitely turned on by the firmware on resume and the
apple-gmux driver turns it off if that was the state of the system when suspend
was started.

I tried a quick hack to call the "ON" function for vga-switcheroo from the
apple-gmux driver suspend hook.  But that didn't work.  However, if I do it
manually (i.e. echo ON > /sys/kernel/debug/vgaswitcheroo/switch) before
suspend, then it does seem to fix it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20130603/ae6d01b4/attachment.html>


More information about the dri-devel mailing list